Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default What formula to use?

I have an excel sheet with two columns that I need to pull data from. One
column contains employee names, the other contains a district number for each
employee, and the other contains the number of classes taken for each
employee.

I need to create another worksheet that contains the total number classes
taken per district. How would I go about doing this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default What formula to use?

=SUMPRODUCT(--(B1:B100="district number"),C1:C100)
adjust to suit


"plunk25" wrote:

I have an excel sheet with two columns that I need to pull data from. One
column contains employee names, the other contains a district number for each
employee, and the other contains the number of classes taken for each
employee.

I need to create another worksheet that contains the total number classes
taken per district. How would I go about doing this?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default What formula to use?

Assume you have the unique district numbers listed on sheet2 in the range
A2:An

The other data is on sheet1, district numbers in B2:B10 and classes taken in
C2:10

Enter this formula on sheet2 in cell B2:

=SUMIF(Sheet1!B$2:B$10,A2,Sheet1!C$2:C$10)

Copy down as needed.

Biff

"plunk25" wrote in message
...
I have an excel sheet with two columns that I need to pull data from. One
column contains employee names, the other contains a district number for
each
employee, and the other contains the number of classes taken for each
employee.

I need to create another worksheet that contains the total number classes
taken per district. How would I go about doing this?



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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


All times are GMT +1. The time now is 05:58 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"