LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 3
Default Multiple IF statements or a better method ?

I am new to this forum and a novice with Excel especially with respect to creating fomulas.

Help !!

I have created a VLOOKUP table that has a value grid of 7 rows x 5 columns (apartment codes x different rates depending on length of stay). Therefore depending on the apartment code the guest wants and their length of stay there are 35 possible results.

Using this forum, I managed (somehow) to put together a few concatenated IF statements to point to the correct cell in the VLOOKUP table depending on apartment code and length of stay. I now realise that I will have to do 35 concatenated IF statements and my head is beginning to explode just doing two !

Is there a better way ? I know thereis a limitof 7nested IF statements but is there a limit to thenumber of concatenated IF statements (if that is a different thing) ?

Some examples of my bodged (but working) code is :-

=IF((AND(B310,B31<8,F21="KOC05")),VLOOKUP(F21,Pri ces!A3:C10,3,FALSE),IF((AND(B310,B31<8,F21="KOC03 ")),VLOOKUP(F21,Prices!A3:C10,3,FALSE),"Invali d Input"))

p.s1
length of stays are daily, weekly, monthly, 3 monthly and 6 monthly.
ps2
administrator will just input apartment code and length of stay to automatliccly pass rate to an invoice.
 
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
Using multiple IF statements Jshendel Excel Discussion (Misc queries) 8 August 29th 06 09:04 PM
Display multiple lines of text within a cell from multiple column. Zeeshan Zaheer Excel Worksheet Functions 3 August 23rd 06 10:08 AM
How can I have multiple "If" statements in one formula? MikeL Excel Discussion (Misc queries) 5 January 15th 06 03:36 AM
Is there an equation in Excel to use multiple if then statements? Cody5 Excel Discussion (Misc queries) 2 January 10th 06 09:02 PM
multiple IF statements Nathan McElmurry Excel Worksheet Functions 1 November 18th 04 09:22 PM


All times are GMT +1. The time now is 02:37 PM.

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

About Us

"It's about Microsoft Excel"