Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Test to see if cell contains a space?

It'll return a yes, if the cell contains a space.

Ideas?

Thank you.
Rick
  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: Test to see if cell contains a space?

Hi Rick,

You can use the
Code:
FIND
function in Excel to check if a cell contains a space. Here's how:
  1. Select the cell where you want to check for a space.
  2. In the formula bar, type the following formula:
    Code:
    =FIND(" ",A1)
  3. Press Enter.

If the cell contains a space, the formula will return the position of the space in the cell. If the cell does not contain a space, the formula will return the
Code:
#VALUE!
error.

You can also use the
Code:
ISNUMBER
function to check if the
Code:
FIND
function returns a number. Here's how:
  1. In another cell, type the following formula:
    Code:
    =ISNUMBER(FIND(" ",A1))
  2. Press Enter.

If the cell contains a space, the formula will return
Code:
TRUE
. If the cell does not contain a space, the formula will return
Code:
FALSE
.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,071
Default Test to see if cell contains a space?

If(A1=" ","Yes","No")

"Rick" wrote in message
...
It'll return a yes, if the cell contains a space.

Ideas?

Thank you.
Rick


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Test to see if cell contains a space?

One way...

=IF(COUNTIF(A1,"* *"),"Yes","No")

--
Biff
Microsoft Excel MVP


"Rick" wrote in message
...
It'll return a yes, if the cell contains a space.

Ideas?

Thank you.
Rick



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Test to see if cell contains a space?

On Dec 21, 12:26*pm, "T. Valko" wrote:
One way...

=IF(COUNTIF(A1,"* *"),"Yes","No")

--
Biff
Microsoft Excel MVP

"Rick" wrote in message

...



It'll return a yes, if the cell contains a space.


Ideas?


Thank you.
Rick- Hide quoted text -


- Show quoted text -


Thank you all!!!

Rick
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
Help finding the last space in a cell [email protected] Excel Worksheet Functions 2 January 28th 09 05:58 PM
How to combind to cell with a <space Roger Excel Worksheet Functions 1 February 27th 07 11:14 PM
space in cell wood1e Excel Discussion (Misc queries) 3 August 19th 06 09:05 AM
Calculate mean of test scores from rows of test answers RiotLoadTime Excel Discussion (Misc queries) 1 July 26th 06 05:14 PM
How can i test a cell for bold style in a cell (Excel 2003)? Mike A. Excel Worksheet Functions 2 March 6th 06 07:23 PM


All times are GMT +1. The time now is 12:22 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"