MohaMoney
MohaMoney

Reputation: 13

Add Multiple prefixes in order in Excel

I don't know a lot in Excel but I want to add Multiple prefixes in Excel and let them loop until the number of cells ends.

I used this Formula, but it picks them randomly:

(=CHOOSE(RANDBETWEEN(1, 3),"DR. ","SM. ","FG. ")&" "&A1

Example output I want :

Input: ---------> Output:
A                  DR. A
B                  SM. B
C                  FG. C
D                  DR. D
E                  SM. E
F                  FG. F

Upvotes: 0

Views: 144

Answers (1)

Mayukh Bhattacharya
Mayukh Bhattacharya

Reputation: 27363

You may try this, using CHOOSE() & MOD()

FORMULA_SOLUTION

• Formula used in cell B1

=CHOOSE(MOD((ROW()-1),3)+1,"DR. ","SM. ","FG. ")&A1

Or, if one has access to O365 and presently in Insiders, Beta Channel Version, may try this as well, using CHOOSECOLS()

FORMULA_SOLUTION

• Formula used in cell B1

=CHOOSECOLS({"DR. ","SM. ","FG. "},MOD((ROW()-1),3)+1)&A1

Upvotes: 1

Related Questions