Vlookup; Intermitten #NA Errors when calculating time - is formatting the problem?

Kelly15

New Member
Joined
Sep 3, 2014
Messages
1
Hi,

I'm trying to create a timekeeping spread sheet for staff. I have a start time column, and a finish time column, both formatted as hh:mm and have entered the time using 24 hr time.

I've used the third column to calculate the hours worked using the B2-A2 (Finish time - start time). All of this works fine, the problem is that we only pay their time less breaks, so I have created a table array showing the actual time worked, and then in the second column, the corresponding time we will pay. I am trying to create a VLOOKP column next to the total hours column, which will return the time that we need to pay, less breaks.

I'm getting an intermittent #NA error, supposedly caused by the cell returning the B2-A2 result. The strange thing is that if I delete the formula, and manually enter the hours worked, then the VLOOKUP works perfectly, and I don't get NA errors. I think that it's a format or value problem, but I can't seem to figure out why, or how to fix it. Any ideas????
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
If you format the column as regular number, you'll probably see the issue. Time is just a number between 0 and 1. As such, .1 and 1.1 return the same time.
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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