ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Cell C1 ="error" if.... (https://www.excelbanter.com/excel-worksheet-functions/26996-cell-c1-%3D%22error%22-if.html)

DaveMoore

Cell C1 ="error" if....
 
I wish to return the text "Error" in cell C1 if the text "error"
appears in any cell in the range AF3:AF52. Cells in the range
AF3:AF52 contain a formula that reurns "error" if there should be a
problem in that row.
Can anyone advise?
Thanks to all,
Dave Moore


Mangesh

Enter the following formula in C1:

=IF(COUNTIF(AF3:AF52,"Error")0,"Error","")


Mangesh



"DaveMoore" wrote in message
oups.com...
I wish to return the text "Error" in cell C1 if the text "error"
appears in any cell in the range AF3:AF52. Cells in the range
AF3:AF52 contain a formula that reurns "error" if there should be a
problem in that row.
Can anyone advise?
Thanks to all,
Dave Moore




DaveMoore

Thanks, Mangesh.
Simple really, wasn't it?
But I couldn't see it!



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

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