Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
chaz
 
Posts: n/a
Default Index Using Threshold Value


This problem involves time-ordered stock market data.
I need to look up the first value in a column that crosses a threshold
value and return the corresponding value from the same row in a
different column.

Example:
Column A has the date
Column B has daily % gain values
Column C has corresponding total dollar values

A B C
0.3%
5/6 1.2% $20,000
5/7 0.5% $20,100
5/8 1.0% $20,301

I want to use the value in A1 (0.3%) and find the first value in column
B that exceeds it (B2 , 1.2%) and return the corresponding value from
column C (C3, $20,000).

From reading this forum it appears to me that the INDEX function
coupled with perhaps the MATCH function should be able to do this. I
just can't seem to get there.

Please advise.
Regards,
Chaz



--
chaz
------------------------------------------------------------------------
chaz's Profile:
http://www.excelforum.com/member.php...o&userid=34616
View this thread: http://www.excelforum.com/showthread...hreadid=543915

  #2   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Index Using Threshold Value

Hi!

Try this:

Enter this formula as an array using the key combo of CTRL,SHIFT,ENTER:

=INDEX(C2:C4,MATCH(TRUE,B2:B4A1,0))

Biff

"chaz" wrote in message
...

This problem involves time-ordered stock market data.
I need to look up the first value in a column that crosses a threshold
value and return the corresponding value from the same row in a
different column.

Example:
Column A has the date
Column B has daily % gain values
Column C has corresponding total dollar values

A B C
0.3%
5/6 1.2% $20,000
5/7 0.5% $20,100
5/8 1.0% $20,301

I want to use the value in A1 (0.3%) and find the first value in column
B that exceeds it (B2 , 1.2%) and return the corresponding value from
column C (C3, $20,000).

From reading this forum it appears to me that the INDEX function
coupled with perhaps the MATCH function should be able to do this. I
just can't seem to get there.

Please advise.
Regards,
Chaz



--
chaz
------------------------------------------------------------------------
chaz's Profile:
http://www.excelforum.com/member.php...o&userid=34616
View this thread: http://www.excelforum.com/showthread...hreadid=543915



  #3   Report Post  
Posted to microsoft.public.excel.misc
chaz
 
Posts: n/a
Default Index Using Threshold Value


Biff,
That works! I can now select data based on threshold values.
Regards,
Chaz


--
chaz
------------------------------------------------------------------------
chaz's Profile: http://www.excelforum.com/member.php...o&userid=34616
View this thread: http://www.excelforum.com/showthread...hreadid=543915

  #4   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Index Using Threshold Value

You're welcome. Thanks for the feedback!

Biff

"chaz" wrote in message
...

Biff,
That works! I can now select data based on threshold values.
Regards,
Chaz


--
chaz
------------------------------------------------------------------------
chaz's Profile:
http://www.excelforum.com/member.php...o&userid=34616
View this thread: http://www.excelforum.com/showthread...hreadid=543915



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 automatically number an index column Phil Excel Worksheet Functions 13 October 25th 05 01:36 PM
Formatting result of Index function ExcelFred Excel Worksheet Functions 5 July 26th 05 01:34 PM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Min formula not returning value from Index ExcelMonkey Excel Worksheet Functions 3 January 29th 05 01:47 AM
index to a range of cells Frank Kabel Excel Worksheet Functions 0 October 27th 04 05:39 PM


All times are GMT +1. The time now is 03:39 AM.

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"