• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 77
  • Last Modified:

wild cards in IF statement

is it possible to use an If statement for this

if the first two numbers in string located in cell A1 are 10, then return "CBM", or if first two numbers are 11, return "RBWM"?

A1 might be 1054157521, or 11548977522

Thanks
0
Jagwarman
Asked:
Jagwarman
1 Solution
 
Phillip BurtonDirector, Practice Manager and Computing ConsultantCommented:
=if(left(a1,2)="10","CBM",if(left(a1,2)="11","RBWM",""))
0
 
JagwarmanAuthor Commented:
brilliant thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now