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 :oops:, 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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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,216,360
Messages
6,130,175
Members
449,562
Latest member
mthrasher16

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