VBA Macro to read worksheet and output 10% each category in one column

david_hu_66

New Member
Joined
Mar 13, 2019
Messages
8
Hi All,

I need VBA Macro to read worksheet and output 10% each category from one column.

Data like this
Name IDs
A 1
A 22
A 33
A 444
A 555
A 666
A 777
A 888
A 999
A 1000
A 1111
A 1222
A 2222
B
11
B 222
B
333
B
4444
B
5555
B
6666
B
7777
B
8888
B
9999
B
10001
B
11111
B
12221
B
22221
B 33333
C 111111
C 222222

so summary will be
A 13 roundup(10%*13)=2
B 14 roundup(10%*14)=2
C 2 roundup(10%2)=1
so output to another worksheet will be like this
Name IDs
A 1
A 22
B 11
B 222
C 111111
C 222222


Thank you!

David


 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,213,504
Messages
6,114,016
Members
448,543
Latest member
MartinLarkin

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