Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
WPA
 
Posts: n/a
Default Finding LARGE value within range of lookup table

I have a table about 3,000 rows and two colums. Column A is a range of dates,
column B is a numeric value. I want to be able to look up multiple date
ranges within this table and be able to find the Starting and Ending values
as well as the LARGE and SMALL values within the specified date range.

Example of Table:
01/01/04 100.357
01/02/04 100.25
01/03/04 100.00
01/04/04 100.68
..
..
..
05/31/05 101.00

The other database that I am using supplies the starting and ending dates so
I am able to pull those values easily, but how do I isolate the data within
random periods within the list assign a LARGE and SMALL value.

Start Date End Date Begin End Large Small
01/31/04 02/15/04 100.23 100.45 ? ?
  #2   Report Post  
Bob Umlas, Excel MVP
 
Posts: n/a
Default

If your start date is in cell D6, for example, then large (in H6) would be:
=MAX(INDIRECT("B"&MATCH(D6,A1:A200,0)&":B"&MATCH(E 6,A1:A200,0)))
and small would be
=MIN(INDIRECT("B"&MATCH(D6,A1:A200,0)&":B"&MATCH(E 6,A1:A200,0)))

"WPA" wrote:

I have a table about 3,000 rows and two colums. Column A is a range of dates,
column B is a numeric value. I want to be able to look up multiple date
ranges within this table and be able to find the Starting and Ending values
as well as the LARGE and SMALL values within the specified date range.

Example of Table:
01/01/04 100.357
01/02/04 100.25
01/03/04 100.00
01/04/04 100.68
.
.
.
05/31/05 101.00

The other database that I am using supplies the starting and ending dates so
I am able to pull those values easily, but how do I isolate the data within
random periods within the list assign a LARGE and SMALL value.

Start Date End Date Begin End Large Small
01/31/04 02/15/04 100.23 100.45 ? ?

  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

With TRUE dates in A1:A3000 and D2:E2 .....

............D..................E...............F.. ...........G............H.............I
1 Start Date End Date Begin End Large Small
2 01/31/04 02/15/04 100.23 100.45 ? ?

Formula in H2 for Large:

=MAX(IF($A$1:$A$3000=D2,IF($A$1:$A$3000<=E2,$B$1: $B$3000)))

Formula in I2 form small:

=MIN(IF($A$1:$A$3000=D2,IF($A$1:$A$3000<=E2,$B$1: $B$3000)))

Both formulas are array formulas and need to be entered with the key combo
of CTRL,SHIFT,ENTER.

Biff

"WPA" wrote in message
...
I have a table about 3,000 rows and two colums. Column A is a range of
dates,
column B is a numeric value. I want to be able to look up multiple date
ranges within this table and be able to find the Starting and Ending
values
as well as the LARGE and SMALL values within the specified date range.

Example of Table:
01/01/04 100.357
01/02/04 100.25
01/03/04 100.00
01/04/04 100.68
.
.
.
05/31/05 101.00

The other database that I am using supplies the starting and ending dates
so
I am able to pull those values easily, but how do I isolate the data
within
random periods within the list assign a LARGE and SMALL value.

Start Date End Date Begin End Large Small
01/31/04 02/15/04 100.23 100.45 ? ?



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 create a lookup table with an added varable? GIZZMO Excel Worksheet Functions 3 April 6th 09 10:32 PM
Lookup Table Dilemma Karen Excel Worksheet Functions 2 June 10th 05 08:22 PM
Pivot Table - max rows allowed in data range dmotika Excel Discussion (Misc queries) 2 May 26th 05 05:52 PM
How do I lookup a table from right to left ? Daz9 Excel Worksheet Functions 1 April 11th 05 11:21 AM
Index table lookup anomaly Carole O Excel Worksheet Functions 9 December 9th 04 04:33 PM


All times are GMT +1. The time now is 12:22 AM.

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"