SUMIFS With Partial Criteria Match

masouder

Board Regular
Joined
Jul 5, 2013
Messages
111
Office Version
  1. 2013
Platform
  1. Windows
Will the SUMIFS (and SUMIF) function work when the criteria match is not exact? See example below. I am trying to sum all values from the table in cell F5 where the code begins with A40 (cell F4). This would include all yellow-highlighted cells. I can add a column to the table that shows just the first three characters from the code, but I'd like to avoid that additional step if I can.

Book1
BCDEF
3CodeAmount
4A10101CodeA40
5A10202Total???
6A20103
7A40104
8A40205
9A40306
10A40407
11A40908
12A60109
13A602010
14A901011
15A902012
16A903013
17A904014
Sheet1


Any help is appreciated.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
How about
Excel Formula:
=SUMIFS(C:C,B:B,F4&"*")
 
Upvote 0
Solution
=SUMIF(A2:A15,E2&"*",B2:B15)

Book12
ABCDE
1CodeAmount
2A10101CodeA40
3A10202Total30
4A20103
5A40104
6A40205
7A40306
8A40407
9A40908
10A60109
11A602010
12A901011
13A902012
14A903013
15A904014
Sheet2
Cell Formulas
RangeFormula
E3E3=SUMIF(A2:A15,E2&"*",B2:B15)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,091
Messages
6,128,779
Members
449,468
Latest member
AGreen17

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