Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
KimberlyC
 
Posts: n/a
Default Looking up data in a table

Hi

I have a table in worksheet 2 of my activeworkbook.

The table has data in cells A2:C500
Table consists of:
Col A lists States (certain states are listed 2, 3 and 4 times), Col B lists
Effective Dates, Col C lists Total

On Worksheet 1, the user enters a state in cell K16, and a date in cell
L16,.... then in cell M16, I need to enter a formula
that looks at the table in worksheet 2 and finds the same state in col A
that was entered in K16 and the date next to the state in Col B may NOT be
greater than the date that was entered in L16 of worksheet 1....when it
finds a match based on that ... it pulls that total into M16.

For ex:
The Table on Worsheet 2 looks like this

State Eff Date Total
AL 1/1/2004 50000
AR 1/1/2004 10000
CA 2/1/2003 700000
CA 1/1/2005 20000
DE 1/1/2005 40000




On Worsheet 1, if ...
K16 = CA and L16 = 6/1/04, Then M16 = 700000 (pulling it from the table)

I'm not sure what formula would work best in M16 to accomplish this...

Any help is greatly appreciated!

Thanks in advance,
Kimberly


  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

http://tinyurl.com/67eco



Regards,


Peo Sjoblom

"KimberlyC" wrote:

Hi

I have a table in worksheet 2 of my activeworkbook.

The table has data in cells A2:C500
Table consists of:
Col A lists States (certain states are listed 2, 3 and 4 times), Col B lists
Effective Dates, Col C lists Total

On Worksheet 1, the user enters a state in cell K16, and a date in cell
L16,.... then in cell M16, I need to enter a formula
that looks at the table in worksheet 2 and finds the same state in col A
that was entered in K16 and the date next to the state in Col B may NOT be
greater than the date that was entered in L16 of worksheet 1....when it
finds a match based on that ... it pulls that total into M16.

For ex:
The Table on Worsheet 2 looks like this

State Eff Date Total
AL 1/1/2004 50000
AR 1/1/2004 10000
CA 2/1/2003 700000
CA 1/1/2005 20000
DE 1/1/2005 40000




On Worsheet 1, if ...
K16 = CA and L16 = 6/1/04, Then M16 = 700000 (pulling it from the table)

I'm not sure what formula would work best in M16 to accomplish this...

Any help is greatly appreciated!

Thanks in advance,
Kimberly



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 can deleted data reappear in a refreshed pivot table in Excel excel_user123456 Excel Discussion (Misc queries) 3 February 23rd 05 08:34 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM
Data Table - does it work with DDE links and Stock Tickers? Post Tenebras Lux Excel Worksheet Functions 0 December 1st 04 05:17 PM
Data Table - Does it work with DDE links and stock tickers? Post Tenebras Lux Excel Discussion (Misc queries) 0 December 1st 04 05:15 PM


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