Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 53
Default If statement query

In a column i have some values starting with "TBA, AAA, BBB 123" . If the
string begins with TBA, then i want to return TBA in another cell. else i
want to return the value "Existing". Is there a function i can use to do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default If statement query

Try this:

IF(LEFT(TRIM(A1),3)="TBA","TBA","Existing")

Hope this helps.

Pete

On Apr 20, 9:38 am, Rajula wrote:
In a column i have some values starting with "TBA, AAA, BBB 123" . If the
string begins with TBA, then i want to return TBA in another cell. else i
want to return the value "Existing". Is there a function i can use to do this?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 53
Default If statement query

Thankyou very much, exactly what i was looking for.

"Pete_UK" wrote:

Try this:

IF(LEFT(TRIM(A1),3)="TBA","TBA","Existing")

Hope this helps.

Pete

On Apr 20, 9:38 am, Rajula wrote:
In a column i have some values starting with "TBA, AAA, BBB 123" . If the
string begins with TBA, then i want to return TBA in another cell. else i
want to return the value "Existing". Is there a function i can use to do this?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default If statement query

Glad it worked for you - thanks for feeding back.

Pete

On Apr 20, 10:36 am, Rajula wrote:
Thankyou very much, exactly what i was looking for.



"Pete_UK" wrote:
Try this:


IF(LEFT(TRIM(A1),3)="TBA","TBA","Existing")


Hope this helps.


Pete


On Apr 20, 9:38 am, Rajula wrote:
In a column i have some values starting with "TBA, AAA, BBB 123" . If the
string begins with TBA, then i want to return TBA in another cell. else i
want to return the value "Existing". Is there a function i can use to do this?- Hide quoted text -


- Show quoted text -



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
IF statement query shakey1181 Excel Discussion (Misc queries) 2 November 8th 06 03:17 PM
IF statement query JaB Excel Worksheet Functions 5 September 27th 06 04:34 PM
Save data retreived from query without saving query Anthony Excel Discussion (Misc queries) 0 January 25th 06 07:17 PM
Microsoft Query rejects "nz" function in Access Query Vaughan Excel Discussion (Misc queries) 0 May 4th 05 05:20 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 04:00 AM.

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"