New in macro & VBA word - Need help

Norzak

New Member
Joined
May 25, 2019
Messages
5
Hello all,

I am new in the macro and VBA world, i work to perfect myself in this new Learning. I have a spreasheet to work on and i need a code that can do this ... If anyone can help me doing it please.


I have a spreadsheet that as 3 type of workers ( 43, 48 and 65)(same column A.)
I have 800 lignes to scan

I want to sum all the work hours for each type of workers (Work hours - same column B)

Thanks for the help
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Do you really need a macro?
Try this, adjusted for all three types:

Code:
=SUMIF(A1:A800,43,B1:B800)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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