Vlookup/Match error

ExcelAtEverything

Active Member
Joined
Jan 30, 2021
Messages
351
Office Version
  1. 2019
Platform
  1. Windows
Hello,

In screenshot #1 below, I'm using a VLOOKUP/MATCH combination to try and pull the plan numbers from whichever month is in cell F8 of screenshot #2. The following formula which I'm using does not work, however. I'd like to perform this action without using VB if possible. Could someone tell me either what I'm doing incorrectly, and/or how to fix it.
=VLOOKUP([@[Loc '#]],Annual_Plan_Numbers_Reports__2,MATCH('Calc Data'!F7,Annual_Plan_Numbers_Reports__2[[#Headers],[Jan]:[Dec]]),FALSE)


Note:
It seems to only be the MATCH portion that isn't working, because when I replace the entire MATCH formula with just a column count like this, of course it works perfectly.
=VLOOKUP([@[Loc '#]],Annual_Plan_Numbers_Reports__2,7,FALSE)

Thx so much for assistance!

1616394834406.png

In screenshot #1, Row #1 contians a date format.

1616394941342.png

In screenshot #2, F8 contains the formula =Today() (with a custom format).
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I din't understand the details of your formula, for example what Annual_Plan_Numbers_Reports__2 corresponds to; but would suggest you use INDEX/Match/MonthOfF8; in some detail:
Excel Formula:
INDEX(TheTable,MATCH(What-is-necessary-to-point-the-right-Row,MONTH(F8)+4)
The "+4" assumes that TheTable is the one shown in pict #1, where Jan (Month #1) is column #5

Bye
 
Upvote 0
Solution
Hey, thanks Anthony47. Sorry yes, I forgot to mention that! Annual_Plan_Numbers-Reports__2 refers to screenshot #1, and Calc Data refers to screenshot #2.
I tried using Index Match, but the same was happening where it seemed like it shoud be working. I'll try it again, using Month like you suggested since I did that part differently.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top