is this possible?

J

John

I already do this using a macro but thought it might be possible with
just a cell function.

Column B has either 1,2,3, or 4 in it. These are service codes. Column C
has hours in it. I want total hours per service in another place on the
sheet. So... it's find a all the 1's say, multiply each by the hours in
the same row in C and add that prduct to another cell. Do that until
there is a blank in coloumn B. Do it, also, for 2,3, and 4.

The macro is a simple while/wend.

thanks

John
 
D

daddylonglegs

=SUMIF should be sufficient.

For Service code 3 for instance

=SUMIF(B:B,3,C:C
 

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

Top