ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to you count cells that contain any entry? (https://www.excelbanter.com/excel-discussion-misc-queries/3811-how-you-count-cells-contain-any-entry.html)

Robin C

How to you count cells that contain any entry?
 
=IF(J9="x",1,IF(K9="x",1.5,IF(L9="x",2,IF(M9="x",2 .5,IF(N9="x",3,IF(O9="x",3.5,IF(P9="x",4,"")))))))

This works fine for me if my customers use an x, but some use a tick or a
star, or any computer letter/symbol.
Can this equation be made to work irrespective of what the entry in the cell
is?

Bob Phillips

=IF(J9<"", 1, etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Robin C" <Robin wrote in message
...

=IF(J9="x",1,IF(K9="x",1.5,IF(L9="x",2,IF(M9="x",2 .5,IF(N9="x",3,IF(O9="x",3
..5,IF(P9="x",4,"")))))))

This works fine for me if my customers use an x, but some use a tick or a
star, or any computer letter/symbol.
Can this equation be made to work irrespective of what the entry in the

cell
is?




Aladin Akyurek

Does

=LOOKUP(2,1/(1-ISBLANK(J9:P9)),{1,1.5,2,2.5,3,3.5,4})

fit the bill?

Robin C wrote:
=IF(J9="x",1,IF(K9="x",1.5,IF(L9="x",2,IF(M9="x",2 .5,IF(N9="x",3,IF(O9="x",3.5,IF(P9="x",4,"")))))))

This works fine for me if my customers use an x, but some use a tick or a
star, or any computer letter/symbol.
Can this equation be made to work irrespective of what the entry in the cell
is?


[email protected]

Try this formula
=IF(I7<"",1,IF(J7<"",1.5,IF(K7<"",2,IF(L7<"",2 .5,IF
(M7<"",3,IF(N7<"",3.5,IF(O7<"",4,"")))))))
-----Original Message-----
=IF(J9="x",1,IF(K9="x",1.5,IF(L9="x",2,IF(M9="x", 2.5,IF

(N9="x",3,IF(O9="x",3.5,IF(P9="x",4,"")))))))

This works fine for me if my customers use an x, but

some use a tick or a
star, or any computer letter/symbol.
Can this equation be made to work irrespective of what

the entry in the cell
is?
.



All times are GMT +1. The time now is 11:04 PM.

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