ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using IF in an array (https://www.excelbanter.com/excel-worksheet-functions/99015-using-if-array.html)

L Martin

Using IF in an array
 
Would like to use the IF worksheet function to scan a column to determine if
any of the cells contain a certain entry and if so, to display a message.
Excel Help mentions that this can be done, but does not give any details on
how to do it.
Thanks for any help.



Biff

Using IF in an array
 
Hi!

Try this:

=IF(COUNTIF(A1:A10,"xx"),"your_message_here","")

Replace xx with the certain entry.

If the certain entry is a TEXT string enclose it in quotes like above. If
the certain entry is a NUMERIC value do not enclose it in quotes.

Biff

"L Martin" wrote in message
...
Would like to use the IF worksheet function to scan a column to determine
if any of the cells contain a certain entry and if so, to display a
message. Excel Help mentions that this can be done, but does not give any
details on how to do it.
Thanks for any help.





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

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