VLOOKUP and truncating time

  • Thread starter Thread starter tvtime
  • Start date Start date
T

tvtime

Hello to any who can help... and thank you.

I am converting from another application into excel, and the column for
time includes the seconds. I would like to be able to truncate the
seconds in order to perform a VLOOKUP. I can include every minute of
the day in 1440 rows, but seconds is just too many. Merely formatting
the cells, or rounding (i've tried converting to integers) doesn't work
because excel knows what's there, whether shown or not.

Thanks in advance for any help.
Kiley
 
If you want to truncate to the nearest minute you can use

=INDEX(D3:D30,MATCH(TEXT(A1,"hh:mm"),TEXT(C3:C30,"hh:mm"),0))

entered with ctrl + shift & enter


where A1 holds the lookup time value, C3:C30 is the range with times (the
one with the seconds) you lookup the value in and D3:D30 is the range you
return the value from


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
 
thanks very much for the reply. I'll try it tomorrow!

Have a great day
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top