# Counting values from 2 columns

#### Rowan2960

##### New Member
I have 2 columns in a spreadsheet column B with individual towns and column C with a revenue value added.

I need a formula to count the revenue per individual town in column D

thanks

Rowan

### Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

#### bewsh1987

##### Board Regular
try

=SUMIF(\$B\$1:\$B\$10,B1,\$C\$1:\$C\$10)

#### Rick Rothstein

##### MrExcel MVP
I have 2 columns in a spreadsheet column B with individual towns and column C with a revenue value added.

I need a formula to count the revenue per individual town in column D
I am guessing that your towns repeat themselves in Column B, so unless you want Column D to have the totals repeated next to each town in the list, you will need to use Columns D and E... in Column D would be listed each town only once and in Column E would be the total revenue for that town. Do you have such a list of the unique town names or will you need formulas to figure that list out for you?

Replies
5
Views
244
Replies
4
Views
201
Replies
4
Views
131
Replies
3
Views
195
Replies
9
Views
214

1,172,169
Messages
5,879,442
Members
433,431
Latest member
LikeablePringle

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