Sum by Number

Tennisguuy

Well-known Member
Joined
Oct 17, 2007
Messages
564
Office Version
  1. 2016
Platform
  1. Windows
I have a spreadsheet where I want to sum certain values by location but the location number will vary and not be in sequential order. The following is the headings I have in the column. The headings start in column W11:W15.

Location Layer Amount Layer Rate Ceded Premium Sold
2 100,000 .40 400,000 400,000
5 400,000 .50 100,000 125,000
5 300,000 1.00 200,000 250,000
3 100,000 1.50 125,000 125,000
2 250,000 1.25 200,000 100,000

In one cell I want to sum the location by the layer amount and in another cell I want to sum the location by the sold amount. In the above example location #2 layer amount would be 350,000 and the sold would be 500,000
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Like this?
Each formula copied down.

Excel Workbook
WXYZAAABACADAE
11LocationLayer AmountLayer RateCeded PremiumSoldLocationLayer AmountSold
122100,0000.4400,000400,0002350000500000
135400,0000.5100,000125,0003100000125000
145300,0001200,000250,0005700000375000
153100,0001.5125,000125,000
162250,0001.25200,000100,000
17
SUMIF
 
Upvote 0
You could also use Excel's built-in Pivot Table feature for this.

Excel Workbook
VWXYZAA
11LocationLayer AmountLayer RateCeded PremiumSold
122100,0000.4400,000400,000
135400,0000.5100,000125,000
145300,0001200,000250,000
153100,0001.5125,000125,000
162250,0001.25200,000100,000
17
18
19
20Values
21LocationSum of Layer AmountSum of Sold
222350000500000
233100000125000
245700000375000
25Grand Total11500001000000
26
SUMIF
 
Upvote 0

Forum statistics

Threads
1,224,352
Messages
6,178,062
Members
452,822
Latest member
MtC

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