Sumifs with multiple criteria does not contain

spycein

Board Regular
Joined
Mar 8, 2014
Messages
135
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,
I have a following data set

DateDealer TypeState Name Sale Value
01-05-2017RegisteredTamil Nadu 3,483.00
01-05-2017Un-RegisteredUttar Pradesh 2,591.00
01-05-2017Un-RegisteredMaharastra 3,530.00
01-05-2017Un-RegisteredJAMMU AND KASHMIR 1,982.00
02-05-2017Un-RegisteredHIMACHAL PRADESH 4,599.00
03-05-2017Un-RegisteredPUNJAB 4,380.00
05-05-2017Un-RegisteredCHANDIGARH 1,238.00
02-05-2017RegisteredUTTARAKHAND 949.00
03-05-2017RegisteredHARYANA 2,774.00
05-05-2017RegisteredDELHI 4,975.00
02-05-2017RegisteredRAJASTHAN 4,766.00
03-05-2017Un-RegisteredUTTAR PRADESH 4,651.00
05-05-2017RegisteredBIHAR 1,218.00
02-05-2017RegisteredSIKKIM 4,689.00
03-05-2017Un-RegisteredARUNACHAL PRADESH 1,168.00
05-05-2017RegisteredNAGALAND 3,328.00
02-05-2017RegisteredMANIPUR 821.00
03-05-2017Un-RegisteredMIZORAM 1,698.00
52,840.00

<tbody>
</tbody>

I am looking for a formula which would return the value as per the following table criteria.

DateTotal SaleUttar PradeshTamil NaduRest of India
01-05-2017 11,586.00
02-05-2017 15,824.00
03-05-2017 14,671.00
05-05-2017 10,759.00
52,840.00 -

<tbody>
</tbody>















Thank you so much in advance.

Regards

Shib
 
Last edited:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Excel 2016 (Windows) 32 bit
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]A[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]B[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]C[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]D[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]E[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]1[/COLOR]​
DateDealer TypeState NameSale Value
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]2[/COLOR]​
1/5/2017​
RegisteredTamil Nadu
3,483.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]3[/COLOR]​
1/5/2017​
Un-RegisteredUttar Pradesh
2,591.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]4[/COLOR]​
1/5/2017​
Un-RegisteredMaharastra
3,530.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]5[/COLOR]​
1/5/2017​
Un-RegisteredJAMMU AND KASHMIR
1,982.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]6[/COLOR]​
2/5/2017​
Un-RegisteredHIMACHAL PRADESH
4,599.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]7[/COLOR]​
3/5/2017​
Un-RegisteredPUNJAB
4,380.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]8[/COLOR]​
5/5/2017​
Un-RegisteredCHANDIGARH
1,238.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]9[/COLOR]​
2/5/2017​
RegisteredUTTARAKHAND
949​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]10[/COLOR]​
3/5/2017​
RegisteredHARYANA
2,774.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]11[/COLOR]​
5/5/2017​
RegisteredDELHI
4,975.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]12[/COLOR]​
2/5/2017​
RegisteredRAJASTHAN
4,766.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]13[/COLOR]​
3/5/2017​
Un-RegisteredUTTAR PRADESH
4,651.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]14[/COLOR]​
5/5/2017​
RegisteredBIHAR
1,218.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]15[/COLOR]​
2/5/2017​
RegisteredSIKKIM
4,689.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]16[/COLOR]​
3/5/2017​
Un-RegisteredARUNACHAL PRADESH
1,168.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]17[/COLOR]​
5/5/2017​
RegisteredNAGALAND
3,328.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]18[/COLOR]​
2/5/2017​
RegisteredMANIPUR
821​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]19[/COLOR]​
3/5/2017​
Un-RegisteredMIZORAM
1,698.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]20[/COLOR]​
52,840.00​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]21[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]22[/COLOR]​
I am looking for a formula which would return the value as per the following table criteria.
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]23[/COLOR]​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]24[/COLOR]​
DateTotal SaleUttar PradeshTamil NaduRest of India
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]25[/COLOR]​
1/5/2017​
11,586.00​
2591​
3483​
5512​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]26[/COLOR]​
2/5/2017​
15,824.00​
0​
0​
15824​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]27[/COLOR]​
3/5/2017​
14,671.00​
4651​
0​
10020​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]28[/COLOR]​
5/5/2017​
10,759.00​
0​
0​
10759​
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]29[/COLOR]​
52,840.00​

<tbody>
</tbody>
Sheet: Sheet1

<tbody>
</tbody>

c25=SUMIFS($D$2:$D$19,$A$2:$A$19,$A25,$C$2:$C$19,C$24) copy across and down

e25=SUMIFS($D$2:$D$19,$A$2:$A$19,$A25,$C$2:$C$19,"<>"&$C$24,$C$2:$C$19,"<>"&$D$24) copy down
 
Upvote 0
Thank you so much... works like a charm...
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,411
Messages
6,124,759
Members
449,187
Latest member
hermansoa

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