Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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 :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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

>Solution :

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
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading