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)
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi,
You can test
Excel Formula:
=VLOOKUP(DATE($A$9,MONTH(1&F18),1),A11:C12,2)
 
Upvote 0
Still gives #value error :(

In A9 is 2023, the current year
 
Upvote 0
Sorry ... just noticed you are using ; and not a comma as a formula separator...
Excel Formula:
=VLOOKUP(DATE($A$9;MONTH(1&F18);1),A11:C12;2)
 
Upvote 0
Sorry for my late reply, i've been out for a while.

I still get the #Value error

Book2
ABC
12023
2Month
3January132122
4February10189
5
6january#VALUE!
Sheet1
Cell Formulas
RangeFormula
A3A3=DATE($A$1,ROWS(1:$1),1)
A4A4=DATE($A$1,ROWS(1:$2),1)
B6B6=VLOOKUP(DATE($A$1,MONTH(1&A6),1),A3:C4,2)


When i look into the calculation steps i see it goes wrong when it looks for the month.
It sees 1january wich is not in the sheet.

1.PNG


But when i change the formula to

Excel Formula:
=VLOOKUP(DATE($A$1;MONTH(B18);1);A11:C12;2)

It still results in #VALUE

2.PNG


Someone know what is going on?

It should look up the value in A6 in the range A3:C4.

The months are created with
Excel Formula:
=DATE($A$1;ROWS(1:$1);1)
wich makes it difficult
 
Upvote 0
I have logged off for the night but try:
Excel Formula:
=VLOOKUP(DATEVALUE("1-"&A6&"-"&A1);A3:C4;2)/[CODE]
 
Upvote 0
What language is the default for your computer ?
If you type 1-January into a cell does it convert it to a date ?
 
Upvote 0
By the way ... have you made sure cell A6 has no spaces or blanks at the end ? ...
 
Upvote 0
A6 has no spaces or blanks at the end

I think my default language is english (United states)
When i type 1-january it doesn't convert to date. It stays General.

1.PNG

When i press Evaluate

2.PNG
 
Upvote 0

Forum statistics

Threads
1,215,245
Messages
6,123,842
Members
449,129
Latest member
krishnamadison

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