Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
phaidon
 
Posts: n/a
Default how to distinguish between text cells?

I have four cells with the following texts
A1= abcdef
A2= abcdef
A3= xyzdef
A4= xyzdef

now I want to have an If formula in B1 that can disginguish if the cell A1
is starting with abc or xyz or something else ( and the same at B2 for A2 and
so on)
So basically I need a formula that can just read the beginning characters of
text in a cell.

I think the formula in B1 should be like if( the beginnig 3 charecters of
A1=abc,True,False).

I dont want to divide the text in the cells. Is that possible?

Thanks



  #2   Report Post  
Posted to microsoft.public.excel.newusers
Bondi
 
Posts: n/a
Default how to distinguish between text cells?

Hi

=IF(LEFT(A1,3)="ABC","True","False")

Regards,
Bondi

  #3   Report Post  
Posted to microsoft.public.excel.newusers
phaidon
 
Posts: n/a
Default how to distinguish between text cells?

Great Thnx

"Bondi" wrote:

Hi

=IF(LEFT(A1,3)="ABC","True","False")

Regards,
Bondi


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
vlookup on large text in cells Gus Excel Worksheet Functions 2 February 23rd 06 06:55 PM
vertical text across multiple cells BThrasher Excel Discussion (Misc queries) 3 December 5th 05 02:23 PM
stopping pasted text deliminate across multiple cells Paul from NZ Excel Discussion (Misc queries) 3 September 8th 05 06:06 AM
Text shown up in other cells everytime a text is entered in 1 cell bioyyy Excel Discussion (Misc queries) 1 August 26th 05 05:26 PM
Combining & formatting cells with text - Excel 2002 Bob Excel Discussion (Misc queries) 4 March 4th 05 10:35 PM


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