How to use SUMIFS in place of SUMPRODUCT?(2 Scenarios)

xlmaniac

Well-known Member
Joined
Jul 2, 2009
Messages
531
Office Version
  1. 2010
Platform
  1. Windows
Dear All,
I would like to use SUMIFS for below mentioned 2 scenarios in place ofd SUMPRODUCT,but I am unable to figure out how to do that.
Could somebody help me in writing the following formulae with SUMIFS.
SCENARIO-1:-
Tha following is the snbap shot of my data set.
I would like to use SUMIFS and get the desired result.I have used a formaula in cell F4 with SUMIFS but it is not yielding the correct result.
Excel Workbook
ABCDEF
1SeasonLocationStyleCategoryDesired Result
2AW08FreshDBSU8
3AW08DamageDBSUBELT1
4SS09FreshBUPF70
5SS09DamageBUPF0
6AW09FreshOPDB4
7AW09DamageOPDB2
8Total22
9
10Article DescriptionQtyLocation
11AW09ETHACACBELT-OPDB-001FSS2Fresh
12AW09ETHACACBELT-OPDB-001FSM1Fresh
13AW09ETHACACBELT-OPDB-001FSL1Damage
14AW09ETHACACBELT-OPDB-001FSXL1Fresh
15AW09ETHACACBELT-OPDB-002FSS1Damage
16Aw08ETHACACDENIM-DBSU-003FSM5Fresh
17AW08ETHACACBELT-OPDB-002FSL3Fresh
18Aw08ETHACACBELT-DBSU-003FSS1Damage
19Aw08ETHACACDENIM-DBSU-003FSM3Fresh
20AW09ETHACACBELT-DBSU-003FSL5Fresh
21SS09ETHACACBELT-DTPF-004TSS1Fresh
22AW09ETHACACBELT-DTPF-004TSM3Damage
23SS09ETHACACBELT-DTPF-004TSL2Fresh
24SS09ETHACACBELT-BUPF-001SSS1Fresh
25SS09ETHACACBELT-BUPF-001SSM6Fresh
5



SCENARIO-2:-

I would like to write a formula in E8 using SUMIFS in place of SUMPRODUCT to derive the same result as shown in the data-set.
Is it possible?
Excel Workbook
CDEFGHJ
7PeriodAmount
80-15 Days746220
916-20 Days0
1021-30 Days0
11>30 Days0
12Average Leadtime(In Working Days) For Bill Processing17
13
14Bill DateBill Receiving DateAmountDeductionsApproved AmountBill Submission DatePayment Received On
152/28/20113/3/201168717306871733/3/201122-Mar
162/28/20113/3/2011627880627883/3/201122-Mar
172/28/20113/3/2011296820296823/3/201122-Mar
183/31/20114/4/201168717306871734/4/201125-Apr
193/31/20114/4/2011809270809274/4/201125-Apr
204/30/20115/9/201168717406871745/9/20116-Jun
214/30/20115/9/2011766140766145/9/20116-Jun
225/31/20116/2/201168717406871746/2/201128-Jun
235/31/20116/2/2011427470427476/2/201128-Jun
246/30/20117/1/201168717371616800127/1/201122-Jul
256/30/20117/1/2011218170218177/1/201122-Jul
267/30/20118/4/201168717318386853358/4/2011
277/31/20118/4/2011608850608858/4/2011
Total Bill


 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Scenario 1

=SUMPRODUCT(--(ISNUMBER(SEARCH(A2,A$11:A$25)+SEARCH(C2,A$11:A$25)+SEARCH(D2,$A$11:$A$25))),--(C$11:C$25=B2),B$11:B$25)

cannot be rewritten in terms of SUMIFS because of the OR search pattern involved.

Scenario 2

Enter the following in C8:C11...

<TABLE style="WIDTH: 52pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=69><COLGROUP><COL style="WIDTH: 52pt; mso-width-source: userset; mso-width-alt: 2446" width=69><TBODY><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: white; WIDTH: 52pt; HEIGHT: 15pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" id=td_post_2824577 class=xl65 height=20 width=69 align=right>0</TD></TR><TR style="HEIGHT: 14.4pt" height=19><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: white; WIDTH: 52pt; HEIGHT: 14.4pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl65 height=19 width=69 align=right>16</TD></TR><TR style="HEIGHT: 14.4pt" height=19><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: white; WIDTH: 52pt; HEIGHT: 14.4pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl65 height=19 width=69 align=right>21</TD></TR><TR style="HEIGHT: 14.4pt" height=19><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: white; WIDTH: 52pt; HEIGHT: 14.4pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl65 height=19 width=69 align=right>30</TD></TR><TR style="HEIGHT: 14.4pt" height=19><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 14.4pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl66 height=19 align=right>1.00E+308</TD></TR></TBODY></TABLE>

The latter is how Excel display 9.99999999999999E+307 which you need to enter in C11.

In K15 enter and copy down:

=TODAY()-H15

Now we can have in E8...

=SUMIFS($G$15:$G$27,$K$15:$K$27,">="&C8,$K$15:$K$27,"<"&C9,$J$15:$J$27,"=")

and copy this down to E10.
 
Upvote 0
Dear Sir,
Thank you once again for an absolutely amazing solution.
I have learnt a lot from your solutions and for that I am really indebted to you.
Pls accept my sincere gratitude for all your help.
Regards
 
Upvote 0
Dear Sir,
Thank you once again for an absolutely amazing solution.
I have learnt a lot from your solutions and for that I am really indebted to you.
Pls accept my sincere gratitude for all your help.
Regards

You are welcome. Thanks for the kind feedback.
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,172
Members
452,893
Latest member
denay

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