A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I test a cell for part of text



 
 
Thread Tools Display Modes
  #1  
Old January 26th, 2005, 11:15 AM
East London
external usenet poster
 
Posts: n/a
Default How do I test a cell for part of text

How can I test only part of the text in a cell and if true return value of a
different cell
  #2  
Old January 26th, 2005, 11:36 AM
Bob Phillips
external usenet poster
 
Posts: n/a
Default

Use the LEFT, MID or RIGHT functions.

Eg A = ABCDEF

=IF(LEFT(A1,2)="AB",

=IF(MID(A1,2,2)="BC",

iF(RIGHT(A1,3)="DEF",

--

HTH

RP
(remove nothere from the email address if mailing direct)


"East London" East wrote in message
...
How can I test only part of the text in a cell and if true return value of

a
different cell



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to test the text font color in a cell Yves General Discussion 4 September 12th, 2004 11:00 PM
Keeping text formatting when referencing a text cell Posty General Discussion 4 July 22nd, 2004 02:39 PM
How do I get text in cell a depending on text in cell b? Frank Kabel Worksheet Functions 3 March 30th, 2004 03:31 PM
Do you have what it takes... Frank Kabel Worksheet Functions 1 February 22nd, 2004 08:30 PM
if statement - text / blank cell jester Worksheet Functions 5 November 3rd, 2003 01:28 AM


All times are GMT +1. The time now is 11:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.