Hlookup error

D

Desperate

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?
Note: In one case the cell value is actually 0 and in another case the cell
value is blank
 
D

Duke Carey

Is this different than your earlier problem? Have you tried to solve it by
using ALL dates? That road goes nowhere.

Take a look at my second response to your earlier question
 
D

Desperate

Yes, this is different than my last problem. I am trying your second solution
to the first problem and it is returning some oddball stuff right now. To be
honest, I don't get it. I can put the dates into either ascending or
descending, but I guess I want to use descending if I need to get a value
equal to or larger, right? Then what I want the sheet to return is the date,
so the index is in the same column, right?
 
D

Desperate

It works but isn't there a way to add the dates to the bottom of the list
rather than the top
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

hlookup problem 1
hlookup problem 3
Lookup formula 2
COMPLICATED FORMULA WITH EMBEDDED HLOOKUP 1
Lookup formula 1
HLOOKUP - Relative cell reference in row index number 0
Chart 2
Formula help 1

Top