Sum from same dates

pantakos

Board Regular
Joined
Oct 10, 2012
Messages
161
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hello all,

I have the following excel

date1date2datatotal
1/1/20201/1/2020 Εκκαθάριση Πωλήσεων Καρτών1.026,00
1/1/20201/1/2020 Προμήθεια Εκκαθάρισης Πωλήσεων Καρτών-20,61
1/1/20201/1/2020 Εκκαθάριση Πωλήσεων Καρτών313,00
1/1/20201/1/2020 Προμήθεια Εκκαθάρισης Πωλήσεων Καρτών-6,49
1/1/20201/1/2020 Εκκαθάριση Πωλήσεων Καρτών36,00
1/1/20201/1/2020 Προμήθεια Εκκαθάρισης Πωλήσεων Καρτών-0,72
1/1/20201/1/2020 Εκκαθάριση Πωλήσεων Καρτών12,00
1/1/20201/1/2020 Προμήθεια Εκκαθάρισης Πωλήσεων Καρτών-0,24
1/1/20201/1/2020 Εκκαθάριση Πωλήσεων Μετρητών45,00
1/1/20201/1/2020 Προμήθεια Εκκαθάρισης Πωλήσεων Μετρητών-0,92
2/1/20202/1/2020 Εκκαθάριση Πωλήσεων Καρτών300,00
2/1/20202/1/2020 Προμήθεια Εκκαθάρισης Πωλήσεων Καρτών-6,03
2/1/20202/1/2020 Εκκαθάριση Πωλήσεων Καρτών300,00
2/1/20202/1/2020 Προμήθεια Εκκαθάρισης Πωλήσεων Καρτών-6,04
3/1/20203/1/2020 Εκκαθάριση Πωλήσεων Καρτών619,00
3/1/20203/1/2020 Προμήθεια Εκκαθάρισης Πωλήσεων Καρτών-12,45

I need to sum the by date
The sum will be

DATE / ( [Everything that starts with "Εκκαθαριση Πωλησεων" for the specific date ] - [Everything that starts with "Προμήθεια" ] for the specific date ) = amount

After that i can sum by month or year

Thank you in advance,

Gerasimos
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Book2
ABCDE
1date1date2date1datatotal
21/1/20201/1/20201/1/2020Εκκαθάριση Πωλήσεων Καρτών1026
31/1/20201/1/20201/1/2020Προμήθεια Εκκαθάρισης Πωλήσεων Καρτών-20.6
41/1/20201/1/20201/1/2020Εκκαθάριση Πωλήσεων Καρτών313
51/1/20201/1/20201/1/2020Προμήθεια Εκκαθάρισης Πωλήσεων Καρτών-6.49
61/1/20201/1/20201/1/2020Εκκαθάριση Πωλήσεων Καρτών36
71/1/20201/1/20201/1/2020Προμήθεια Εκκαθάρισης Πωλήσεων Καρτών-0.72
81/1/20201/1/20201/1/2020Εκκαθάριση Πωλήσεων Καρτών12
91/1/20201/1/20201/1/2020Προμήθεια Εκκαθάρισης Πωλήσεων Καρτών-0.24
101/1/20201/1/20201/1/2020Εκκαθάριση Πωλήσεων Μετρητών45
111/1/20201/1/20201/1/2020Προμήθεια Εκκαθάρισης Πωλήσεων Μετρητών-0.92
122/1/20202/1/20201/2/2020Εκκαθάριση Πωλήσεων Καρτών300
132/1/20202/1/20201/2/2020Προμήθεια Εκκαθάρισης Πωλήσεων Καρτών-6.03
142/1/20202/1/20201/2/2020Εκκαθάριση Πωλήσεων Καρτών300
152/1/20202/1/20201/2/2020Προμήθεια Εκκαθάρισης Πωλήσεων Καρτών-6.04
163/1/20203/1/20201/3/2020Εκκαθάριση Πωλήσεων Καρτών619
173/1/20203/1/20201/3/2020Προμήθεια Εκκαθάρισης Πωλήσεων Καρτών-12.5
18
191/1/20201460.98
Sheet1
Cell Formulas
RangeFormula
B19B19=SUMIFS($E$2:$E$17,$D$2:$D$17,"=Εκκαθάριση Πωλήσεων*",$C$2:$C$17,A19)-SUMIFS($E$2:$E$17,$D$2:$D$17,"=Προμήθεια*",$C$2:$C$17,A19)
 
Last edited by a moderator:
Upvote 0
It seems that XL2BB spoils non-Latin alphabets...:(

The formula is
=SUMIFS($E$2:$E$17;$D$2:$D$17;"=Εκκαθάριση Πωλήσεων*";$C$2:$C$17;A19)-SUMIFS($E$2:$E$17;$D$2:$D$17;"=Προμήθεια*";$C$2:$C$17;A19)

Beware my signature about ";" and "," signs.
Note also that accents in Greek do matter for Excel, otherwise identical texts, one with accents and one without are considered different.
Finally, the sum after minus sign is negative itself so with - it gets added.

J.Ty.
 
Upvote 0
It seems that XL2BB spoils non-Latin alphabets...:(

The formula is
=SUMIFS($E$2:$E$17;$D$2:$D$17;"=Εκκαθάριση Πωλήσεων*";$C$2:$C$17;A19)-SUMIFS($E$2:$E$17;$D$2:$D$17;"=Προμήθεια*";$C$2:$C$17;A19)

Beware my signature about ";" and "," signs.
Note also that accents in Greek do matter for Excel, otherwise identical texts, one with accents and one without are considered different.
Finally, the sum after minus sign is negative itself so with - it gets added.

J.Ty.

Thank you very much !!!
 
Upvote 0
Thanks for the feedback and good luck!

J.Ty.
 
Upvote 0

Forum statistics

Threads
1,224,875
Messages
6,181,514
Members
453,050
Latest member
Obil

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