XLookup not returning values using hh:mm format as lookup

JeffGrant

Well-known Member
Joined
Apr 7, 2021
Messages
558
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have a time look up value in the format of hh:mm, eg 12:08.
I have a lookup column in the same format
I have a return column of the number of times that particular time occurs, which is an integer value determined by the CountIf function.

I would like the Xlookup function to lookup the time (12:08) and return the number of occurrences.

However, despite much searching, my Xlookup formula only ever returns the N/A error.

I have tried all sorts or possible solutions using text, time, hour & minute functions, all to no avail.

I suspect it has something to do with the way excel stores time.

I am completely out of ideas on this one. Any and all guidance is very much appreciated.

Thanks in advance for your help.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
problem solved. for this exercise, I have simply removed all formats from all cells and columns involved and it work.....
 
Upvote 0
Solution

Forum statistics

Threads
1,223,933
Messages
6,175,475
Members
452,646
Latest member
tudou

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