ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If statement - blank cell (https://www.excelbanter.com/excel-discussion-misc-queries/247164-if-statement-blank-cell.html)

--Viewpoint

If statement - blank cell
 
Cell B8 may contain one of the following: P, H, S, V, O

Formula needed: If B8 is not blank, then B8, else ""



Bernard Liengme[_3_]

If statement - blank cell
 
=IF(B8="","",B8)
or
=IF(ISBLANK(B8),"",B8)

Please note that if cell B8 itself has a formula that returns "", then it is
not blank and these will not work. Try
=IF(LEN(B8)<1,"",B8)

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"--Viewpoint" wrote in message
...
Cell B8 may contain one of the following: P, H, S, V, O

Formula needed: If B8 is not blank, then B8, else ""




Gary''s Student

If statement - blank cell
 
=IF(B8="","",B8)
--
Gary''s Student - gsnu200908


All times are GMT +1. The time now is 07:40 AM.

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