Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
September21
 
Posts: n/a
Default check if the text string start with a specific character

Hi,
I want to know how do I check if the text string starts with a specific
character in if statement.

I used ...
=IF(ISNUMBER(FIND("v",'A2)),"OK","Not OK")

But, the result for this argument returns the text string which includes "v"
anywhere in the text string.
I just want to the text string which begins with "v".

How can I make it?

  #2   Report Post  
Max
 
Posts: n/a
Default

Try: =IF(LEFT(TRIM(A2),1)="v","OK","Not OK")

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"September21" wrote in message
...
Hi,
I want to know how do I check if the text string starts with a specific
character in if statement.

I used ...
=IF(ISNUMBER(FIND("v",'A2)),"OK","Not OK")

But, the result for this argument returns the text string which includes

"v"
anywhere in the text string.
I just want to the text string which begins with "v".

How can I make it?



  #3   Report Post  
September21
 
Posts: n/a
Default

Thank you very much for your help!


"Max" wrote:

Try: =IF(LEFT(TRIM(A2),1)="v","OK","Not OK")

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"September21" wrote in message
...
Hi,
I want to know how do I check if the text string starts with a specific
character in if statement.

I used ...
=IF(ISNUMBER(FIND("v",'A2)),"OK","Not OK")

But, the result for this argument returns the text string which includes

"v"
anywhere in the text string.
I just want to the text string which begins with "v".

How can I make it?




  #4   Report Post  
Max
 
Posts: n/a
Default

You're welcome !
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"September21" wrote in message
...
Thank you very much for your help!



  #5   Report Post  
CLR
 
Posts: n/a
Default

=IF(LEFT(A2,1)="v","OK","Not OK")

Vaya con Dios,
Chuck, CABGx3


"September21" wrote in message
...
Hi,
I want to know how do I check if the text string starts with a specific
character in if statement.

I used ...
=IF(ISNUMBER(FIND("v",'A2)),"OK","Not OK")

But, the result for this argument returns the text string which includes

"v"
anywhere in the text string.
I just want to the text string which begins with "v".

How can I make it?





  #6   Report Post  
September21
 
Posts: n/a
Default

Thank you very much for your help!

"CLR" wrote:

=IF(LEFT(A2,1)="v","OK","Not OK")

Vaya con Dios,
Chuck, CABGx3


"September21" wrote in message
...
Hi,
I want to know how do I check if the text string starts with a specific
character in if statement.

I used ...
=IF(ISNUMBER(FIND("v",'A2)),"OK","Not OK")

But, the result for this argument returns the text string which includes

"v"
anywhere in the text string.
I just want to the text string which begins with "v".

How can I make it?




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
Looking up a string of text within a string of text tobriant Excel Worksheet Functions 4 September 20th 05 06:59 PM
can you find specific text in a string ignoring any other text chriscp Excel Discussion (Misc queries) 1 September 18th 05 09:54 PM
Removing numbers from the beginning of a text string Night Owl Excel Worksheet Functions 3 May 13th 05 05:52 PM
Check if table contains text Peter B Excel Worksheet Functions 1 January 21st 05 01:38 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


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

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

About Us

"It's about Microsoft Excel"