Minhaz
Minhaz

Reputation: 1

Excel Logic based Result

What formula should I use to assign a value to column B depending on the value of column A?

Column A data looks like this:

12345
23456
34567

What logic should I use here?

Upvotes: 0

Views: 55

Answers (2)

rwilson
rwilson

Reputation: 2145

I would use the CHOOSE function here. In B1 place this formula:

=CHOOSE(LEFT(A1),"Alpha","Beta","Gamma")

enter image description here

Upvotes: 2

GeorgDangl
GeorgDangl

Reputation: 2192

In B you could have: IF(LEFT(A1;1)=1;"Alpha";IF(LEFT(A1;1)=2;"Beta";"Gamma"))

Upvotes: 0

Related Questions