#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default hlookup problem

I am trying to use an hlookup using the date as the lookup-value. In the case
that it finds a zero for that entry, I would like it to lookup the previous
entries until it finds a value. I have tried using TRUE in the logical range
lookup, but since all dates appear it still returns a zero. I have also tried
using an IF stantement as follows: =IF(HLOOKUP(date,formula)=0,
HLOOKUP(date-1,formula), HLOOKUP(date, formula)) but this will only work for
the very next day and wont continuously loop for 2 or more. Can anyone help
me?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default hlookup problem

What it sounds like is that you want the *last* entry of the row.

In the case that it finds a zero for that entry


Are they literally number 0 or are the cells empty? So, does this mean the
value to be returned is numeric?

--
Biff
Microsoft Excel MVP


"Desperate" wrote in message
...
I am trying to use an hlookup using the date as the lookup-value. In the
case
that it finds a zero for that entry, I would like it to lookup the
previous
entries until it finds a value. I have tried using TRUE in the logical
range
lookup, but since all dates appear it still returns a zero. I have also
tried
using an IF stantement as follows: =IF(HLOOKUP(date,formula)=0,
HLOOKUP(date-1,formula), HLOOKUP(date, formula)) but this will only work
for
the very next day and wont continuously loop for 2 or more. Can anyone
help
me?



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
Excel: HLOOKUP Text "approximate" match over 2 sheets problem? Excel: Text (match, lookup...) Excel Discussion (Misc queries) 3 June 15th 07 03:32 PM
HLookup problem with dates searcherlady Excel Discussion (Misc queries) 7 June 8th 07 08:06 PM
Problem with HLookup - Sometimes works, sometimes blank. Regnab Excel Discussion (Misc queries) 3 May 22nd 06 04:09 AM
Hlookup or Vlookup problem? or wich other solution? Complex Proble Micos3 Excel Discussion (Misc queries) 2 March 6th 06 04:35 PM
Problem with application.Hlookup Brotherwarren Excel Discussion (Misc queries) 6 February 23rd 06 08:09 AM


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