A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Dear Neil,
Good day, and thank you for reaching out to the Q&A Forum. You are on the right track, this can be accomplished using either a nested IF formula or the SWITCH function. Here are both options for you:
Option 1: Nested IF
Enter the following formula in cell B9:
=IF(I6="","Select Unit",IF(I6="AS","Assemblies",IF(I6="EA","EACH",IF(I6="PI","Installs","Select Unit"))))
The formula checks the value in I6 in this order:
- Blank > Select Unit
- AS > Assemblies
- EA > EACH
- PI > Installs
- Anything unexpected > Select Unit
Excel supports nested IF functions, though long nested formulas can become harder to maintain over time.
Option 2: SWITCH
If your version of Excel supports the SWITCH function, this version is easier to read:
=SWITCH(I6,"AS","Assemblies","EA","EACH","PI","Installs","Select Unit")
SWITCH compares the value in I6 against each listed acronym and returns the corresponding description. The final "Select Unit" is the default result, so it covers both a blank cell and any value not listed.
I hope this helps. Please let me know if you need anything else.
If the answer is helpful, please click "Yes" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.