Between Two Dates

HollyAnn73

New Member
Joined
Jul 21, 2008
Messages
13
I am trying to send a value from column B to a column based on the date in Column A. Example:

A B C D E F
05/01 05/08 5/15 5/22

05/03/11 $100.00 100.00
05/17/11 200.00 200.00


Basically, I want to ask it to compare the dates in the top row with the dates in column A and place the value of column B in the column that represents the lowest of the date range between the two. So for example, if A is between C1 and D1 then place B in C and so on. I tried with an "If" and a "lookup" with no avail. Any ideas or am I doing something wrong?

Any help is appreciated. Thank you!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
is this what you mean?
Excel Workbook
ABCD
15/1/20115/8/20115/15/20115/22/2011
2
35/3/2011$ 100.00$0.00$ 100.00
45/17/2011$ 200.00$ 200.00$ 200.00
Sheet1
Excel 2003
Cell Formulas
RangeFormula
C3=IF(AND($C$1<=A3,$D$1>=A3),B3,0)
 
Upvote 0

Forum statistics

Threads
1,224,531
Messages
6,179,379
Members
452,907
Latest member
Roland Deschain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top