Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 124
Default LOOKUP worksheet function


Why does:

=LOOKUP(1.00001,--{"1";"1:"})

return a value of 0.0417 ??

Thanks,

FLKULCHAR
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default LOOKUP worksheet function

Believe it or not...

"1:" is being evaluated as 1:00 AM or 0.0417

The lookup_value 1.00001 is greater than any value in the
lookup_vector --{"1";"1:"} so the result is the *last* number in the
lookup_vector that is less than the lookup_value. And, that number is "1:"
(1:00 AM or 0.0417).

I've run across this sort of thing before where you'd least expect it so now
I'm "aware" of the possibility. For example, in certain situations na (10a)
or np (3p) could also be evaluated as "time". This resolves back to Excel's
eagerness to "identify" times/dates.

--
Biff
Microsoft Excel MVP


"F. Lawrence Kulchar" wrote in
message ...

Why does:

=LOOKUP(1.00001,--{"1";"1:"})

return a value of 0.0417 ??

Thanks,

FLKULCHAR



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default LOOKUP worksheet function

On Sat, 26 Jul 2008 20:05:00 -0700, F. Lawrence Kulchar
wrote:


Why does:

=LOOKUP(1.00001,--{"1";"1:"})

return a value of 0.0417 ??

Thanks,

FLKULCHAR



The double minus transforms the string "1:" to a value.
"1:" is seen as short for "01:00:00" which is a time value which is
1/24 or 0.041466666...

Format the output as time and you will see that it displays as
01:00:00

Hope this helps / Lars-Åke
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default LOOKUP worksheet function

On Sun, 27 Jul 2008 03:28:03 GMT, Lars-Åke Aspelin
wrote:

On Sat, 26 Jul 2008 20:05:00 -0700, F. Lawrence Kulchar
wrote:


Why does:

=LOOKUP(1.00001,--{"1";"1:"})

return a value of 0.0417 ??

Thanks,

FLKULCHAR



The double minus transforms the string "1:" to a value.
"1:" is seen as short for "01:00:00" which is a time value which is
1/24 or 0.041466666...

Format the output as time and you will see that it displays as
01:00:00

Hope this helps / Lars-Åke



Oops. 1/24 or 0.04166666... it should be.
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default LOOKUP worksheet function


"T. Valko" wrote in message
...
Believe it or not...

"1:" is being evaluated as 1:00 AM or 0.0417

The lookup_value 1.00001 is greater than any value in the
lookup_vector --{"1";"1:"} so the result is the *last* number in the
lookup_vector that is less than the lookup_value. And, that number is "1:"
(1:00 AM or 0.0417).

I've run across this sort of thing before where you'd least expect it so
now I'm "aware" of the possibility. For example, in certain situations na
(10a) or np (3p) could also be evaluated as "time". This resolves back to
Excel's eagerness to "identify" times/dates.

--
Biff
Microsoft Excel MVP


"F. Lawrence Kulchar" wrote
in message ...

Why does:

=LOOKUP(1.00001,--{"1";"1:"})

return a value of 0.0417 ??

Thanks,

FLKULCHAR







  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default LOOKUP worksheet function

Thank you very much for your expert analyses!
I was perplexed,
FLKulchar
"T. Valko" wrote in message
...
Believe it or not...

"1:" is being evaluated as 1:00 AM or 0.0417

The lookup_value 1.00001 is greater than any value in the
lookup_vector --{"1";"1:"} so the result is the *last* number in the
lookup_vector that is less than the lookup_value. And, that number is "1:"
(1:00 AM or 0.0417).

I've run across this sort of thing before where you'd least expect it so
now I'm "aware" of the possibility. For example, in certain situations na
(10a) or np (3p) could also be evaluated as "time". This resolves back to
Excel's eagerness to "identify" times/dates.

--
Biff
Microsoft Excel MVP


"F. Lawrence Kulchar" wrote
in message ...

Why does:

=LOOKUP(1.00001,--{"1";"1:"})

return a value of 0.0417 ??

Thanks,

FLKULCHAR





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default LOOKUP worksheet function

thank you so very much...I wa was perplexed.

FLKulchar
"Lars-Åke Aspelin" wrote in message
...
On Sat, 26 Jul 2008 20:05:00 -0700, F. Lawrence Kulchar
wrote:


Why does:

=LOOKUP(1.00001,--{"1";"1:"})

return a value of 0.0417 ??

Thanks,

FLKULCHAR



The double minus transforms the string "1:" to a value.
"1:" is seen as short for "01:00:00" which is a time value which is
1/24 or 0.041466666...

Format the output as time and you will see that it displays as
01:00:00

Hope this helps / Lars-Åke



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default LOOKUP worksheet function

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"FLKulchar" wrote in message
...
Thank you very much for your expert analyses!
I was perplexed,
FLKulchar
"T. Valko" wrote in message
...
Believe it or not...

"1:" is being evaluated as 1:00 AM or 0.0417

The lookup_value 1.00001 is greater than any value in the
lookup_vector --{"1";"1:"} so the result is the *last* number in the
lookup_vector that is less than the lookup_value. And, that number is
"1:" (1:00 AM or 0.0417).

I've run across this sort of thing before where you'd least expect it so
now I'm "aware" of the possibility. For example, in certain situations na
(10a) or np (3p) could also be evaluated as "time". This resolves back to
Excel's eagerness to "identify" times/dates.

--
Biff
Microsoft Excel MVP


"F. Lawrence Kulchar" wrote
in message ...

Why does:

=LOOKUP(1.00001,--{"1";"1:"})

return a value of 0.0417 ??

Thanks,

FLKULCHAR







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
lookup for worksheet Bradrok Excel Worksheet Functions 1 April 2nd 08 11:04 PM
Worksheet Rank / Lookup function Gary T Excel Worksheet Functions 4 October 26th 07 07:14 PM
how to combine an IF Function with a lookup function to determine [email protected] Excel Worksheet Functions 1 December 5th 06 06:09 AM
Worksheet lookup Greg B Excel Discussion (Misc queries) 2 August 4th 05 12:47 PM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


All times are GMT +1. The time now is 09:11 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"