+ Reply to Thread
Results 1 to 7 of 7

Index/Match function - lookup cell is formula, want it to look for result of formula

  1. #1
    Registered User
    Join Date
    03-19-2021
    Location
    Arizona
    MS-Off Ver
    Office 16 ?
    Posts
    3

    Index/Match function - lookup cell is formula, want it to look for result of formula

    I am trying to get the MATCH function to look up the result of the formula in a select cell, not the formula itself.

    =INDEX('Daily Ratios'!B4:H35,MATCH('1'!A5,'Daily Ratios'!A4:A35,0),MATCH('1'!E1,'Daily Ratios'!B3:H3,0))

    Where the '1'!A5 cell contains +G1 and the result is the day of the week, such as Monday.

    I want it to match to "Monday" not the +G1. The function works if I type Monday in the cell, so I know the function is working, but how do I get it to "see" Monday and not the +G1?

    Typing in all the days on each of the sheets will take forever and each month it will change, so I'm trying to get it automated so I don't have to do this.

    Thank you for any help you can give.
    Last edited by cornmama1; 03-22-2021 at 12:20 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-24-2020
    Location
    Woodbridge, VA
    MS-Off Ver
    2016
    Posts
    434

    Re: Index/Match function - lookup cell is formula, want it to look for result of formula

    Hi - can you please attach your file so we can take a look?

  3. #3
    Registered User
    Join Date
    03-19-2021
    Location
    Arizona
    MS-Off Ver
    Office 16 ?
    Posts
    3

    Re: Index/Match function - lookup cell is formula, want it to look for result of formula

    Attached is a partial sample of my workbook.
    Tabs 1 and 2 represent the 1st and 2nd of the month.

    Original post:
    I am trying to get the MATCH function to look up the result of the formula in a select cell, not the formula itself.

    =INDEX('Daily Ratios'!B4:H35,MATCH('1'!A5,'Daily Ratios'!A4:A35,0),MATCH('1'!E1,'Daily Ratios'!B3:H3,0))

    Where the '1'!A5 cell contains +G1 and the result is the day of the week, such as Monday.

    I want it to match to "Monday" not the +G1. The function works if I type Monday in the cell, so I know the function is working, but how do I get it to "see" Monday and not the +G1?

    Typing in all the days on each of the sheets will take forever and each month it will change, so I'm trying to get it automated so I don't have to do this.

    Thank you for any help you can give.
    Attached Files Attached Files

  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
    43,986

    Re: Index/Match function - lookup cell is formula, want it to look for result of formula

    Change E1 to:

    =TEXT(G1,"dddd")

    Change B5 to:

    =INDEX('Daily Ratios'!$B$4:$H$35,MATCH('1'!A5,'Daily Ratios'!$A$4:$A$35,0),MATCH('1'!$E$1,'Daily Ratios'!$B$3:$H$3,0))

    and drag the formula down.
    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
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Index/Match function - lookup cell is formula, want it to look for result of formula

    Try

    in B5

    =INDEX('Daily Ratios'!B4:H35,MATCH('1'!A5,'Daily Ratios'!A4:A35,0),MATCH(TEXT('1'!E1,"dddd"),'Daily Ratios'!B3:H3,0))

    You are comparing a text field "Monday" with date field in E1. you need to compare TEXT with TEXT

    it is E1 that contains G1 not A5

  6. #6
    Registered User
    Join Date
    03-19-2021
    Location
    Arizona
    MS-Off Ver
    Office 16 ?
    Posts
    3

    Re: Index/Match function - lookup cell is formula, want it to look for result of formula

    Thank you Glenn and John!! Both of those worked!! Much appreciated for your assistance!!

  7. #7
    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
    43,986

    Re: Index/Match function - lookup cell is formula, want it to look for result of formula

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ 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: 4
    Last Post: 06-20-2019, 07:13 AM
  2. Using Index Match formula - Working but I want to link the lookup array to a cell.
    By rohanellis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2018, 04:11 AM
  3. [SOLVED] Help with Index Match function and formula based on another cell value
    By shaggyjh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2018, 05:51 PM
  4. [SOLVED] Index, Match formula returns #NA error if result is from an average formula.
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-28-2016, 11:43 AM
  5. [SOLVED] Index Match Formula doesn't recognize output from Right Formula as lookup value.
    By GoGators in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-10-2015, 11:33 AM
  6. [SOLVED] Formula whit INDEX and MATCH. I try to make this formula to result.
    By Anka in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-28-2012, 06:26 PM
  7. Replies: 2
    Last Post: 01-13-2012, 05:21 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