Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Manu Palao
 
Posts: n/a
Default Problem with search


Hi
the problem arises when the cell only has a word. When I try to get the
position of the blank character (to be able to separate the first word
by means of MID function), there is an error, because there is no blank
in the cell.Thanks!


--
Manu Palao
------------------------------------------------------------------------
Manu Palao's Profile: http://www.excelforum.com/member.php...o&userid=16205
View this thread: http://www.excelforum.com/showthread...hreadid=277029

  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
then try
=IF(ISNUMBER(FIND(" ",A1)),MID(A1,FIND(" ",A1)+1,1024),A1)

P.S.: best to post your tried formula
--
Regards
Frank Kabel
Frankfurt, Germany

"Manu Palao" schrieb im
Newsbeitrag ...

Hi
the problem arises when the cell only has a word. When I try to get

the
position of the blank character (to be able to separate the first

word
by means of MID function), there is an error, because there is no

blank
in the cell.Thanks!


--
Manu Palao
---------------------------------------------------------------------

---
Manu Palao's Profile:

http://www.excelforum.com/member.php...o&userid=16205
View this thread:

http://www.excelforum.com/showthread...hreadid=277029


  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default


Manu Palao Wrote:
Hi
In a macro, I´m trying to get the first word of every cell. I use the
function Search("",1). This works when there are several words in a
cell, but there is a runtime error when there is only one, since there
are no blanks in the cell. What could I do? Thanks!!


=LEFT(A1,SEARCH(" ",A1&" ")-1)


--
Aladin Akyurek
------------------------------------------------------------------------
Aladin Akyurek's Profile: http://www.excelforum.com/member.php...fo&userid=4165
View this thread: http://www.excelforum.com/showthread...hreadid=277029

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
Row Autofit problem Excel 2003 Matthias Klaey Excel Discussion (Misc queries) 0 January 19th 05 05:33 PM
Baffling formula problem Ken Schmidt Excel Discussion (Misc queries) 2 December 21st 04 07:52 AM
Search for a Sheet Chance224 Excel Discussion (Misc queries) 3 December 14th 04 12:29 AM
Paper Tray selection Problem, Michael Hoffmann Excel Discussion (Misc queries) 4 December 3rd 04 09:08 PM
Problem with search anilsolipuram Excel Worksheet Functions 0 November 10th 04 04:37 PM


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