Vlookup problem

Bandito1

Board Regular
Joined
Oct 18, 2018
Messages
233
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

Im trying to retrieve data with Vlookup;

Excel Formula:
=VLOOKUP(F18;A11:C12;2;FALSE)
In F18 i typed "January".

It doesn't find any data; the months in Column A are made with;
Excel Formula:
=DATE($A$9;ROWS($9:9);1)
When i type there "January" it works.

I can't hard type "January" cause than other data will not be retrieved.
Anyone know how i can retrieve data with Vlookup based on month if i use a formula to created the month?


Tracker QA on the floor New.xlsm
ABC
11January133122
12February7470
BMR data
Cell Formulas
RangeFormula
A11:A12A11=DATE($A$9,ROWS($9:9),1)
B11:B12B11=SUMPRODUCT(('Tracker QA on the Floor'!J:J>=A11)*('Tracker QA on the Floor'!J:J<=EOMONTH(A11,0)))
C11:C12C11=SUMPRODUCT(('Tracker QA on the Floor'!L:L>=A11)*('Tracker QA on the Floor'!L:L<=EOMONTH(A11,0)))

Tracker QA on the floor New.xlsm
F
18January
19#N/A
BMR data
Cell Formulas
RangeFormula
F19F19=VLOOKUP(F18,A11:C12,2,FALSE)
 
In my opinion, the easiest solution is to build yourself a simple lookup table listing the 12 months in English and in Dutch ...:)
 
Upvote 1

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
That works

Not the solution i excpected but indeed an easy solution.

Thank you
 
Upvote 0
Another thought, your list of dates are obviously dates but you are entering the lookup month as a text, is there an option to enter the lookup month as a date and then format it the same as your cells in your months list ?

PS: on my Excel to enter Feb I just need to type in 2/23, it will convert it to the 1st of Feb 2023.
If it wasn't a language issue I would type Feb 23 but some Dutch months have a different first 3 letters ie Mei for May. Maart for March
 
Upvote 0
Hey there, Bandito1! I'm not sure if this is what you're looking for, but happy to help. I've color coded the text so you can see which parts of the formulas reference which cells. In cells A10 and A11, I typed in "1-January" and ended up with "1-Jan" in custom format, so I changed the format to text, and then retyped "1-January" in the same cell. Then I used a formula to extract "January" from "1-January". I've provided two different formula options, both of which will work for whatever data is entered for which month. You'd just have to update the range (array) and the month you're looking for as you add more data. I hope this helps.

1678149321809.png
 
Upvote 0
Once you have implemented your final solution, thanks for sharing it with the Forum.

Indeed, it could help out many future readers with a Foreign language set-up :)
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,399
Members
448,958
Latest member
Hat4Life

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