# Formula If duplicate do division sum - Excel 2010

#### cferart

##### New Member
Hi everyone
I can do this with a Pivot table but would like a formula for Col D the "Loans per copy" that does a calculation eg looks at Col B works out how many copies then adds Col C for that and then puts Loans per copy against ALL copies. Help appreciated, thanks

Excel 2010
 A - Title B - Copy no. C - Loans D- Loans per copy Guide to English 1 11 8 Guide to English 2 5 8 Maths for beginners 1 2 4 Maths for beginners 2 9 4 Maths for beginners 3 0 4

<tbody>
</tbody>

### Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Assuming your table starts in A1, try this in D2 and copy down:

=ROUNDUP(SUMIF(\$A\$2:\$A\$6,A2,\$C\$2:\$C\$6)/COUNTIF(\$A\$2:\$A\$6,A2),0)

Thanks so much bbott works perfectly.........

Assuming your table starts in A1, try this in D2 and copy down:

=ROUNDUP(SUMIF(\$A\$2:\$A\$6,A2,\$C\$2:\$C\$6)/COUNTIF(\$A\$2:\$A\$6,A2),0)

Replies
2
Views
169
Replies
3
Views
387
Replies
5
Views
225
Replies
4
Views
174
Replies
2
Views
449

Threads
1,216,484
Messages
6,130,934
Members
449,607
Latest member
babylegs

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

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