+ Reply to Thread
Results 1 to 4 of 4

Match and Index function

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

    Match and Index function

    Dear All

    Appreciate if you would help

    As attached a small table

    Listed the dates and hotel prices
    I tried to use + index & Match function
    However, i want to returned a figure which is lower or equal to the input

    For example :
    02-Jan 05-Jan 07-Jan 08-Jan 10-Jan
    Ramada Hotel 50 90 40 50
    Park Hotel 10 12 10 15

    Date 05-Jan 06-Jan 07-Jan
    Ramada Hotel 90 90 40

    I want to get the rates on 6-Jan, which is smaller than 7-Jan
    in this case, it should run 90

    How can i do that..

    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Gatti's Avatar
    Join Date
    06-08-2015
    Location
    Brasil, São Paulo, Ribeirão Preto
    MS-Off Ver
    365
    Posts
    346

    Re: Match and Index function

    On Cell D8:

    Please Login or Register  to view this content.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Match and Index function

    You have a space at the end of Ramada Hotel in cell B8, so I suggest your remove that, and then you can use this formula in D8:

    =INDEX($C$4:$G$5,MATCH(TRIM($B8),$B$4:$B$5,0),MATCH(D$7,$C$3:$G$3))

    then you can copy this across into E8:F8.

    The TRIM function (shown in red) is only needed if you don't remove the space in B8.

    Hope this helps.

    Pete

  4. #4
    Valued Forum Contributor Gatti's Avatar
    Join Date
    06-08-2015
    Location
    Brasil, São Paulo, Ribeirão Preto
    MS-Off Ver
    365
    Posts
    346

    Re: Match and Index function

    Exactly how Pete explained

+ 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. Problems applying INDEX-MATCH-MATCH function on other data
    By LennartB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-13-2015, 05:33 AM
  2. function INDEX MATCH MATCH doesn´t work
    By leonelcd in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-31-2015, 11:36 AM
  3. [SOLVED] Stuck on Match function with #N/A; attempting to reverse Index/Match
    By Cappytano in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-10-2014, 06:39 PM
  4. Replies: 6
    Last Post: 03-17-2014, 08:10 PM
  5. index function error using match function to get data from a cell in an array
    By mabildgaard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 02:21 AM
  6. Replies: 3
    Last Post: 06-17-2013, 12:37 PM
  7. Replies: 2
    Last Post: 03-20-2009, 01:29 PM

Tags for this Thread

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