ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   If all cells = "OK" then..... (https://www.excelbanter.com/excel-programming/354392-if-all-cells-%3D-ok-then.html)

Ctech[_104_]

If all cells = "OK" then.....
 

I have a 10 cells containing the word "OK" or "Error" depending on an IF
statement in each cell.

However Im now trying my make a sum cell for this. IF all cells
contains OK then "OK" if not write "Error"..

How can I do this?


--
Ctech


------------------------------------------------------------------------
Ctech's Profile: http://www.excelforum.com/member.php...o&userid=27745
View this thread: http://www.excelforum.com/showthread...hreadid=516538


Bob Phillips[_6_]

If all cells = "OK" then.....
 
=IF(COUNTIF(A1:M1,"OK")=13,"OK","Error")

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Ctech" wrote in
message ...

I have a 10 cells containing the word "OK" or "Error" depending on an IF
statement in each cell.

However Im now trying my make a sum cell for this. IF all cells
contains OK then "OK" if not write "Error"..

How can I do this?


--
Ctech


------------------------------------------------------------------------
Ctech's Profile:

http://www.excelforum.com/member.php...o&userid=27745
View this thread: http://www.excelforum.com/showthread...hreadid=516538




Ctech[_105_]

If all cells = "OK" then.....
 

Thanks

Regards,

Chris


--
Ctech


------------------------------------------------------------------------
Ctech's Profile: http://www.excelforum.com/member.php...o&userid=27745
View this thread: http://www.excelforum.com/showthread...hreadid=516538


davesexcel[_5_]

If all cells = "OK" then.....
 

Ctech Wrote:
I have a 10 cells containing the word "OK" or "Error" depending on an IF
statement in each cell.

However Im now trying my make a sum cell for this. IF all cells
contains OK then "OK" if not write "Error"..

:mad:
=COUNTIF(A1:A10,"ok")
=if(range=10,then"ok","error")



--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=516538



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

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