DUMB Question: SUMIFS with only one date... but multiple entries in about 10000 rows...

WERNER SLABBERT

Board Regular
Joined
Mar 3, 2009
Messages
104
RefCompanyDateCompanyINV NumberSub TotalExpensesDifferenceGrand TotalPaidCredit StatusDate SumOutstanding AmountSum by Date
1Test2018/10/03Test 2018/10/03_Test0001Test0001R3 888,00R2 110,00-R 4 002,00R 5 998,00YesOPEN-R 4 002,000,004337743376
2test2018/10/03test 2018/10/03_yrgcbgvbcvbyrgcbgvbcvbR64 320 750,00R32 456,00R 59 763 506,00R 64 353 206,00NoR 59 763 506,000,0043376
3asdfghjkl2018/10/04asdfghjkl 2018/10/04_asdfgh45678asdfgh45678R129 925 025,00R234 567 890,00R 361 036 126,00R 364 492 915,00NoR 361 036 126,000,0043377

<tbody>
</tbody>

How do i get the "Sum by Date" (Column "O" or SBD ) to sum all the rows in "Grand Total" (Column "J" or GrndTot ) that has the same date in "Date" (Column "D" or DT ) and only show result in the last row that has the specific date , this has to apply to 10 000 rows and dates an rows might change.

I have tried my hand at the SUMIFS [ =SUMIF(DT;$P$8;GrndTot) ]

any help would be appreciated alot. i've been stuck here for about 2 weeks now.

PS: The last two columns are just the date selector ( date in excel years) and the date from DT (in excel years)
 
Last edited:

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Try something like this

=IF(COUNTIF($D$2:D2,D2)=COUNTIF(D:D,D2),SUMIF(D:D,D2,J:J),"")

Count the number of cells with the same date up to this row (date is in column D)
If that is the same as the total count of cells with the same date put the total in this row (otherwise leave it blank)
The total is the sum of all values carrying that same date (values to sum are in column J)
 
Last edited:
Upvote 0
Hi Yongle
Thanx for the reply, i have tried it, but to no avail. still just returns '0,00'

i just changed your formula to my range names
=IF(COUNTIF(DT;$F$5)=COUNTIF(DT;$F$5);SUMIF(DT;$F$5;GrndTot);"")

Regards
 
Upvote 0
For you to look at...

1. Why did you use the same range for both COUNTIF formula?
- think about the logic of your test
- it can never return FALSE becase the value returned by both COUNTIF is identical

your formula
=IF(COUNTIF(DT;$F$5)=COUNTIF(DT;$F$5)....
my formula
=IF(COUNTIF($D$2:D2,D2)=COUNTIF(D:D,D2)....

How do i get the "Sum by Date" (Column "O" or SBD ) to sum all the rows in "Grand Total" (Column "J" or GrndTot ) that has the same date in "Date" (Column "D" or DT )
2. Is there something missing or incorrect in what you requested?
- my formula refers to columns D & J
- your formula also includes a reference to column F

3. Did you test my formula unmodified (except regional settings ";" instead of "," ) ?
- it works for me based on the information you provided
- even if your data starts in a dfferent row I think it will work

I will be offline for 48 hours minimum
 
Last edited:
Upvote 0
Do you desire to get something like this?

RefDateValuesSum by Date
103-10-201823
203-10-20181639
304-10-201821
404-10-201820
504-10-20181657
605-10-201842
705-10-201820
805-10-20180
905-10-201840102
1006-10-20187
1106-10-201826
1206-10-201833
1306-10-201849
1406-10-201812
1506-10-201846
1606-10-201830
1706-10-201829
1806-10-201824256
1907-10-20189
2007-10-201848
2107-10-201824
2207-10-2018081

<tbody>
</tbody>


You may use the formulae =SUMIF(Date,C7,Grand_Total)
and if your dates are in ascending or descending order, you may use conditional formatting to view only the last row of each date.
 
Upvote 0
F5 in mine is just a cell that contains the selected date to process. by means of a drop down calendar. ( mainly to be able to select a specific date to sum.)

how can i send you a sample book?
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,334
Members
449,077
Latest member
Jocksteriom

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