Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Check if a cell contains text

I need to incorporate the function =ISTEXT(D5) into an existing if
statement. The existing if statement is

=IF(D5="One Panel","NA",IF(D5="Self Storing","NA","??"))

in my worksheet there will be times when cell D5 contains text and other
times when the cell contains nothing at all. When D5 contains nothing, I
need the cell recieving the if statment to also be left blank.

Make sense?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Check if a cell contains text

One way:

=IF(D5="","",IF(OR(D5="One Panel",D5="Self Storing"), "NA", "??"))

In article ,
"GreenMonster" wrote:

I need to incorporate the function =ISTEXT(D5) into an existing if
statement. The existing if statement is

=IF(D5="One Panel","NA",IF(D5="Self Storing","NA","??"))

in my worksheet there will be times when cell D5 contains text and other
times when the cell contains nothing at all. When D5 contains nothing, I
need the cell recieving the if statment to also be left blank.

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
Check if text doesn't fit in cell Jeff Jensen Excel Discussion (Misc queries) 4 February 18th 09 05:57 PM
How to set text property of a check box to value of a cell? Naum Charts and Charting in Excel 5 December 11th 07 06:44 PM
'CHECK IF A CELL IN EXCEL HAS ANY TEXT IN IT' Martin in Dublin Excel Worksheet Functions 3 September 16th 05 06:30 PM
Check if cell contains certain text jhockstr Excel Worksheet Functions 2 August 25th 05 09:32 AM
check variable(text) with cell (text), textbox Mark[_17_] Excel Programming 1 August 27th 03 01:15 PM


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

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"