Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Hlookup, range_lookup parameter

Hi all.

I know the standard definition for the range_lookup parameter of the Hlookup
formula is

"If TRUE or omitted, an approximate match is returned. In other words, if an
exact match is not found, the next largest value that is less than
lookup_value is returned. If FALSE, HLOOKUP will find an exact match. If one
is not found, the error value #N/A is returned."

My problem is with the "TRUE" statement. What I'd like Hlookup to do if TRUE
is to find a value within a given range, be it larger or smaller... say, + or
- 0.5

my table looks like this:

Sugar Cellobiose Glucose Xylose Galactose Arabinose Mannose
12.47 14.91 16.02 16.87 18.11 18.62
2 16742.7 9398.85 7399.1 4170.5 3950.8 3844.7
5 42249.5 22839.1 18381.2 10712 9672.3 10447.5
10 84724.9 44193.1 36103.5 20695.8 19420.9 21502

and my lookup value, for example, would be 12.408. Because this value is
smaller than any in the 2nd row, Hlookup returns #N/A. Also, if my lookup
value was 15.99, Hlookup would return values from the "glucose" column, as
opposed to the "xylose" column... even though 15.99 is closer to 16.02 than
14.91. Does anyone here know if there is any way to customize the way Hlookup
finds values?

Thanks a bunch!!
~Lauren
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Hlookup, range_lookup parameter

Instead of:

=HLOOKUP(lookup_value,etc ...

use:

=HLOOKUP(lookup_value+0.5,etc ...

Hope this helps.

Pete

On Dec 2, 11:28*pm, lmagnuss
wrote:
Hi all.

I know the standard definition for the range_lookup parameter of the Hlookup
formula is

"If TRUE or omitted, an approximate match is returned. In other words, if an
exact match is not found, the next largest value that is less than
lookup_value is returned. If FALSE, HLOOKUP will find an exact match. If one
is not found, the error value #N/A is returned."

My problem is with the "TRUE" statement. What I'd like Hlookup to do if TRUE
is to find a value within a given range, be it larger or smaller... say, + or
- 0.5

my table looks like this:

*Sugar *Cellobiose * * *Glucose Xylose *Galactose * * * Arabinose * * * Mannose
* * * * 12.47 * 14.91 * 16.02 * 16.87 * 18.11 * 18.62
2 * * * 16742.7 9398.85 7399.1 *4170.5 *3950.8 *3844.7
5 * * * 42249.5 22839.1 18381.2 10712 * 9672.3 *10447.5
10 * * *84724.9 44193.1 36103.5 20695.8 19420.9 21502

and my lookup value, for example, would be 12.408. Because this value is
smaller than any in the 2nd row, Hlookup returns #N/A. *Also, if my lookup
value was 15.99, Hlookup would return values from the "glucose" column, as
opposed to the "xylose" column... even though 15.99 is closer to 16.02 than
14.91. Does anyone here know if there is any way to customize the way Hlookup
finds values?

Thanks a bunch!!
~Lauren


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
How to choose if I use a parameter or not in a parameter query Arnaud Excel Discussion (Misc queries) 0 March 8th 07 01:19 PM
VLOOKUP returning value when range_lookup false jodieg Excel Worksheet Functions 6 August 24th 06 01:53 PM
VLOOKUP(lookup_value, ___ ,col_index_num,range_lookup) RICKY Excel Worksheet Functions 3 March 16th 06 10:49 PM
range_lookup in lookup functions mkbatch Excel Worksheet Functions 2 February 27th 06 10:19 PM
Cell contents as the 'lookup value' parameter in HLOOKUP function EMarre Excel Discussion (Misc queries) 3 August 30th 05 03:49 PM


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