Stuck - help with function (amateur level)

Camel123

Board Regular
Joined
Jun 5, 2018
Messages
186
Hi,

Column A: article numbers + products name, for instance "77 Fishing Rod"
Column B: sales per product

Function 1: If text strings in column A contain 77, 88 or 99. Then sum the sales for those article numbers/products only.

Function 2: Sum all sales for products that do not have article number 77, 88 and 99 in column A.

Appreciate all feedback, thanks.
 
So, another question :banghead:, if I want to sum all products NOT equal to article no 77, 88 and 99? I tried =SUM(SUMIFS(B:B,A:A,<>({"77","88","99"}&" *"))) but does not seem to work?
 
Last edited:
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,)
I tried =SUM(SUMIFS(B:B,A:A,<>({"77","88","99"}&" *"))) but does not seem to work?

Hi, no - it won't because when used like that the condtions are OR's rather than AND's.

You could do something like this:

=SUMIFS(B:B,A:A,"<>77 *",A:A,"<>88 *",A:A,"<>99 *")

Or simply sum the whole column and minus the result of the first formula.
 
Upvote 0
I'll stick with the simple solution but still want to learn the more complicated way, thank you a lot for taking time! :)
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,304
Members
452,633
Latest member
DougMo

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