Prev Previous Post   Next Post Next
  #1   Report Post  
y_not
 
Posts: n/a
Default IF statements


I am using a formula which relies on the user selecting an option form a
drop down list. Depending on thier choice the sheet displays information
relative to the selection.

This has worked fine for a while but I have been asked to add two extra
items to the drop down list. The effect of this that Excel reports an
error because (I think) there are too many IF statements.

Does anyone have any idea of how I can get around this, please?

If the formula makes any sense I have added it below: -

=IF(Chose="Birkenhead",B70,IF(Chose="Bradford",B12 3,IF(Chose="Derby",B176,IF(Chose="Leeds",B229,IF(C hose="Rochdale",B282,IF(Chose="Sainsbury's",B335,I F(Chose="Skelmersdale",B388,IF(Chose="Basingstoke" ,B441,'C:\Documents
and
Settings\Desktop\Test\Tracker\[Skelmersdale.xls]Driver'!B8+'C:\Documents
and
Settings\Desktop\Test\Tracker\[Sainsbury''s.xls]Driver'!B8+'C:\Documents
and Settings\Desktop\Test\Tracker\[Rochdale.xls]Driver'!B8+'C:\Documents
and Settings\Desktop\Test\Tracker\[Leeds.xls]Driver'!B8+'C:\Documents
and
Settings\Desktop\Test\Tracker\[Bradford.xls]Driver'!B8+'C:\Documents
and
Settings\Desktop\Test\Tracker\[Birkenhead.xls]Driver'!B8+'C:\Documents
and Settings\Desktop\Test\Tracker\[Derby.xls]Driver'!B8))))))))

The list is of town names, "Chose" is the named cell of the drop down
and "Region" simply totals the data for the eight towns


--
y_not
------------------------------------------------------------------------
y_not's Profile: http://www.excelforum.com/member.php...o&userid=19947
View this thread: http://www.excelforum.com/showthread...hreadid=394172

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Better Way to Code IF Statements? TheRobsterUK Excel Discussion (Misc queries) 4 July 18th 05 03:37 PM
Logical ELSE statements Ruth Excel Discussion (Misc queries) 2 June 23rd 05 03:23 PM
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 06:17 AM
Macro to find and delete all FALSE statements Woody13 Excel Discussion (Misc queries) 3 December 8th 04 11:16 PM
If statements Mark Excel Worksheet Functions 3 November 2nd 04 08:39 PM


All times are GMT +1. The time now is 11:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"