+ Reply to Thread
Results 1 to 15 of 15

Index & Match for 3 criteria

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Index & Match for 3 criteria

    Dear all

    I would like to know how i can get the Index & Match function works on 3 creteria

    See the attached

    =INDEX($B$7:$C$13,MATCH(G$6,Date,1),MATCH($E7,hotel,0))

    I need to add one more criteria to match for the column. that is "Room"

    I tried =INDEX($B$7:$C$13,MATCH(G$6,Date,1),MATCH($E7,hotel,0)*($E8,room,0)) , it does not work


    Appreciated your help
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Index & Match for 3 criteria

    There is only one table of rate for single hotel. Where is another one for second hotel?
    Quang PT

  3. #3
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: Index & Match for 3 criteria

    Bebo

    There is two hotel, Kowloon and Eaton

    Attachment 664553

    Thanks

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Index & Match for 3 criteria

    Quote Originally Posted by Eric Tsang View Post
    Bebo

    There is two hotel, Kowloon and Eaton

    Attachment 664553

    Thanks
    Yes, we know that. But, the rate tarif (for both rooms) seems for 1 hotel only.

  5. #5
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: Index & Match for 3 criteria

    Bebo


    The room rates are different

    Kowloon & Eaton has their own rates

    Hence, i have to locate the rates by the date different

    Eric

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Index & Match for 3 criteria

    I see only one rates of one hotel.
    Annotation 2020-02-26 103432.jpg

  7. #7
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: Index & Match for 3 criteria

    Bebo

    the 1st hotel is Kowloon Hotel, room type is Deluxe in 1-May, the rate is 950
    the 2nd hotel is Eaton Hotel, room type is Superior in 1-May, the rate is 633

    Eric

  8. #8
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: Index & Match for 3 criteria

    Bebo

    So, i solve the problem of different date with different rate for different hotel

    But i also want to add the criteria of room type.

    So, user need to match, the date, hotel and room type for the rates.

    Eric

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Index & Match for 3 criteria

    So, Kowloon sticks to Deluxe, and Eaton to Superior?
    Finally, there are 2 criterias only: Date and Room (or Hotel)

  10. #10
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: Index & Match for 3 criteria

    Dear Bebo

    See below

    Attachment 664566

    Eric

  11. #11
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: Index & Match for 3 criteria

    Dear Bebo

    I watched a suggestion from Youtube
    https://www.youtube.com/watch?v=Z2X9j8sqJ64&t=354s

    But this is an array formula, i do not know how to copy across to other cells

    Eric

  12. #12
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Index & Match for 3 criteria

    Quote Originally Posted by Eric Tsang View Post
    Dear Bebo
    I watched a suggestion from Youtube
    https://www.youtube.com/watch?v=Z2X9j8sqJ64&t=354s
    Eric
    It is quite different with multi columns.
    In your file, as I said before, there are 2 columns of rate, with hotel1&room1 for column1, hotel2&room2 for column2, you need only one criteria for hotel (or room) is enough.
    Anyway, below formula can do with separate hotel & room:
    In G7:
    =INDEX($B$7:$C$13,MATCH(G$6,Date,1),MATCH($E$7&"|"&$F$7,INDEX(hotel&"|"&Room,),0))

  13. #13
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: Index & Match for 3 criteria

    Bebo

    Thanks and i think i still do not understand "|"mean

    Eric

  14. #14
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Index & Match for 3 criteria

    Quote Originally Posted by Eric Tsang View Post
    Bebo

    Thanks and i think i still do not understand "|"mean

    Eric
    "|" or any special symbol (@,!,... to keep hotel & room together but in separate meaning.
    Imagin,
    case1: Leon & Ate
    Case 2: Leo & Nate
    concanate together to be the same string: "Leonate"

  15. #15
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: Index & Match for 3 criteria

    Bebo

    Thanks
    eric

+ 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. Replies: 7
    Last Post: 10-03-2019, 11:23 AM
  2. [SOLVED] Combining INDEX/MATCH with several criteria and INDEX/SMALL
    By Dresas in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-15-2018, 11:02 AM
  3. Need help in Index, Match usage to match multiple criteria in sum function
    By Summer0830 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2017, 02:47 AM
  4. VBA Code for Index/Match/Match to input into excel based on 2 criteria inside form
    By Carl Fisher in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2017, 12:11 PM
  5. [SOLVED] Combining 3 Formulas: Return all Names that Match Criteria Using Index/Match
    By bchilme in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-29-2014, 09:28 AM
  6. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  7. Replies: 6
    Last Post: 04-30-2014, 02:42 AM

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