Sumifs?? Left?? Dish sales

IvanYerk

Board Regular
Joined
Aug 26, 2018
Messages
61
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I'd like to sum all of the dish sales based on the Location number and Product IDs. Can I do this without creating a helper column?

[TABLE="width: 495"]
<colgroup><col><col><col span="2"><col></colgroup><tbody>[TR]
[TD] [/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Location[/TD]
[TD]Product ID[/TD]
[TD]Product Desc[/TD]
[TD]Sales[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]555652 Houston[/TD]
[TD]10047108[/TD]
[TD]Dish 12"[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]555652 Houston[/TD]
[TD]10047109[/TD]
[TD]Dish 16"[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]555652 Houston[/TD]
[TD]10047110[/TD]
[TD]Dish 18"[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]555652 Houston[/TD]
[TD]10047128[/TD]
[TD]Bowl 6"[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]555652 Houston[/TD]
[TD]10047129[/TD]
[TD]Bowl 8"[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]555652 Houston[/TD]
[TD]10047130[/TD]
[TD]Bowl 10"[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]555884 phoenix[/TD]
[TD]10047108[/TD]
[TD]Dish 12"[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]555884 phoenix[/TD]
[TD]10047109[/TD]
[TD]Dish 16"[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]555884 phoenix[/TD]
[TD]10047110[/TD]
[TD]Dish 18"[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]555884 phoenix[/TD]
[TD]10047128[/TD]
[TD]Bowl 6"[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]555884 phoenix[/TD]
[TD]10047129[/TD]
[TD]Bowl 8"[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]555884 phoenix[/TD]
[TD]10047130[/TD]
[TD]Bowl 10"[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]555102 chicago[/TD]
[TD]10047109[/TD]
[TD]Dish 16"[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]555102 chicago[/TD]
[TD]10047110[/TD]
[TD]Dish 18"[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]555102 chicago[/TD]
[TD]10047129[/TD]
[TD]Bowl 8"[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]555102 chicago[/TD]
[TD]10047130[/TD]
[TD]Bowl 10"[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
 
@FormR
Keep forgetting that SUMIFS takes wildcards :( makes it so much simpler.
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
How would you modify the formula if I wanted to use the 3 product ids for dishes (10047108,10047109, and 10047110) instead of the alpha description field?
 
Upvote 0
How would you modify the formula if I wanted to use the 3 product ids for dishes (10047108,10047109, and 10047110) instead of the alpha description field?

Hi, here is one option..


Excel 2013/2016
ABCDEFG
1LocationProduct IDProduct DescSales
2555652 Houston10047108Dish 12"455565226
3555652 Houston10047109Dish 16"1155588458
4555652 Houston10047110Dish 18"1155510212
5555652 Houston10047128Bowl 6"3
6555652 Houston10047129Bowl 8"12
7555652 Houston10047130Bowl 10"12
8555884 phoenix10047108Dish 12"8
9555884 phoenix10047109Dish 16"25
10555884 phoenix10047110Dish 18"25
11555884 phoenix10047128Bowl 6"8
12555884 phoenix10047129Bowl 8"25
13555884 phoenix10047130Bowl 10"25
14555102 chicago10047109Dish 16"6
15555102 chicago10047110Dish 18"6
16555102 chicago10047129Bowl 8"6
17555102 chicago10047130Bowl 10"6
Sheet1
Cell Formulas
RangeFormula
G2=SUM(SUMIFS(D:D,A:A,F2&"*",B:B,{10047108,10047109,10047110}))
 
Upvote 0
Awesome! Thanks again for the help!! This site is magical - I know - a little hyperbolic, but the willingness of people to help is absolutely fantastic.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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