Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default 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 ""


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,104
Default 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 ""



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default If statement - blank cell

=IF(B8="","",B8)
--
Gary''s Student - gsnu200908
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
If, then statement with the condition a blank cell vew Excel Worksheet Functions 10 October 13th 09 06:09 PM
returning blank cell in an if statement Jeremy Excel Worksheet Functions 2 March 18th 09 06:06 PM
if statement when cell is blank davisk Excel Worksheet Functions 6 August 10th 08 12:03 AM
keep cell blank if IF statement is False ruthslaughter New Users to Excel 5 November 25th 05 01:30 PM
keep cell blank when false in IF statement ruthslaughter Excel Discussion (Misc queries) 2 November 22nd 05 06:15 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"