Using Sum Function how to sum only the number if joined text as its own criteria

Lacan

Board Regular
Joined
Oct 5, 2016
Messages
237
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

Here´s the challenge using Sum Function how to sum only the number if joined text as its own criteria.

Accordingly with table below the goal its to sum only numbers joined with letter "A" so sum the numbers in customers columns like: "1A"; "3A" and "2A" which result will be 6.

Thank you very much guys.

CUSTOMER PRODUCT
XPOT1A
BILLA6
APPLE3A
JOHN2
PROD4
YAN2A
KLM10
TOTAL
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
How about
+Fluff 1.xlsm
JK
1CUSTOMER PRODUCT
2XPOT1A
3BILLA6
4APPLE3A
5JOHN2
6PROD4
7YAN2A
8KLM10
9TOTAL6
Lists
Cell Formulas
RangeFormula
K9K9=SUM(FILTER(--SUBSTITUTE(K2:K8,"A",""),RIGHT(K2:K8)="A"))
 
Upvote 0
Solution
I am not as quite as proficient as Fluff at some of the newer functions, like Filter, so I resorted to the old SUMPRODUCT method, i.e.
Excel Formula:
=SUMPRODUCT(--(RIGHT(B2:B8,1)="A"),--(SUBSTITUTE(B2:B8,"A","")))
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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