For Each VBA to sum

J

jlclyde

I am trying to use VBA to look at column A which is a date, column E
which is the employee number. then it is supposed to add other
columns up on the same rows. I want it to add them up if they are the
same week. For instance employee 1 worked 11-5-07 and 11-7-07. I
want to add up both occuerences. So their production is in B and C, I
want to add up all of the B that meet the A and E requirements. then
I want to delete the rows that made up the sum.

Thanks,
Jay
 
J

Joel

I would take a different appproach. I would copy al the data to a new sheet.
Then sort by employee and date. Then I would combine rows and delete
duplicates.. Put Sunday in Hours in column G, Monday in H, ...Saturday in M.
Then the total in column B would be the sum of H to M.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

sum product sum if conditional HELP!!! 2
Sum / Lookup 9
Formula for Latest Entry For Each Month 4
Sum VLOOKUP 2
SUM - IF - AND 7
Indirect Sum 2
Error when using Sum command 3
Sum a range based on a column 2

Top