Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default 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



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default 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.


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
Using text to lookup different table arrays in vlookup. stuart Excel Worksheet Functions 2 June 16th 08 05:27 PM
Vlookup where table array is in text format jodieg Excel Worksheet Functions 4 January 3rd 08 07:44 PM
how do i use vlookup function in more than one table same time Sanjeev kumar[_2_] Excel Worksheet Functions 1 May 21st 07 10:03 AM
how do i use vlookup function in more than one table same time Sanjeev kumar Excel Worksheet Functions 1 May 18th 07 03:05 PM
Pivot Table (vlookup 2 column text values, return 1 value) Al Excel Discussion (Misc queries) 1 November 30th 05 01:15 AM


All times are GMT +1. The time now is 02:33 PM.

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

About Us

"It's about Microsoft Excel"