Finding the sum value between two date

rameshppc

Board Regular
Joined
Jun 10, 2017
Messages
114
Office Version
  1. 2013
Platform
  1. Windows
HI GOOD EVENING...

I HAVE EXPENSES CHART WITH DATE WISE DATA. I NEED TO PUT THE SUM VALUE OF EXPENSES FROM ONE DATE TO ANOTHER AND ALSO THE FROM AND TO DATE WILL BE VARY FOR THE ADJUSTMENT CELLS.

CHART - 1

[TABLE="width: 500"]
<tbody>[TR]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]DATE
[/TD]
[TD]EXPENSE NAME
[/TD]
[TD]AMOUNT
[/TD]
[/TR]
[TR]
[TD]05/09/2018
[/TD]
[TD]STATIONARY
[/TD]
[TD]1500
[/TD]
[/TR]
[TR]
[TD]05/09/2018[/TD]
[TD]FANCY
[/TD]
[TD]200
[/TD]
[/TR]
[TR]
[TD]06/09/2018
[/TD]
[TD]FOOD
[/TD]
[TD]450
[/TD]
[/TR]
[TR]
[TD]07/09/2018
[/TD]
[TD]GAMES
[/TD]
[TD]100
[/TD]
[/TR]
</tbody>[/TABLE]

CHART - 2
A B C
[TABLE="width: 500"]
<tbody>[TR]
[TD]CELL
[/TD]
[TD]DATE
[/TD]
[TD]AMOUNT
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]05/09/2018
[/TD]
[TD]10,000
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]07/09/2018
[/TD]
[TD]550
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]15/10/2018
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


PLS SEE THE CHART - 2, I WILL FILL THE DATE COLUMN MANUALLY, THE AMOUNT COLUMN NEED TO GENERATE AS BELOW

"C2" = EXPENSES CALCULATE FROM 06/09/2018 TO 07/09/2018
"C3" = EXPENSES CALCULATE FROM 08/09/2018 TO 15/10/2018

KINDLY ADVISE...
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
See if this, copied down is what you want.

Excel Workbook
ABC
1DATEEXPENSE NAMEAMOUNT
25/09/2018STATIONARY1500
35/09/2018FANCY200
46/09/2018FOOD450
57/09/2018GAMES100
67/09/2018100
77/09/2018300
810/09/2018250
911/09/2018400
1020/10/2018100
11
12DATEAMOUNT
135/09/2018950
147/09/2018650
1515/10/2018
16
Sumifs




BTW, the forum prefers that you do not use all upper case letters when making posts. refer to #14 of the Forum Rules
 
Upvote 0
Thanks a lot for your perfect formula..

Its working awesome..

I want to learn from your below formula...
=IF(A14="","",SUMIFS(C$2:C$10,A$2:A$10,">"&A13,A$2:A$10,"<="&A14))

can you pls explain that, How do the "" works in this formula?
 
Upvote 0
Thanks a lot for your perfect formula..
You're welcome. :)


I want to learn from your below formula...
=IF(A14="","",SUMIFS(C$2:C$10,A$2:A$10,">"&A13,A$2:A$10,"<="&A14))

can you pls explain that, How do the "" works in this formula?
I'm not certain which inverted commas you are asking about - the ones near the start of the formula of the ones in the green section?

For some general information about SUMIFS & its syntax, here are a couple of references.
https://support.office.com/en-us/article/sumifs-function-c9e748f5-7ea7-455d-9406-611cebce642b
https://exceljet.net/excel-functions/excel-sumifs-function
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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