#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default If Formula

I have a list of Branches
Example:

Birmingham
Tuscaloosa (Satellite)
Irondale (Satellite)
Pelham (Satellite)
Richmond

I need to seperate all the ones are Satellites to ones that are not.
I tried an IF statement in the colum next to it.
=IF(B2=("*"&"(Satellite)"),1,2) to code them 1 if it is true and 2 if it not.
It needs a wildcard and the * does not work for some reason.
Is this the right formual or is there a different one that I should be using?
I tested and it works only if the cell has exactly what I have in the cell.
Can anyone help me out.
--
Josh Frazier
Communications Manager

Brooke Chase Associates, Inc.
1543 Second Street €¢ Suite 201 €¢ Sarasota, FL 34236
Phone (941) 358-3111 €¢ Fax (941) 358-3311



  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default If Formula

=IF(RIGHT(A1,11)="(Satellite)",1,2)

Vaya con Dios,
Chuck, CABGx3



"Joshua Frazier" wrote:

I have a list of Branches
Example:

Birmingham
Tuscaloosa (Satellite)
Irondale (Satellite)
Pelham (Satellite)
Richmond

I need to seperate all the ones are Satellites to ones that are not.
I tried an IF statement in the colum next to it.
=IF(B2=("*"&"(Satellite)"),1,2) to code them 1 if it is true and 2 if it not.
It needs a wildcard and the * does not work for some reason.
Is this the right formual or is there a different one that I should be using?
I tested and it works only if the cell has exactly what I have in the cell.
Can anyone help me out.
--
Josh Frazier
Communications Manager

Brooke Chase Associates, Inc.
1543 Second Street €¢ Suite 201 €¢ Sarasota, FL 34236
Phone (941) 358-3111 €¢ Fax (941) 358-3311



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default If Formula

Try =IF(ISERROR(FIND("Satellite",A1)),2,1)

Dave
--
Brevity is the soul of wit.


"Joshua Frazier" wrote:

I have a list of Branches
Example:

Birmingham
Tuscaloosa (Satellite)
Irondale (Satellite)
Pelham (Satellite)
Richmond

I need to seperate all the ones are Satellites to ones that are not.
I tried an IF statement in the colum next to it.
=IF(B2=("*"&"(Satellite)"),1,2) to code them 1 if it is true and 2 if it not.
It needs a wildcard and the * does not work for some reason.
Is this the right formual or is there a different one that I should be using?
I tested and it works only if the cell has exactly what I have in the cell.
Can anyone help me out.
--
Josh Frazier
Communications Manager

Brooke Chase Associates, Inc.
1543 Second Street €¢ Suite 201 €¢ Sarasota, FL 34236
Phone (941) 358-3111 €¢ Fax (941) 358-3311



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 222
Default If Formula

Probably best to use RIGHT to extract the data, testing if there is a bracket
at the end i.e. =IF(RIGHT(B2,1)=")",1,2)

"Joshua Frazier" wrote:

I have a list of Branches
Example:

Birmingham
Tuscaloosa (Satellite)
Irondale (Satellite)
Pelham (Satellite)
Richmond

I need to seperate all the ones are Satellites to ones that are not.
I tried an IF statement in the colum next to it.
=IF(B2=("*"&"(Satellite)"),1,2) to code them 1 if it is true and 2 if it not.
It needs a wildcard and the * does not work for some reason.
Is this the right formual or is there a different one that I should be using?
I tested and it works only if the cell has exactly what I have in the cell.
Can anyone help me out.
--
Josh Frazier
Communications Manager

Brooke Chase Associates, Inc.
1543 Second Street €¢ Suite 201 €¢ Sarasota, FL 34236
Phone (941) 358-3111 €¢ Fax (941) 358-3311



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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


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