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

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

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,081
Default Hlookup error

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

"Desperate" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Hlookup error

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?

"Duke Carey" wrote:

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

"Desperate" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Hlookup error

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

"Desperate" wrote:

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?

"Duke Carey" wrote:

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

"Desperate" wrote:

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

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
hlookup mtitanium Excel Worksheet Functions 2 July 28th 08 01:48 PM
HLOOKUP Formula Error albert Excel Worksheet Functions 1 March 10th 08 04:04 PM
V+HLookup? Susan Excel Discussion (Misc queries) 3 June 22nd 07 06:20 PM
Error using dates with HLOOKUP Jeff Lowenstein Excel Worksheet Functions 0 August 9th 05 07:50 PM
Pls Help, Runtime Error using hlookup jorgemerizalde Excel Worksheet Functions 1 August 4th 05 02:43 AM


All times are GMT +1. The time now is 09:11 PM.

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

About Us

"It's about Microsoft Excel"