Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I am creating a spreadsheet that tracks our current staff across the country.
Is there a way to create a formula that counts from two different fields. For example I want the total number of people if Column B reads "ATLANTA" and column F reads "ACTIVE" I was thinking I could use COUNTIF somehow....but can't quite figure it out |
#2
![]() |
|||
|
|||
![]()
One way
=SUMPRODUCT(--(B2:B100="ATLANTA"),--(F2:F100="ACTIVE")) you could replace the criteria with cell references so it be easier to change criteria, also note that unlike countif you can't use the whole column like B;B Regards, Peo Sjoblom "jbressma" wrote: I am creating a spreadsheet that tracks our current staff across the country. Is there a way to create a formula that counts from two different fields. For example I want the total number of people if Column B reads "ATLANTA" and column F reads "ACTIVE" I was thinking I could use COUNTIF somehow....but can't quite figure it out |
#3
![]() |
|||
|
|||
![]()
You can do this using a variation of SUMPRODUCT(). You'll need to
expand the ranges to reflect your application, but try this: =SUMPRODUCT(--(B1:B10="ATLANTA"),--(F1:F10="ACTIVE")) Note that spelling matters! ATLANT A is different from ATLANTA and even a trailing or leading blank space will skew your results. Hope this does it for you! |
#4
![]() |
|||
|
|||
![]()
Thanks! That worked perfectly.
"Peo Sjoblom" wrote: One way =SUMPRODUCT(--(B2:B100="ATLANTA"),--(F2:F100="ACTIVE")) you could replace the criteria with cell references so it be easier to change criteria, also note that unlike countif you can't use the whole column like B;B Regards, Peo Sjoblom "jbressma" wrote: I am creating a spreadsheet that tracks our current staff across the country. Is there a way to create a formula that counts from two different fields. For example I want the total number of people if Column B reads "ATLANTA" and column F reads "ACTIVE" I was thinking I could use COUNTIF somehow....but can't quite figure it out |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Simple formulas in existing Excel 2002 no longer working. | Excel Worksheet Functions | |||
Help, Urgent Excel Formulas are not calculating | Excel Discussion (Misc queries) | |||
I want Excel to allow cells with formulas and unrelated text | Excel Discussion (Misc queries) | |||
How do I save a copy of an excel file without the formulas? | Excel Worksheet Functions | |||
Problems with Excel formulas when 2002 upgraded to XP | Excel Worksheet Functions |