Vlookup rounding with dates

Prevost

Board Regular
Joined
Jan 23, 2014
Messages
198
Hi There. I have a table that contains the date in DD/MM/YYYY HH:MM:SS format and I want to use VLOOKUP to find the average temperature for the corresponding date in another worksheet. The dates in the weather data worksheet are in the same format. The average temperatures are given hourly, but I need those temperatures for 5 minute interval data (so the average temperature for 1:00PM will be the average temperature for 1:00, 1:05, 1:10,...etc). It works almost perfectly but VLOOKUP puts the average temperature for 12:00 in the space that it should be 1:00, but then correctly uses 1:00 for 1:05. I am using an approximate match, so that could have something to do with it. I have tried using ROUND, ROUNDUP and ROUNDDOWN but they all seem to misread the exact matches while providing what I want for the other temperatures. Anyone have any suggestions?
Thanks!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
hello can you post a sample with few rows and few columns with the expected outcome?
 
Upvote 0
Sure thing. The selected cell in the first picture should read -8.8 (from the second picture) but instead reads -10.6...the 13:00 value is still using the 12:00 value.

29pz1q0.png


1zyj9rp.png
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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