Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel: HLOOKUP Text "approximate" match over 2 sheets problem? | Excel Discussion (Misc queries) | |||
HLookup problem with dates | Excel Discussion (Misc queries) | |||
Problem with HLookup - Sometimes works, sometimes blank. | Excel Discussion (Misc queries) | |||
Hlookup or Vlookup problem? or wich other solution? Complex Proble | Excel Discussion (Misc queries) | |||
Problem with application.Hlookup | Excel Discussion (Misc queries) |