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.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hey cameltoe (lol),

Questions:

1) do all of the products start with two digits? Or could there be less or more?
2) Are the digits within the product name always at the beginning of the name?
 
Upvote 0
Or if the digits could appear anywhere, then maybe

=SUMPRODUCT((ISNUMBER(FIND({77,88,99},A1:A15)))*B1:B15)
 
Upvote 0
"none worked properly" doesn't really help! In what way did they not work? What result did they give? What result did you expect?

Post a small sample of data with expected results.
 
Last edited:
Upvote 0
I only had error. I tried the following function:

{=IF(ISNUMBER(FIND({77;88;99};A11:B27));SUM(B11:C27);"")}

The issue is it sums all the amounts in column B rather than only the cells where the criterias are met. I tried to use sumif within the if function but did not work out very well.
 
Upvote 0
Hi, here's another option that you can try:


Excel 2013/2016
ABCDE
177 Fishing Rod42Function 1266
299 Fishing Rod87Function 256
321 bowling ball15
488 Fishing Rod64
599 Fishing net73
615 Fishing Rod41
Sheet1
Cell Formulas
RangeFormula
E1=SUM(SUMIFS(B:B,A:A,{"77","88","99"}&"*"))
E2=SUM(B:B)-E1
 
Upvote 0
I get #value !. Doesn ot work. Also tried:

{=SUMIF(A11:A27;ISNUMBER(FIND({77;88;99};A11:A27));B11:B27)} but only get 0.

Evaluation shows {=SUMIF(A11:A27;TRUE));B11:B27)} but does not sum the amount for the criterias met.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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