How to make an Hlookup?

Jyggalag

Active Member
Joined
Mar 8, 2021
Messages
445
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi all,

I currently have this:

1667901531555.png


I want to hlookup the value in my other table based on the date in column A (01-06-2022)

It should return the value here:

1667901580384.png


However, I do not know how to get it to return the value of 175937,93?

I tried to put in "955" as the column index number... but it just returns #N/A no matter what I insert

can somebody please help?

Thanks! :-)
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Will the Grand Total always be on row 955?
 
Upvote 0
Then try
Excel Formula:
=HLOOKUP(A2,Sheet4!$B$2:$BR$955,954,0)
 
Upvote 0
Solution
Could it be that your date in A2 is Text and the dates in row 2 of Sheet4 are Numeric? Or vice-versa?
 
Upvote 0
Could it be that your date in A2 is Text and the dates in row 2 of Sheet4 are Numeric? Or vice-versa?
That is true! In my first sheet the dates are "Date" and in the second one they are "General"
 
Upvote 0
I t
Could it be that your date in A2 is Text and the dates in row 2 of Sheet4 are Numeric? Or vice-versa?
I turned it from "Date" to "General" and it works now!

Thank you so much for your brilliant insight Peter! I could never have guessed that myself haha :-)

1667902866646.png
 
Upvote 0
second one they are "General"
They may be formatted as "General" but think the actual value is most likely Text. It certainly looks that way as those dates in Sheet4 are left-aligned like Text would be.
With the original formatting you could try this.

Excel Formula:
=HLOOKUP(TEXT(A2,"dd-mm-yyyy"),Sheet4!$B$2:$BR$955,954,0)
 
Upvote 0

Forum statistics

Threads
1,223,957
Messages
6,175,622
Members
452,661
Latest member
Nonhle

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