#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 193
Default SUMIF Function

I have a long list of transactions based on departments that is always
changing.
A department can make more then one transaction so that department number
can appear more then once in a file. I want a function that will sum the
amount of an item used by each department.

ie.

Department Amount
50010 10.00
50010 15.00
50012 20.00
50010 6.00

ect..
Problem I am facing is I don't know which departments will be making
transactions for the week so i can't use the simple sumif with the criteria
being a certain department number.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default SUMIF Function

Try using a Pivot Table:

From the Excel Main Menu: <Data<Pivot Table
Use: Excel..Click [Next]
Select your data..Click [Next]
Click the [Layout] button

ROW: Drag the DEPARTMENT field here
COLUMN: (leave this area blank)
DATA: Drag the AMOUNT field here
If it doesn't list as Sum of AMOUNT...dbl-click it and set it to Sum
Click [OK]
Select where you want the Pivot Table.Click [Finish].

That will list each DEPARTMENT and the sum of AMOUNT.

To refresh the Pivot Table, just right click it and select Refresh Data

Is that something you can work with?
Post back if you have more questions.
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)


"Terry" wrote in message
...
I have a long list of transactions based on departments that is always
changing.
A department can make more then one transaction so that department number
can appear more then once in a file. I want a function that will sum the
amount of an item used by each department.

ie.

Department Amount
50010 10.00
50010 15.00
50012 20.00
50010 6.00

ect..
Problem I am facing is I don't know which departments will be making
transactions for the week so i can't use the simple sumif with the
criteria
being a certain department number.



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
How to nest a left function within a sumif function? LisaK Excel Worksheet Functions 2 April 23rd 23 11:46 AM
Using the TODAY() function in a SUMIF function JPB Excel Worksheet Functions 4 July 27th 06 04:01 PM
How do I use the TODAY function with the SUMIF function? Lisa B. Excel Worksheet Functions 2 September 30th 05 08:51 PM
SUMIF Function Inside SUMPRODUCT Function Abdul Waheed Excel Worksheet Functions 17 September 19th 05 04:24 PM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


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