Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default VLOOKUP and truncating time


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


--
tvtime
------------------------------------------------------------------------
tvtime's Profile: http://www.excelforum.com/member.php...o&userid=36676
View this thread: http://www.excelforum.com/showthread...hreadid=564159

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 299
Default VLOOKUP and truncating time

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


"tvtime" wrote in
message ...

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


--
tvtime
------------------------------------------------------------------------
tvtime's Profile:
http://www.excelforum.com/member.php...o&userid=36676
View this thread: http://www.excelforum.com/showthread...hreadid=564159



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default VLOOKUP and truncating time


thanks very much for the reply. I'll try it tomorrow!

Have a great day.


--
tvtime
------------------------------------------------------------------------
tvtime's Profile: http://www.excelforum.com/member.php...o&userid=36676
View this thread: http://www.excelforum.com/showthread...hreadid=564159

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP problem Stevie D Excel Worksheet Functions 5 March 8th 06 11:20 AM
vlookup truncating information liam Excel Worksheet Functions 2 January 26th 06 07:53 PM


All times are GMT +1. The time now is 09:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"