Problems with If Then Statements

kenbonnell

New Member
Joined
Nov 10, 2005
Messages
1
I am trying to use Excel to construct an application that would contain our 9 different locations and when the correct location is selected the address automatically drops in. I have the names of all our locations in a list and when they are selected, it goes to another cell and "pulls forward" the address. It works perfectly until I add our lab in Vacaville, does anyone know why? Does it have anything to do with limits set on 7 nested "If"s? Does anyone know of a different way to do this?

Here is the current formula:

=IF('Input Form'!B28="Chicago",'Input Form'!AR62,IF('Input Form'!B28="Franklin",'Input Form'!AS62,IF('Input Form'!B28="Gibbstown",'Input Form'!AT62,IF('Input Form'!B28="Research Triangle Park",'Input Form'!AU62,IF('Input Form'!B28="San Diego",'Input Form'!AV62,IF('Input Form'!B28="Seattle",'Input Form'!AW62,IF('Input Form'!B28="St. Louis",'Input Form'!AX62,IF('Input Form'!B28="Sugarland",'Input Form'!AY62,IF('Input Form'!B28="Vacaville",'Input Form'!AZ62,"")))))))))

Any help at all would be greatly appreciated!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi, kenbonnell
Welcome to the Board !!!!!

seems like you would need VLOOKUP
take a look at that function

kind regards,
Erik
 
Upvote 0
IF does have a limitation of 7 ... however Vlookup does not ...

Code:
=INDIRECT((VLOOKUP('Input Form'!B28,{"Chicago","'Input Form'!AR62";"Franklin","'Input Form'!AS62";"Gibbstown","'Input Form'!AT62"},2,FALSE)))
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,395
Members
449,081
Latest member
JAMES KECULAH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top