hlookup and match

ehardway123

New Member
Joined
May 24, 2013
Messages
22
Hey all,

I am not sure what is happening. I have used this function a bunch of times and it is giving me a #na. My function is =HLOOKUP(D2,BL!$A$4:$D$17, MATCH(Sheet6!$C$1,BL!$A$4:$A$16,0), FALSE). D2 is 13 and c1 is JUN. It should be returning the number 5 but it is giving me an #n/A. What am i doing wrong? Below is the table im trying to return the number from.

WLTYPEBL
Count of WLTYPEColumn Labels
Row Labels131415Grand Total
JAN112031
FEB52328
MAR61319
APR71017
MAY20323
JUN51520
JUL81321
AUG151631
SEPT21719
OCT6612
NOV12627
DEC11314
Grand Total6514156262

<colgroup><col span="2"><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
there is nothing wrong with your formula... I cut and pasted your data and formula and it worked as expected.

Leads me to believe that your 13 is maybe not exactly 13.... maybe it is actually a rounded number...

or JUN is not exactly JUN... maybe leading or trailing spaces exist somewhere...

test like this

=Sheet6!$C$1=A10

see if that returns TRUE

then do the same with the two cells that have the 13... likely scenario is that one of the 13's is actually text and not number
 
Last edited:
Upvote 0
... likely scenario is that one of the 13's is actually text and not number

if in fact this is the problem, then one of these should correct the issue

=HLOOKUP(TEXT(D2,0),$A$4:$D$17, MATCH($C$1,$A$4:$A$16,0), FALSE)

or try

=HLOOKUP(D2*1,$A$4:$D$17, MATCH($C$1,$A$4:$A$16,0), FALSE)
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,791
Members
451,589
Latest member
Harold14

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