ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If Then (https://www.excelbanter.com/excel-discussion-misc-queries/214199-if-then.html)

Jim

If Then
 
How do I write a formula that will return an x if a range of cells have any
data?

For example I would like A1 to return X, if any of the cells in B1 through
P1 have any data in them.

Thanks

Sheeloo[_3_]

If Then
 
Enter this in A1
=IF(CountA(B1:P1)0,"X","")

"Jim" wrote:

How do I write a formula that will return an x if a range of cells have any
data?

For example I would like A1 to return X, if any of the cells in B1 through
P1 have any data in them.

Thanks


Rick Rothstein

If Then
 
Another possibility...

=LEFT("X",COUNTA(B1:P1)0)

--
Rick (MVP - Excel)


"Jim" wrote in message
...
How do I write a formula that will return an x if a range of cells have
any
data?

For example I would like A1 to return X, if any of the cells in B1 through
P1 have any data in them.

Thanks




All times are GMT +1. The time now is 02:00 AM.

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