MSFN Forum: Excel If help - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Excel If help Excel If help Rate Topic: -----

#1 User is offline   smartie91 

  • Member
  • PipPip
  • Group: Members
  • Posts: 149
  • Joined: 20-October 03

Posted 19 June 2008 - 01:51 AM

Hi All

I need help with a excel if statement please what i have is a list containing machine ids

T003478
N000299
T003067
TT90044
all the above are what we call FM only the first to chars should be used as there are over 2000 ids
the second digit is a zero

NR02297
TX00024
TR02175
TC12345
these are called SF

there for if C1 = T0 then print FM or c1=nr print SF



i have this so far
 
=IF((C1="TT"),FM,IF((C1="N0"),FM,IF((C1="NR"),SF,IF((C1="TR"),SF,"NONE")))) 


and the error i get is
 
#NAME?	TT90185
NONE	T003478
#NAME?	NR02297
NONE	TX00024
 

hope this make sence

thanks

Nigel



edit

I have got it to work if i only put 2 char in c1 useing this

 
=IF((E5="TT"),"FM",IF((E5="N0"),"FM",IF((E5="NR"),"SF",IF((E5="TR"),"SF",IF((E5="T0"),"FM",IF((E5="TX"),"SF","NONE")))))) 


how do i no only pick first 2 chars

also i need altogether 10 if statement i think excel only does 7 is that right

thanks

nigel

This post has been edited by smartie91: 19 June 2008 - 02:19 AM



#2 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 19 June 2008 - 06:48 AM

I won't redo the whole line but you should get the idea:

=if (Left(C1,2)="TT","FM",if(Left(C1,2)="NR","SF","None"))


#3 User is offline   smartie91 

  • Member
  • PipPip
  • Group: Members
  • Posts: 149
  • Joined: 20-October 03

Posted 20 June 2008 - 03:06 PM

Thanks IcemanND

I have this now
 
=IF(LEFT(G4,1)="F","CYLYPSO",IF(LEFT(G4,2)="TX","SF",IF(LEFT(G4,2)="N0","FM",IF(LEFT(G4,2)="TT","FM",IF(LEFT(G4,2)="T0","FM",IF(LEFT(G4,2)="TR","SF",IF(LEFT(G4,2)="NR","SF","CCM"))))))) 


which works fine But the problem is now i cant search from this column
A ..... B .......C.........D.......... E......... F
SF 753651 Address Name 2A TX00085
FM 787621 Address Name 2B NR03955
CCM 792373 Address Name 2C NR03024
SF 794187 Address Name 3B NR00127

Column A is the result of above

I need to display how many SF,FM,CCM, there are in 2A,2B.2C.

thanks for your help
Nigel

#4 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 9,089
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 21 June 2008 - 03:05 AM

Wouldn't a "count if" function do?
http://www.ozgrid.co...el/count-if.htm

jaclaz

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy