Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
bj
 
Posts: n/a
Default Lookup Value is Between Range 1 and Range 2

One way to do it would be to use sumproduct
=sumproduct(--(A1:A100<=datevalue(D1)),--(B1:B100=Datevalue(D1)),C1:C100)

"Corissa" wrote:

I have the following data:
Col A = Start Date
Col B = End Date
Col C = Week Number

Is there a way to do a lookup function to display the Week Number if a user
enters a date that is between Col A and Col B?

  #2   Report Post  
Corissa
 
Posts: n/a
Default

I'm looking for a "lookup" function that will display the contents of col C
if the date entered is between the start date and the end date. I'm not
following how the sumproduct will get me to the correct results. Thanks for
your help!

"bj" wrote:

One way to do it would be to use sumproduct
=sumproduct(--(A1:A100<=datevalue(D1)),--(B1:B100=Datevalue(D1)),C1:C100)

"Corissa" wrote:

I have the following data:
Col A = Start Date
Col B = End Date
Col C = Week Number

Is there a way to do a lookup function to display the Week Number if a user
enters a date that is between Col A and Col B?

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
Range Lookup Jake Excel Discussion (Misc queries) 2 April 28th 05 11:02 PM
Lookup from a range on separate sheets Paul Reeve Excel Discussion (Misc queries) 1 April 27th 05 11:20 AM
Range Lookup? Is there such a thing like this? Michael Saffer Excel Worksheet Functions 2 April 8th 05 05:45 PM
Lookup the latest date in a range so it appears as my result FBB Excel Discussion (Misc queries) 1 December 4th 04 03:50 AM
Lookup with search range start based on position of last blank lin rcmodelr Excel Worksheet Functions 0 November 14th 04 06:32 AM


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