Another option, using SUMIF, might be easier to explain...
If this is your current source data.....
<b>Source Data</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:120px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >N</td><td >O</td><td >P</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td >Customer</td><td >Header</td><td >Header</td><td >Header</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td >Account 123</td><td style="text-align:right; ">114</td><td style="text-align:right; ">891</td><td style="text-align:right; ">786</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td >Account 123</td><td style="text-align:right; ">929</td><td style="text-align:right; ">932</td><td style="text-align:right; ">158</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td >Account 456</td><td style="text-align:right; ">626</td><td style="text-align:right; ">853</td><td style="text-align:right; ">268</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td >Account 123</td><td style="text-align:right; ">815</td><td style="text-align:right; ">153</td><td style="text-align:right; ">287</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td >Account 456</td><td style="text-align:right; ">455</td><td style="text-align:right; ">571</td><td style="text-align:right; ">241</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td >Account 789</td><td style="text-align:right; ">419</td><td style="text-align:right; ">385</td><td style="text-align:right; ">849</td></tr></table> <br />
Excel tables to the web - Excel Jeanie Html 4
1. Make a copy of the entire sheet and rename the sheet tab as Summary.
The rest of these steps are to be done in your new Summary sheet:
2. Clear all your data except Column A and the Headers
3. Use Remove Duplicates on Column A to get just the unique values in Col A.
4. Put this formula in Cell N2 (substitute your Source Data's sheet name):
=SUMIF('Source Data'!$A:$A,Summary!$A2,'Source Data'!N:N)
5. Copy that formula from N2 to the entire range of N2 to the last row of AF.
That should give you the sums in formulas. The end result will look like this...
<b>Summary</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:120px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >N</td><td >O</td><td >P</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td >Customer</td><td >Header</td><td >Header</td><td >Header</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td >Account 123</td><td style="text-align:right; ">1858</td><td style="text-align:right; ">1976</td><td style="text-align:right; ">1231</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td >Account 456</td><td style="text-align:right; ">1081</td><td style="text-align:right; ">1424</td><td style="text-align:right; ">509</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td >Account 789</td><td style="text-align:right; ">419</td><td style="text-align:right; ">385</td><td style="text-align:right; ">849</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b>Spreadsheet Formulas</b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >N2</td><td >=SUMIF('Source Data'!$A:$A,Summary!$A2,'Source Data'!N:N)</td></tr><tr><td >O2</td><td >=SUMIF('Source Data'!$A:$A,Summary!$A2,'Source Data'!O:O)</td></tr><tr><td >N3</td><td >=SUMIF('Source Data'!$A:$A,Summary!$A3,'Source Data'!N:N)</td></tr><tr><td >O3</td><td >=SUMIF('Source Data'!$A:$A,Summary!$A3,'Source Data'!O:O)</td></tr></table></td></tr></table> <br />
Excel tables to the web - Excel Jeanie Html 4