Help with Time? trying to vlookup a NOW() value in a text table...
I have an issue with a table containing text data showing a time in the format 00:00, 12:15 etc. I want to display some text that relates to the current time and have used NOW() to display the time in the same format (12:15 eg) When I vlookup the NOW() value, it fails to match it to the text. They look exactly the same, and I assumes that would be enough. Is there any way to do it? Am I just being dumb? Thanks in advance for any help. -- mickeygib ------------------------------------------------------------------------ mickeygib's Profile: http://www.thecodecage.com/forumz/member.php?userid=628 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=122436 |
Help with Time? trying to vlookup a NOW() value in a text table...
Rather than try to force NOW() into a text value, and then correct format
from there, it would probably be easier to use the TIMEVALUE function to convert your text data into actual times. One other note though: NOW() brings in seconds, and your sample data appears to only be hours and minutes. You may need to compare to: =TIME(HOUR(NOW()),MINUTE(NOW()),0) -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "mickeygib" wrote: I have an issue with a table containing text data showing a time in the format 00:00, 12:15 etc. I want to display some text that relates to the current time and have used NOW() to display the time in the same format (12:15 eg) When I vlookup the NOW() value, it fails to match it to the text. They look exactly the same, and I assumes that would be enough. Is there any way to do it? Am I just being dumb? Thanks in advance for any help. -- mickeygib ------------------------------------------------------------------------ mickeygib's Profile: http://www.thecodecage.com/forumz/member.php?userid=628 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=122436 |
Help with Time? trying to vlookup a NOW() value in a text table...
If I understand what you're saying, how can you expect to match a *volatile*
function (Now()) with a text value? The Now() function changes every time the sheet calculates, and also contains seconds. Even if you place your sheet calcs on manual, you'll never get to a match. -- Regards, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "mickeygib" wrote in message ... I have an issue with a table containing text data showing a time in the format 00:00, 12:15 etc. I want to display some text that relates to the current time and have used NOW() to display the time in the same format (12:15 eg) When I vlookup the NOW() value, it fails to match it to the text. They look exactly the same, and I assumes that would be enough. Is there any way to do it? Am I just being dumb? Thanks in advance for any help. -- mickeygib ------------------------------------------------------------------------ mickeygib's Profile: http://www.thecodecage.com/forumz/member.php?userid=628 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=122436 |
Help with Time? trying to vlookup a NOW() value in a text table...
NOW() is a volatile function.
You can never match NOW() to a static value. 12:15 will only be valid for a millisecond.........or less, I would imagine. Seeing it as 12:15 is a formatting display only For help on how Excel stores dates and times see Chip Pearson's site. http://www.cpearson.com/excel/datetime.htm#SerialDates Gord Dibben MS Excel MVP On Tue, 4 Aug 2009 20:43:33 +0100, mickeygib wrote: I have an issue with a table containing text data showing a time in the format 00:00, 12:15 etc. I want to display some text that relates to the current time and have used NOW() to display the time in the same format (12:15 eg) When I vlookup the NOW() value, it fails to match it to the text. They look exactly the same, and I assumes that would be enough. Is there any way to do it? Am I just being dumb? Thanks in advance for any help. |
All times are GMT +1. The time now is 04:30 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com