SUMIF criteria with multiple sum formula

MarcBK

New Member
Joined
Apr 19, 2021
Messages
29
Office Version
  1. 2019
Platform
  1. Windows
Hello all,

I am currently using this formula
Excel Formula:
=SUM(C6:C1003)+SUM(E6:E1003)+SUM(E1)-E3
to sum total of product a, but we have recently updated product a to be product a 2022 and now need to replicate this to separate between product a and product a 2022

I was thinking sumifs style formula but I cannot do multiple sum criteria on this. can someone help please?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
So how do we differentiate between "product a" and "product a 2000"? Are we going by dates, or is 2022 in the description?

Where do we find that information in your sheet and how does it relate to the values currently summed in your formula?
 
Upvote 0
So how do we differentiate between "product a" and "product a 2000"? Are we going by dates, or is 2022 in the description?

Where do we find that information in your sheet and how does it relate to the values currently summed in your formula?
Description in column B
Stock in Product A987Stock in Product A 2022961
Stock out Product A25
Excel Formula:
=SUMIF(B:B,"Product A",D:D)
Stock Out Product A 202250
Excel Formula:
=SUMIF(B:B,"Product A 2022",D:D)

Column A
Column B
Column CColumn DColumn E
DateProduct NameStock in from supplyStock outStock in from secondary
10/10/22Product A 100025
11/11/22Product A 2022100050
15/11/22Product A12
22/11/22Product a 202211

So I calculate Stock out using
Excel Formula:
=SUMIF(B:B,"Product A",D:D)
and Stock in using
Excel Formula:
=SUM(C6:C1003)+SUM(E6:E1003)+SUM(E1)-E3

But for stock in I will now need to split this now into two "in columns for product A and product A 2022
 
Upvote 0
As far as I can see, you just need to use sumif for those in the same way that yo have for the out quantities.
Excel Formula:
=SUMIF(B6:B1003,"Product A",C6:C1003)+SUMIF(B6:B1003,"Product A 2022",E6:E1003)+E1-E3
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,391
Members
449,080
Latest member
Armadillos

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