Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 48
Default is this possible?

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
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default is this possible?


=SUMIF should be sufficient.

For Service code 3 for instance

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


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=561658

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 48
Default is this possible?

paul wrote:
sumproduct
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

This is great. How do I indicate the last used cell in the coloumn?
Thanks
John
  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 48
Default is this possible?

daddylonglegs wrote:

=SUMIF should be sufficient.

For Service code 3 for instance

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


This worked for me. Thanks
John
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"