HLOOKUP Error

onthegreen03

Board Regular
Joined
Jun 30, 2016
Messages
168
Office Version
  1. 365
Platform
  1. Windows
I am trying to perform a simple HLOOKUP formula, using the date (mmm-yy) as the identifying factor. The main data table has dates as text, and the lookup table is using a EDATE formula because I am showing a rolling 12 month table. When I run the formula it returns a #N/A, which I assume is due to one date being text and the other a formula. What is the trick to get this to work?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
You could try converting the date to text by using HLOOKUP(TEXT(your date,"mmm-yy")...
 
Upvote 0
Thanks for the reply. I actually tried that but it did not work, still got the #N/A. I just assumed it was because it was still comparing one cell with the date typed in (text) and the other cell with a date via formula. It could also be that I did not set up the formula correctly, who knows. Seems like this would have a simple fix. Let me know if seeing the file would help.
 
Upvote 0
If you can attach a sample using XL2BB so that we can see what you're working with then it will make it easier for us to see where it is going wrong.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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