Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BillReese
 
Posts: n/a
Default AGAIN... I need another Lookup Function to extract some data

Thanks to Biff, I found 1/2 of what I need. I thought I could figure out how to plug in the Offset formula to his solution to give me what I want so far, but no luck. So I need another formula to do the following:

I have is a list like this:
A B
1 1.10

2 1.20

3 1.31

4 1.40

5 1.49

6 1.57

7 1.65

8 1.70

9 1.74

10 1.75

11 1.73

12 1.66

13 1.58

14 1.49

15 1.41

I want "2" VALUES

Value #1 ( Using the value in Column B located above "peak" value 1.74 )
I want value in Column A adjacent to the highest value < 1.6 (which is 1.57)
I want this returned ( #6 ) which is adjacent to 1.57

Value #2 ( Using the value in Column B located below "peak" value 1.74 )
I want value in Column A adjacent to the highest value < 1.6 (which is 1.58)
I want this returned ( #13 ) which is adjacent to 1.58

================================================== ============
These are the formulas Biff gave me to extract values:
For V1:
Entered as an array using the key combination of CTRL,SHIFT,ENTER:

=MAX(IF(B1:INDEX(B1:B15,MATCH(MAX(B1:B15),B1:B15,0 ))<C1,B1:INDEX(B1:B15,MATCH(MAX(B1:B15),B1:B15,0)) ))

For V2: (array entered)
=MAX(IF(INDEX(B1:B15,MATCH(MAX(B1:B15),B1:B15,0)): B15<C1,INDEX(B1:B15,MATCH(MAX(B1:B15),B1:B15,0)):B 15))

PS. I don't want the hash mark in the format.. I just want the numbers 6 and 13.
Thanks,
BillReese
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default AGAIN... I need another Lookup Function to extract some data

Assume:

F1 = V1 = 1.57
F2 = V2 = 1.58

For V1 (array entered):

=INDEX(A1:A15,MATCH(F1,B1:INDEX(B1:B15,MATCH(MAX(B 1:B15),B1:B15,0)),0))

For V2 (array entered):

=INDEX(A15:INDEX(A1:A15,MATCH(MAX(B1:B15),B1:B15,0 )),MATCH(F2,INDEX(B1:B15,MATCH(MAX(B1:B15),B1:B15, 0)):B15,0))

Biff
"BillReese" wrote in message news:2N06g.14257$O_6.12998@trnddc08...
Thanks to Biff, I found 1/2 of what I need. I thought I could figure out how to plug in the Offset formula to his solution to give me what I want so far, but no luck. So I need another formula to do the following:

I have is a list like this:
A B
1 1.10

2 1.20

3 1.31

4 1.40

5 1.49

6 1.57

7 1.65

8 1.70

9 1.74

10 1.75

11 1.73

12 1.66

13 1.58

14 1.49

15 1.41

I want "2" VALUES

Value #1 ( Using the value in Column B located above "peak" value 1.74 )
I want value in Column A adjacent to the highest value < 1.6 (which is 1.57)
I want this returned ( #6 ) which is adjacent to 1.57

Value #2 ( Using the value in Column B located below "peak" value 1.74 )
I want value in Column A adjacent to the highest value < 1.6 (which is 1.58)
I want this returned ( #13 ) which is adjacent to 1.58

================================================== ============
These are the formulas Biff gave me to extract values:
For V1:
Entered as an array using the key combination of CTRL,SHIFT,ENTER:

=MAX(IF(B1:INDEX(B1:B15,MATCH(MAX(B1:B15),B1:B15,0 ))<C1,B1:INDEX(B1:B15,MATCH(MAX(B1:B15),B1:B15,0)) ))

For V2: (array entered)
=MAX(IF(INDEX(B1:B15,MATCH(MAX(B1:B15),B1:B15,0)): B15<C1,INDEX(B1:B15,MATCH(MAX(B1:B15),B1:B15,0)):B 15))

PS. I don't want the hash mark in the format.. I just want the numbers 6 and 13.
Thanks,
BillReese
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BillReese
 
Posts: n/a
Default AGAIN... I need another Lookup Function to extract some data

Hi Biff,

I just wanted to thank you, the answer you gave me was just what I needed to get a much more complicated code to work. You gave me all the clues I needed.

thanks very much, I don't believe I was capable without this help !!!

regards,

BR


"Biff" wrote in message ...
Assume:

F1 = V1 = 1.57
F2 = V2 = 1.58

For V1 (array entered):

=INDEX(A1:A15,MATCH(F1,B1:INDEX(B1:B15,MATCH(MAX(B 1:B15),B1:B15,0)),0))

For V2 (array entered):

=INDEX(A15:INDEX(A1:A15,MATCH(MAX(B1:B15),B1:B15,0 )),MATCH(F2,INDEX(B1:B15,MATCH(MAX(B1:B15),B1:B15, 0)):B15,0))

Biff
"BillReese" wrote in message news:2N06g.14257$O_6.12998@trnddc08...
Thanks to Biff, I found 1/2 of what I need. I thought I could figure out how to plug in the Offset formula to his solution to give me what I want so far, but no luck. So I need another formula to do the following:

I have is a list like this:
A B
1 1.10

2 1.20

3 1.31

4 1.40

5 1.49

6 1.57

7 1.65

8 1.70

9 1.74

10 1.75

11 1.73

12 1.66

13 1.58

14 1.49

15 1.41

I want "2" VALUES

Value #1 ( Using the value in Column B located above "peak" value 1.74 )
I want value in Column A adjacent to the highest value < 1.6 (which is 1.57)
I want this returned ( #6 ) which is adjacent to 1.57

Value #2 ( Using the value in Column B located below "peak" value 1.74 )
I want value in Column A adjacent to the highest value < 1.6 (which is 1.58)
I want this returned ( #13 ) which is adjacent to 1.58

================================================== ============
These are the formulas Biff gave me to extract values:
For V1:
Entered as an array using the key combination of CTRL,SHIFT,ENTER:

=MAX(IF(B1:INDEX(B1:B15,MATCH(MAX(B1:B15),B1:B15,0 ))<C1,B1:INDEX(B1:B15,MATCH(MAX(B1:B15),B1:B15,0)) ))

For V2: (array entered)
=MAX(IF(INDEX(B1:B15,MATCH(MAX(B1:B15),B1:B15,0)): B15<C1,INDEX(B1:B15,MATCH(MAX(B1:B15),B1:B15,0)):B 15))

PS. I don't want the hash mark in the format.. I just want the numbers 6 and 13.
Thanks,
BillReese
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
Don't understand Lookup function Beblessed New Users to Excel 1 March 1st 06 08:57 AM
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
Printing data validation scenarios SJC Excel Worksheet Functions 14 July 24th 05 12:43 AM
Lookup thinks data isn't sorted Deb G Excel Worksheet Functions 5 May 26th 05 07:39 AM
VLOOKUP Function using Data Ranges. Cal Excel Worksheet Functions 6 April 16th 05 03:26 PM


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