+ Reply to Thread
Results 1 to 16 of 16

index/match formula to return variable/changing results from different sheet

  1. #1
    Registered User
    Join Date
    02-15-2016
    Location
    England
    MS-Off Ver
    2007
    Posts
    10

    index/match formula to return variable/changing results from different sheet

    Hi I've been using this formula to return data from a cell in another sheet, ATK1 is a cell with a date in it but when the cell I'm trying match has no data it is returning the date from ATK1, is there a way to return a blank or zero?

    =INDEX(EXAM!$AB$2:$CL$13,MATCH(ATK1,EXAM!$AB$2:$CL$2,0),1)

    Thanks
    Ian
    Last edited by Owen1976; 05-03-2021 at 12:13 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Help with index/match formula

    You could wrap your formula with a IF function to check if that data exists and if it does, then run your formula, if it doesnt then dont

    Something like this may help

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-15-2016
    Location
    England
    MS-Off Ver
    2007
    Posts
    10

    Re: Help with index/match formula

    Hi cubangt,

    Still returns the date i'm afraid??

  4. #4
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Help with index/match formula

    would you be able to provide a sample file?

    just a few rows in each sheet that is being used for the formula.

  5. #5
    Registered User
    Join Date
    02-15-2016
    Location
    England
    MS-Off Ver
    2007
    Posts
    10

    Re: Help with index/match formula

    How do I upload files on here? thanks

  6. #6
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Help with index/match formula

    Read the yellow banner at the top of the page.

  7. #7
    Registered User
    Join Date
    02-15-2016
    Location
    England
    MS-Off Ver
    2007
    Posts
    10

    Re: Help with index/match formula

    Hi cubangt,

    Think I've done it?

    Thanks guys

    as it stands it does what i need, but when i change the date on the "EXAM" tab in cell AB2 to today()+1 for testing it i get the date returned in the "7 day plan" tab ATK4 cell? when i would like it to be blank!
    Attached Files Attached Files
    Last edited by Owen1976; 04-30-2021 at 10:07 AM.

  8. #8
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Help with index/match formula

    So looking at the column AC in Exam, there is only 1 value under 5/1/2021
    So is your expected result in 7 Day Plan ATK4 = 350233 and then ATL and ATM would be blank?

  9. #9
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Help with index/match formula

    Try swapping the return value in the IF like so

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    02-15-2016
    Location
    England
    MS-Off Ver
    2007
    Posts
    10

    Re: Help with index/match formula

    Hi cubangt,

    Yes that is exactly as I would like it to be, I've tried your last formula and its returning a blank when I need it to display 350233?

    If there are 3 entries under a date in the EXAM tab I'd like them to be shown in the corresponding date column in the 7 day plan tab in the 3 cells ATK4, ATL4, ATM4.

    If there are only 2 entries then id like just 2 results and a blank, if that makes sense?

    Thanks
    Ian
    Last edited by Owen1976; 05-01-2021 at 01:44 AM.

  11. #11
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Help with index/match formula

    it makes sense, but not sure index match would be the way to go about it..
    May have to use another method to get all the results with that date,

    Take a look at this link and see if this would help you get to what you need..
    https://www.xelplus.com/return-multi...lues-in-excel/

    If i can think of another way to do it, then ill post back.

  12. #12
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Help with index/match formula

    Will it always be 3 returned values max? or could there be more?
    I asked because under each date there are 11 cells. Then on the 7 day plan sheet you have 6 yellow cells.. so just trying to see if it will always be a set number of potential values

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,729

    Re: Help with index/match formula

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  14. #14
    Registered User
    Join Date
    02-15-2016
    Location
    England
    MS-Off Ver
    2007
    Posts
    10
    Hi cubangt, 6 would be the max I’d ever need returned, thanks!

    Quote Originally Posted by cubangt View Post
    Will it always be 3 returned values max? or could there be more?
    I asked because under each date there are 11 cells. Then on the 7 day plan sheet you have 6 yellow cells.. so just trying to see if it will always be a set number of potential values

  15. #15
    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,180

    Re: index/match formula to return variable/changing results from different sheet

    Try in ATQ

    =IFERROR((INDEX(EXAM!$AB$2:$CL$13,COLUMNS($A:D),MATCH($ATQ1,EXAM!$AB$2:$CL$2,0))),"")

    format cells as 0;-0;;@ to hide zeros returned from INDEX
    Attached Files Attached Files

  16. #16
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: index/match formula to return variable/changing results from different sheet

    @owen1976 try John's solution and see if that works for you

    I worked on a solution today and i got good results, but its alot more involved than his..

    But i have uploaded my file as well..
    Attached Files Attached Files

+ 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] Index Match not cycling through entire index. Formula not updating when values change...
    By nordxnortheast in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2020, 10:44 AM
  2. Replies: 1
    Last Post: 08-17-2019, 01:11 PM
  3. Index Match formula changing my Index daily
    By vitt4300 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2017, 02:19 PM
  4. [SOLVED] This formula works but I don´t understand why Index(Index) match
    By campelliann in forum Excel General
    Replies: 2
    Last Post: 01-25-2016, 05:55 PM
  5. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  6. Index Match Index Formula work slow
    By avk in forum Excel General
    Replies: 9
    Last Post: 03-07-2012, 02:19 PM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 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