ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   I need a formula (https://www.excelbanter.com/excel-discussion-misc-queries/86547-i-need-formula.html)

Lee

I need a formula
 
Can I make a cell count the total number of "X" placed in a group of cells?
example: If A1, B1, C1, and D1 each have an "X", I want E1 to say "4". If A1,
B1, and D1 each have an "X", I want E1 to say "3", and so on. Is there a
formula for this?
--
Lee Davenport

Miguel Zapico

I need a formula
 
You can try
=COUNTIF(A1:A4,"X")

"Lee" wrote:

Can I make a cell count the total number of "X" placed in a group of cells?
example: If A1, B1, C1, and D1 each have an "X", I want E1 to say "4". If A1,
B1, and D1 each have an "X", I want E1 to say "3", and so on. Is there a
formula for this?
--
Lee Davenport


Dav

I need a formula
 

=COUNTIF(A1:d1,"x")

note it is not case sensitive so will count X or x

regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=538439


JRockdown

I need a formula
 

Hopefully this is what you are looking for.

=COUNTIF(A1:D1,"=X")

HTH

RC


--
JRockdown
------------------------------------------------------------------------
JRockdown's Profile: http://www.excelforum.com/member.php...o&userid=13236
View this thread: http://www.excelforum.com/showthread...hreadid=538438



All times are GMT +1. The time now is 07:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com