ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If Formula (https://www.excelbanter.com/excel-discussion-misc-queries/122820-if-formula.html)

Joshua Frazier

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




CLR

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




Dave F

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




bigwheel

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




Joshua Frazier

If Formula
 
Thanks Both ways work
from Dave and from Bigwheel
--
Josh Frazier
Communications Manager

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





"Dave F" wrote:

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





All times are GMT +1. The time now is 02:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com