RE: 1=City, 2=Roskill
- From: "Rowan" <Rowan@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 15 Aug 2005 19:16:02 -0700
Steved
You can only have 7 nested ifs. To get more your best bet would probably be
to use a Vlookup with a refrence table. Set the table up like this
1 City
2 Roskill
etc
My reference table is in range I1 to J9 so then the vlookup would be
something like:
=VLOOKUP(--LEFT(A1),$I$1:$J$9,2,0)
See http://www.contextures.com/xlFunctions02.html for more details on Vlookups
Regards
Rowan
"Steved" wrote:
> Helllo Rowan from Steved
>
> Question please
> =IF(LEFT(F6)="1","City",IF(LEFT(F6)="2","Roskill",IF(LEFT(F6)="3","Papakura",IF(LEFT(F6)="4","Wiri",IF(LEFT(F6)="5","Shore",IF(LEFT(F6)="6","Orewa",IF(LEFT(F6)="7","Swanson","")))))))
>
> I would like to add 2 more in ie
> IF(LEFT(F6)="8","Panmure",IF(LEFT(F6)="9","Waiheke",
>
> With your formula you kindly gave me is it possible.
>
> Thankyou.
>
> "Rowan" wrote:
>
> > =IF(LEFT(A1)="1","City",IF(LEFT(A1)="2","Roskill",""))
> >
> > Regards
> > Rowan
> >
> > "Steved" wrote:
> >
> > > Hello from Steved
> > >
> > > I would like to please use only the first number as a identifier.
> > >
> > > for example 1234, 1543, 1789, 1673 in this case the 1 will = City
> > > for example 2234, 2543, 2789, 2673 in this case the 2 will = Roskill
> > >
> > > Thankyou.
.
- References:
- 1=City, 2=Roskill
- From: Steved
- RE: 1=City, 2=Roskill
- From: Rowan
- RE: 1=City, 2=Roskill
- From: Steved
- 1=City, 2=Roskill
- Prev by Date: Illinois Personal Information Protection Act
- Next by Date: RE: 1=City, 2=Roskill
- Previous by thread: RE: 1=City, 2=Roskill
- Next by thread: RE: 1=City, 2=Roskill
- Index(es):
Relevant Pages
|