only include cells beginning with specified character or number

S

Spunky

I want to sum the "qty" field in a database based on the "job number". I
only want job numbers beginning with 1,2,3 or 4. Below is a list of assorted
job number/alpha I might use.
Job number
103811
310225
350875-6
350875-7
350875-8
350875-8
370245-1
SKU#58214

Another formula I need is to sum "shipping lbs" in a database based on the
product name. I only want products beginning with "c". Below is a list of
assorted products I might use.
Product
Curriculum
Curriculum
Curriculum
VBS FLYER RETAIL
VBS FLYER WHOLESALE
VBS FLYER DENOMS
JUST ADD KIDS - RETAIL
PICK UP N DO SAMPLER
Curriculum
Curriculum
PRESCHOOLER'S BIBLE
 
A

Aladin Akyurek

1.

a) =SUM(SUMIF(A2:A9,{1,2,3,4}&"*",B2:B9))

b) =SUMPRODUCT(--ISNUMBER(MATCH(LEFT(A2:A9)+0,{1,2,3,4},0)),B2:B9)

{1,2,3,4} in (b) can be replaced with a range which houses thos
digits.

2.

=SUMIF(A2:A9,C2&"*",B2:B9))

where C2 houses the letter C.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top