Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
jacchops
 
Posts: n/a
Default Can I sum #s in a cell if other cells meet a certain criteria?

Let's say I have 3 columns: "ID", "Phase" and "Number of Employees". The ID
value is always unique and ranges from 1-20. The Phase options are A or B. So
here is some sample data:
ID Phase Number of Employees
1 A 10
2 B 5
3 A 2

Can I set up a formula that adds up the number of employees provided that
Phase=A? If I use COUNTIF, I can specify the Number of Employees column as my
Range, but then I get lost when choosing my Criteria.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default Can I sum #s in a cell if other cells meet a certain criteria?

Use the SUMIF function.

=SUMIF(B2:B10,"a",C2:C10)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"jacchops" wrote in message
...
Let's say I have 3 columns: "ID", "Phase" and "Number of
Employees". The ID
value is always unique and ranges from 1-20. The Phase options
are A or B. So
here is some sample data:
ID Phase Number of Employees
1 A 10
2 B 5
3 A 2

Can I set up a formula that adds up the number of employees
provided that
Phase=A? If I use COUNTIF, I can specify the Number of
Employees column as my
Range, but then I get lost when choosing my Criteria.



  #3   Report Post  
Posted to microsoft.public.excel.misc
jacchops
 
Posts: n/a
Default Can I sum #s in a cell if other cells meet a certain criteria?

PERFECT!!! Thank you so much!!!

"Chip Pearson" wrote:

Use the SUMIF function.

=SUMIF(B2:B10,"a",C2:C10)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"jacchops" wrote in message
...
Let's say I have 3 columns: "ID", "Phase" and "Number of
Employees". The ID
value is always unique and ranges from 1-20. The Phase options
are A or B. So
here is some sample data:
ID Phase Number of Employees
1 A 10
2 B 5
3 A 2

Can I set up a formula that adds up the number of employees
provided that
Phase=A? If I use COUNTIF, I can specify the Number of
Employees column as my
Range, but then I get lost when choosing my Criteria.




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
Delete data in cells that don't meet criteria SITCFanTN New Users to Excel 1 June 10th 06 10:03 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 03:22 AM
Counting Consecutive Cells that meet Criteria Omega Point Excel Discussion (Misc queries) 2 February 26th 06 09:28 PM
Counting cells that meet 2 differnet criteria USChad Excel Worksheet Functions 1 September 7th 05 08:58 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 08:16 PM


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