Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Drummy
 
Posts: n/a
Default Using an IF function for a total


ok, say I have a fundraising worksheet for a tennis club

* I have 7 columns with in order;

division, cartons, returned cartons, income, cartons, returned cartons,
income

3 divisions (junior, senior and sjunior) are selling 2 types of
chocolates,

* each row represents a player from the club

Senior 15 15 $30.00 15 15 $75.00
Senior 15 15 $30.00 15 15 $75.00
Senior 15 15 $30.00 15 15 $75.00
Senior 15 14 $28.00 15 12 $60.00
Senior 15 13 $26.00 15 13 $65.00
Senior 15 15 $30.00 15 14 $70.00
Senior 15 13 $26.00 15 15 $75.00
Senior 15 15 $30.00 15 15 $75.00
Junior 10 9 $18.00 10 9 $45.00
Junior 10 10 $20.00 10 10 $50.00
Senior 15 9 $18.00 15 14 $70.00
SJunior 5 5 $10.00 5 5 $25.00
SJunior 5 3 $6.00 5 5 $25.00
Junior 10 10 $20.00 10 13 $65.00
Senior 15 15 $30.00 15 14 $70.00

(income is the returned cartons * carton price @ $2 and $5)

what would the formula be for the total of each division
if the worksheet above is G2:J16

???


--
Drummy
------------------------------------------------------------------------
Drummy's Profile: http://www.excelforum.com/member.php...o&userid=34780
View this thread: http://www.excelforum.com/showthread...hreadid=548071

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Using an IF function for a total

=SUMPRODUCT(--(G2:G16="Senior"),(H2:H16+I2:I16))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Drummy" wrote in
message ...

ok, say I have a fundraising worksheet for a tennis club

* I have 7 columns with in order;

division, cartons, returned cartons, income, cartons, returned cartons,
income

3 divisions (junior, senior and sjunior) are selling 2 types of
chocolates,

* each row represents a player from the club

Senior 15 15 $30.00 15 15 $75.00
Senior 15 15 $30.00 15 15 $75.00
Senior 15 15 $30.00 15 15 $75.00
Senior 15 14 $28.00 15 12 $60.00
Senior 15 13 $26.00 15 13 $65.00
Senior 15 15 $30.00 15 14 $70.00
Senior 15 13 $26.00 15 15 $75.00
Senior 15 15 $30.00 15 15 $75.00
Junior 10 9 $18.00 10 9 $45.00
Junior 10 10 $20.00 10 10 $50.00
Senior 15 9 $18.00 15 14 $70.00
SJunior 5 5 $10.00 5 5 $25.00
SJunior 5 3 $6.00 5 5 $25.00
Junior 10 10 $20.00 10 13 $65.00
Senior 15 15 $30.00 15 14 $70.00

(income is the returned cartons * carton price @ $2 and $5)

what would the formula be for the total of each division
if the worksheet above is G2:J16

???


--
Drummy
------------------------------------------------------------------------
Drummy's Profile:

http://www.excelforum.com/member.php...o&userid=34780
View this thread: http://www.excelforum.com/showthread...hreadid=548071



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom function Christina L. Excel Worksheet Functions 1 May 10th 06 06:38 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
sum of total hours not correct Bruno Lauwers Setting up and Configuration of Excel 9 September 6th 05 08:03 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
How do I total a column which was created using the MID function? CindyB Excel Worksheet Functions 6 February 10th 05 05:37 AM


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

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

About Us

"It's about Microsoft Excel"