Sum formula with criteria - Letters not working

Gonney

New Member
Joined
Jul 28, 2022
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Hi Team,
I thought i had this all figured out and turns out my formula does not like letters and numbers combined. Can you guys have a quick look and see if there is any feedback/solution could suggest?

=SUM(FILTER($A$2:$A$800, ((LEFT($B$2:$B$800,1)="1")*($C$2:$C$800="A")) + (($B$2:$B$800="NF*") + ($B$2:$B$800="NA*") + ($B$2:$B$800="NE*") + ($B$2:$B$800="NC*"))))

Current formula finds the first cell being 1, but does not pick up any further cells with NF/NA/NE etc in them. With Numbers it's only important to capture the first one with letters first 2 should be ok.

Book1
ABCDEFGHIJ
1AmountReferenceLocaionAmount
2101234A10<--- looking for formula
310NC1234A<--- looking for formulaTo be grouped together
410NF1234A<--- looking for formula1234, NC, NF
5203221B<--- looking for formula3221
650456B<--- looking for formula456
710221A<--- looking for formula221 A
815221B<--- looking for formula221 B
Sheet1
Cell Formulas
RangeFormula
E2E2=SUM(FILTER($A$2:$A$800, ((LEFT($B$2:$B$800,1)="1")*($C$2:$C$800="A")) + (($B$2:$B$800="NF*") + ($B$2:$B$800="NA*") + ($B$2:$B$800="NE*") + ($B$2:$B$800="NC*"))))
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
It is not clear to me what your desired results would be. For that sample data, could you fill them in manually and post again with XL2BB together with any further written clarification?
 
Upvote 0
The desired outcome is to have a formula that adds the total of A2:A8 together if the reference and location is the same - Example with 1234 we are just looking for the 1 to be captured as the first (as there are multiple different numbers that all start with different things) and also have NC1234 + NF1234 also captured, the important part of that is the NC and NF from a criteria aspect.

Uploaded new table:

Book1
ABCDEFGHIJ
1AmountReferenceLocaionExpected outcomeFormula goal
2101234A30123 + NC +NF at Location A<--- looking for formula
310NC1234A203221 at Location B<--- looking for formulaTo be grouped together
410NF1234A50456 at Location B<--- looking for formula1234, NC, NF
5203221B10221 at A<--- looking for formula3221
650456B15221 at B<--- looking for formula456
710221A<--- looking for formula221 A
815221B<--- looking for formula221 B
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,876
Messages
6,175,123
Members
452,614
Latest member
MRSWIN2709

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