+ Reply to Thread
Results 1 to 9 of 9

Index Match? - Find value in given row then return diff value in same row and diff column

  1. #1
    Registered User
    Join Date
    02-07-2014
    Location
    Berlin, Germany
    MS-Off Ver
    Microsoft Excel for Mac
    Posts
    7

    Index Match? - Find value in given row then return diff value in same row and diff column

    Hi all,

    Banging my head against the wall on this one:

    I have a budget which I'm trying to build a KPI sheet into. What I would like to do is build formulas that automatically check against today's date, then return assorted KPIs based on the month, quarter, year.

    I'm struggling to do this dynamically. I have a row in my budget sheet of date codes, and then today's date codes in my KPI sheet. Ideally, in my KPI sheet, I would have equations that did the following:

    Check today's date against the values in the corresponding row in my budget sheet, and then when there is a match return a value from the same column but a different row.

    I know this is an index match function, but I'm banging my head against the wall. Sample worksheet attached with two examples. Can anyone help?

    Thanks!
    Attached Files Attached Files

  2. #2
    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,023

    Re: Index Match? - Find value in given row then return diff value in same row and diff col

    The whole thing begins to fall down in C9 & D9.

    1. Why is C9 the 15 th of June and not the first? The dates generated by your formula are going to be date/times AND all over the place and will need to be replaced. But also...

    2. Since today is 17 Feb, why is "last month" December 2020?
    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

  3. #3
    Registered User
    Join Date
    02-07-2014
    Location
    Berlin, Germany
    MS-Off Ver
    Microsoft Excel for Mac
    Posts
    7

    Re: Index Match? - Find value in given row then return diff value in same row and diff col

    Hey Glenn,

    1. Starting on the 15th allows me to use "=C9+365.25/12" as my equation to add months, which I find easier than other methods.
    2. This is just for explanatory/display purposes- you are right that it should be Jan.

    Have updated the explantory doc and reattched it.
    Attached Files Attached Files

  4. #4
    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,776

    Re: Index Match? - Find value in given row then return diff value in same row and diff col

    Is there any reason why you don't use the EDATE function to add months???
    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.

  5. #5
    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,023

    Re: Index Match? - Find value in given row then return diff value in same row and diff col

    OK. No reply, To get things moving, I have changed C9 to 1st June and D9 to

    =EDATE(C9,1)

    copied across. Now the dayts are JUST that. 1st of each month, with NO time component as well.

    a bit confused about the month you want calculated, so for now, I put a date in KPI C1. To return the expened for that date:

    =INDEX('Budget v. Actuals'!$36:$36,,MATCH(KPIs!$C$1,'Budget v. Actuals'!$9:$9,0))

    and to return the sum that and the preceeding 2 months of Oct-Nov-Dec:


    =SUM(INDEX('Budget v. Actuals'!$36:$36,,MATCH(KPIs!$C$1,'Budget v. Actuals'!$9:$9,0)+{0,-1,-2}))

    in Germany you may need ; instead of ,
    Attached Files Attached Files

  6. #6
    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,023

    Re: Index Match? - Find value in given row then return diff value in same row and diff col

    i see you have now replied!!

  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
    44,023

    Re: Index Match? - Find value in given row then return diff value in same row and diff col

    I have modified the formulae to use TODAY() and, of course, they now give results for Jan and Nov-Jan
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-07-2014
    Location
    Berlin, Germany
    MS-Off Ver
    Microsoft Excel for Mac
    Posts
    7

    Re: Index Match? - Find value in given row then return diff value in same row and diff col

    Thanks all!

    Love to learn more about to properly use index match and, love the added bonus of learning correct month etiquette Am marking this as solved.

  9. #9
    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,023

    Re: Index Match? - Find value in given row then return diff value in same row and diff col

    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: 5
    Last Post: 10-23-2015, 12:35 PM
  2. [SOLVED] If find a match then add two diff cells on same row
    By butair in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-19-2014, 10:11 AM
  3. Pull rev letters from index(match), multiple rows of same DWG# each diff rev
    By Cwyso1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-28-2014, 03:03 PM
  4. Replies: 0
    Last Post: 07-30-2013, 07:42 PM
  5. Diff. between Vlookup and Match/Index
    By RATUL in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-17-2013, 02:03 PM
  6. Replies: 2
    Last Post: 01-13-2013, 06:50 AM
  7. [SOLVED] Index? Match? Function to sort and return value fr diff column in
    By Smurfette in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-27-2006, 12:50 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