#1   Report Post  
Posted to microsoft.public.excel.misc
nc nc is offline
external usenet poster
 
Posts: 119
Default Sumif function

A B C D E
Dept Text Amount Employee no. Total
JAK 3001 Fee 481.16 042670
LAN 3001 Fee 70.04 044101
JAK 3001 Fee 36.61 044101
LAN 3001 Fee 136.00 007001
AFR 3001 Fee 57.42 011800
LAN 3001 Fee 340.00 011800

I would like to use the sumif function in column E to total all the amount
according to the employee no., but exclude the amount for Dept=€¯LAN€¯. i.e.
the sumif function will return the total amount of Ā£106.65 for employee no.
044101



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Sumif function

In your example of emplyee of emplyee you have the record:
LAN 3001 Fee 70.04 044101
should that record be excluded? You asked to exclude LAN but your example
includes it...
--
HTH...

Jim Thomlinson


"nc" wrote:

A B C D E
Dept Text Amount Employee no. Total
JAK 3001 Fee 481.16 042670
LAN 3001 Fee 70.04 044101
JAK 3001 Fee 36.61 044101
LAN 3001 Fee 136.00 007001
AFR 3001 Fee 57.42 011800
LAN 3001 Fee 340.00 011800

I would like to use the sumif function in column E to total all the amount
according to the employee no., but exclude the amount for Dept=€¯LAN€¯. i.e.
the sumif function will return the total amount of Ā£106.65 for employee no.
044101



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default Sumif function

I would use a pivot table for this but if you still want to use the sumif I
would first create a helper column concantenating the employee and dept.
After you do that, you can then apply the formula to the helper column.

"nc" wrote:

A B C D E
Dept Text Amount Employee no. Total
JAK 3001 Fee 481.16 042670
LAN 3001 Fee 70.04 044101
JAK 3001 Fee 36.61 044101
LAN 3001 Fee 136.00 007001
AFR 3001 Fee 57.42 011800
LAN 3001 Fee 340.00 011800

I would like to use the sumif function in column E to total all the amount
according to the employee no., but exclude the amount for Dept=€¯LAN€¯. i.e.
the sumif function will return the total amount of Ā£106.65 for employee no.
044101



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Sumif function

Here is one way assuming you actually want to exclude LAN

=sumproduct(--($A$2:$A$10< "LAN"), --($D$2:$D$10= $D2), $C$2:$C$10)
Entered in cell E2
--
HTH...

Jim Thomlinson


"Jim Thomlinson" wrote:

In your example of emplyee of emplyee you have the record:
LAN 3001 Fee 70.04 044101
should that record be excluded? You asked to exclude LAN but your example
includes it...
--
HTH...

Jim Thomlinson


"nc" wrote:

A B C D E
Dept Text Amount Employee no. Total
JAK 3001 Fee 481.16 042670
LAN 3001 Fee 70.04 044101
JAK 3001 Fee 36.61 044101
LAN 3001 Fee 136.00 007001
AFR 3001 Fee 57.42 011800
LAN 3001 Fee 340.00 011800

I would like to use the sumif function in column E to total all the amount
according to the employee no., but exclude the amount for Dept=€¯LAN€¯. i.e.
the sumif function will return the total amount of Ā£106.65 for employee no.
044101



  #5   Report Post  
Posted to microsoft.public.excel.misc
nc nc is offline
external usenet poster
 
Posts: 119
Default Sumif function

Thanks.

What about if I wanted include both dept "LAN" and "JAK"?




"Jim Thomlinson" wrote:

Here is one way assuming you actually want to exclude LAN

=sumproduct(--($A$2:$A$10< "LAN"), --($D$2:$D$10= $D2), $C$2:$C$10)
Entered in cell E2
--
HTH...

Jim Thomlinson


"Jim Thomlinson" wrote:

In your example of emplyee of emplyee you have the record:
LAN 3001 Fee 70.04 044101
should that record be excluded? You asked to exclude LAN but your example
includes it...
--
HTH...

Jim Thomlinson


"nc" wrote:

A B C D E
Dept Text Amount Employee no. Total
JAK 3001 Fee 481.16 042670
LAN 3001 Fee 70.04 044101
JAK 3001 Fee 36.61 044101
LAN 3001 Fee 136.00 007001
AFR 3001 Fee 57.42 011800
LAN 3001 Fee 340.00 011800

I would like to use the sumif function in column E to total all the amount
according to the employee no., but exclude the amount for Dept=€¯LAN€¯. i.e.
the sumif function will return the total amount of Ā£106.65 for employee no.
044101



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
SUMIF Function Inside SUMPRODUCT Function Abdul Waheed Excel Worksheet Functions 17 September 19th 05 04:24 PM
Can SUMIF function include AND function ShaneS Excel Worksheet Functions 1 May 17th 05 03:24 AM
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 01:51 PM.

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"