# Using Sumif with Named Range

#### futbol1097

##### New Member
I'm trying to build single formula that will sum all cells that exist in a named range. See below for example. I want to sum all values in column B, when names in column A exist in "Namelist" range. So formula should produce \$30 (Joe + Beth)

I tried: = SUMIF(A1:A7,Namelist,B1:B7)

Thanks!

Column A1:A7 is list of names and B1:B7 is a dollar amount
A B
Joe \$20
Bob \$5
Mary \$6
Jim \$75
Beth \$10
Jill \$5
Tony \$30

"NameList" is is a named range of many names
Fred
Hank
Joe
Beth
...

### Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
I'm trying to build single formula that will sum all cells that exist in a named range. See below for example. I want to sum all values in column B, when names in column A exist in "Namelist" range. So formula should produce \$30 (Joe + Beth)

I tried: = SUMIF(A1:A7,Namelist,B1:B7)

Thanks!

Column A1:A7 is list of names and B1:B7 is a dollar amount
A B
Joe \$20
Bob \$5
Mary \$6
Jim \$75
Beth \$10
Jill \$5
Tony \$30

"NameList" is is a named range of many names
Fred
Hank
Joe
Beth
...

Try...

=SUMPRODUCT(SUMIF(A1:A7,Namelist,B1:B7))

Ok it worked. Thanks!

Ok it worked. Thanks!

You are welcome. Thanks for providing feedback.

Replies
7
Views
359
Replies
2
Views
215
Replies
10
Views
460
Replies
14
Views
500
Replies
5
Views
323

1,206,830
Messages
6,075,113
Members
446,123
Latest member
junkyardforme

### 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.

### Which adblocker are you using?

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

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