Dates referencing

rajiv_bishnoi

New Member
Joined
Jan 13, 2008
Messages
22
Office Version
  1. 365
Platform
  1. Windows
I want to find how to reference dates in months. For example, how can I create a formula in Cell E 43 and F 43, which will look up in the tables of debt drawdown "dates" and debt repayments "dates", and check if any of these happened to be in that particular "month", and if yes, the value thereof.

http://www.sendspace.com/file/7r3qkb

If it can be done without VBA, it would be wonderful

Thank you for your help!

regards

Rajiv


Please do not click on "Click here to start download" next to a CD icon... it will download some downloader.exe; just click on the "Click here to start download from sendspace"... ****; this forum doesn't allow any attachment.
 
Last edited:

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
WHat about something like this, I didn't do your download.

Excel Workbook
CDEFGHI
3DatesValueMonthMonthTotal
426/03/201290001/03/201231/03/201218060
527/03/2012870
628/03/2012840
729/03/2012810
830/03/2012780
931/03/2012750
1001/04/2012720
1102/04/2012690
1203/04/2012660
1304/04/2012630
1405/04/2012600
1506/04/2012570
1607/04/2012540
1708/04/2012510
1809/04/2012480
1910/04/2012450
2011/04/2012420
2112/04/2012390
2213/04/2012360
2314/04/2012330
2415/04/2012300
2516/04/2012270
2617/04/2012240
Sheet1
 
Upvote 0
You should be able to use the MONTH function to control an IF statement like so...

=IF(MONTH(date1) = MONTH(date2),truevalue,falsevalue)

just replace date1 and date2 with the cell references for the dates you want to compare.
and truevalue and falsevalue would be either references or manually entered values.

ex: =IF(MONTH(C43) = MONTH(A1), D43, 0)
 
Upvote 0
Am I missing something with Trevor G's table as the intimation of G4 and H4 is for the values between those two dates, which adds up to 4950 (D4:D9) - rather than the whole list which I assume adds up to 18060.

I am trying to use this formula to establish the total value between two dates (say G4 and H4) as in this example, although the dates in 'my' column C are not in chronology order.

Any help would be appreciated :smile:
 
Upvote 0
Actually, the sum of D4:D26 ends up being only 13110, however, 13110 + 4950 = 18060.

The following correction to the formula in I4 should give accurate results.

=SUMPRODUCT(--($C$4:$C$26>=$G$4)-($C$4:$C$26>$H$4),($D$4:$D$26))

The problem with the previous formula was it was still counting any value greater than 3/1 C4>=G4 (which was all) and also counting any value before 3/31 C4<=H4 (which was the first 6)

This new formula counts all values greater than 3/1 (C4>=G4), but then decrements that count if the date is also after 3/31 (C4>H4) notice the single negative instead of the double negative.
 
Upvote 0
Thanks everybody for your help/efforts. I figured it out by using multiple sumif function... SUMIFS... essentially, for the cash flow dates, created columns for month and year, and then used sumifs to match the month and year to the required month bucket
 
Upvote 0
Thanks everybody for your help/efforts. I figured it out by using multiple sumif function... SUMIFS... essentially, for the cash flow dates, created columns for month and year, and then used sumifs to match the month and year to the required month bucket

Excellent. That is definitely an easier way to do it, but since you didn't specify that you had Excel 2007+, the broader solution was given.
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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