+ Reply to Thread
Results 1 to 6 of 6

Simple Lookup giving me problems today

Hybrid View

  1. #1
    Registered User
    Join Date
    04-28-2022
    Location
    Canton, Michigan US
    MS-Off Ver
    365
    Posts
    41

    Simple Lookup giving me problems today

    Ignore the error that appear. I deleted a lot of rows for this example. But Basically, I need to look up the same row from 2025 & 2024 columns and have it go into the comparison based on the date in E3 of comparison. I cannot get an index/match to work. Your help is always appreciated.
    Attached Files Attached Files

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

    Re: Simple Lookup giving me problems today

    The file is full of #REF! errors!

    in H7

    Formula: copy to clipboard
    =INDEX('2025'!$H$7:$T$15,MATCH($F7,'2025'!$F$7:$F$15,0),MATCH($E$3,'2025'!$H$4:$S$4,0))


    Or

    =INDEX(INDIRECT("'" & YEAR(E3) & "'!$H$7:$T$15"),MATCH($F7,INDIRECT("'" & YEAR(E3) & "'!$F$7:$F$7"),0),MATCH($E$3,INDIRECT("'" & YEAR(E3) & "'!$H$4:$S$4"),0))
    Attached Files Attached Files
    Last edited by JohnTopley; 02-19-2025 at 12:01 PM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    04-28-2022
    Location
    Canton, Michigan US
    MS-Off Ver
    365
    Posts
    41

    Re: Simple Lookup giving me problems today

    Yeah, sorry for all the #REF! errors. It is because I deleted a bunch of lines that those were calculated on. The problem with the $F7 lookup is because it is listed several times. You will see a heading of "REVENUE"; I have "COGS" & "GROSS PROFIT" that have the same row headings reading down. So when I put the formula down to H18 which also says "New" it will read H7 instead. The team doesn't want to rename the row headings for other purposes.

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

    Re: Simple Lookup giving me problems today

    Your file data finishes at H15 so unless you post a proper example we cannot help further.

  5. #5
    Registered User
    Join Date
    04-28-2022
    Location
    Canton, Michigan US
    MS-Off Ver
    365
    Posts
    41

    Re: Simple Lookup giving me problems today

    Ok, I revised the sample for you all. Basically what we want to is to change the date in Comparison E3 and have the figures in columns H & I change to the appropriate month from the appropriate sheet.
    Attached Files Attached Files

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

    Re: Simple Lookup giving me problems today

    In H7

    Formula: copy to clipboard
    =INDEX(INDIRECT("'" & YEAR($E$3) & "'!$H$7:$T$15"),MATCH($F$6,INDIRECT("'" & YEAR($E$3) & "'!$F$6:$F$15"),0)+MATCH($F7,INDIRECT("'" & YEAR($E$3) & 
    "'!$F$7:$F$15"),0)-1,MATCH($E$3,INDIRECT("'" & YEAR($E$3) & "'!$H$4:$S$4"),0))


    in I7

    Formula: copy to clipboard
    =INDEX(INDIRECT("'" & YEAR($E$3)-1 & "'!$H$7:$T$15"),MATCH($F$6,INDIRECT("'" & YEAR($E$3)-1 & "'!$F$6:$F$15"),0)+MATCH($F7,INDIRECT("'" & YEAR($E$3-1) & "'!$F$7:$F$15"),0)-1,MATCH(DATE($E$3,-12),INDIRECT("'" & YEAR($E$3)-1 & "'!$H$4:$S$4"),0))


    in H18

    Formula: copy to clipboard
    =INDEX(INDIRECT("'" & YEAR($E$3) & "'!$H$7:$T$37"),MATCH($F$17,INDIRECT("'" & YEAR($E$3) & "'!$F$6:$F$37"),0)+MATCH($F18,INDIRECT("'" & YEAR($E$3) & "'!$F$7:$F$37"),0)-1,MATCH($E$3,INDIRECT("'" & YEAR($E$3) & "'!$H$4:$S$4"),0))


    in I18

    Formula: copy to clipboard
    =INDEX(INDIRECT("'" & YEAR($E$3)-1 & "'!$H$7:$T$37"),MATCH($F17,INDIRECT("'" & YEAR($E$3)-1 & "'!$F$6:$F$37"),0)+MATCH($F18,INDIRECT("'" & YEAR($E$3-1) & "'!$F$7:$F$15"),0)-1,MATCH(EDATE($E$3,-12
    ),DAY($E$3)),INDIRECT("'" & YEAR($E$3)-1 & "'!$H$4:$S$4"),0))
    Attached Files Attached Files
    Last edited by JohnTopley; 02-22-2025 at 08:08 AM.

+ 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. All my Google Sheets appscript is giving problems on second run.
    By hendrikbez in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 09-07-2023, 10:03 AM
  2. nested substitute giving me problems
    By Doc_62 in forum Excel Formulas & Functions
    Replies: 32
    Last Post: 11-19-2022, 05:57 AM
  3. [SOLVED] Simple =IF(A2<11;0;B2) not giving 0
    By KeanuB in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-29-2016, 05:06 AM
  4. Please help with a ''For each'' issue- Nesting two of these is giving me problems.
    By graym463 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2015, 09:26 AM
  5. [SOLVED] Future Date - TODAY() : not giving expected result
    By Psycho_uk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-08-2013, 04:37 AM
  6. Simple Index Match formula giving me problems with 2 way lookup
    By rikkyshh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-18-2013, 06:47 AM
  7. Replies: 6
    Last Post: 05-18-2012, 06:30 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