+ Reply to Thread
Results 1 to 5 of 5

Nesting Multiple IF AND INDEX functions

  1. #1
    Registered User
    Join Date
    01-10-2015
    Location
    Saint Louis
    MS-Off Ver
    2007
    Posts
    8

    Nesting Multiple IF AND INDEX functions

    =IF(AND(B2="Budget",C2=1),INDEX(Sheet1!E15:L16,2,2,),OR(IF(AND(B2="BUDGET",C2=2),INDEX(Sheet1!E15:L16,2,3,),FALSE)))

    I realize this is probably a terrible attempt at this formula but I'm creating a spread sheet that needs to take into account multiple conditions before providing the value.

    Here is a table of some of the conditions:

    BUDGET 1 2 3 4 5 6 7
    57.00 76.00 114.00 152.00 152.00 190.00 228.00
    LUXURY 114.00 171.00 228.00 285.00 285.00 342.00 399.00

    So what I need the formula to essentially do, is if I select Budget or Luxury from a dropdown Menu, and then Select the number of beds, let's say 1 bed for this example, then I need the formula to return the correct number.

    So if I select Budget, 1 bed, it will give me the number 57. If I select Luxury and 1 bed, it gives me the number 114. The problem is, I need the formula to include ALL options. So whether I select Luxury and 5 beds, the formula will choose the number 285.

    I'm open to other formula suggestions, but not to VBA.

    Thanks for your help!

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Nesting Multiple IF AND INDEX functions

    please attach a sample excel file with expected result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Nesting Multiple IF AND INDEX functions

    Perhaps a slight variation like this?
    =IF(B2="Budget",INDEX(Sheet1!E15:L16,2,C2+1),FALSE)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,038

    Re: Nesting Multiple IF AND INDEX functions

    ... or like this. Two drop downs created (CTRL F3 to view the named ranges) plus a formula to calcuate the rate.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    05-17-2015
    Location
    Sofia, Bulgaria
    MS-Off Ver
    2013
    Posts
    5

    Re: Nesting Multiple IF AND INDEX functions

    Hi,

    variation of Glenn's solution:

    =HLOOKUP(B8,A1:H3, IF(A8="Budget", 2, 3), 0) or in other words - it takes the column based on the size of the room and the row based on Budget/Luxury

    Cheers,

    Vitali

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Nesting multiple INDEX and MATCH functions
    By dontaylor in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-12-2013, 06:15 PM
  2. Need help with nesting multiple IF functions
    By source in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-06-2013, 11:01 AM
  3. nesting multiple IF functions in macro
    By fbwhitey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2010, 09:00 AM
  4. Nesting Index and Match Functions
    By Malone in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-16-2005, 06:55 PM
  5. Nesting OR & AND Functions to Meet Multiple Criteria
    By Andrew in forum Tips and Tutorials
    Replies: 3
    Last Post: 10-04-2005, 03:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1