Auto fill Dept column based on selection in Category column

Stacy Maplesden
edited 01/07/21 in Formulas and Functions

Hi - I'm very new to smartsheet and formulas so I apologize if this is a really basic question. I have been researching how to have my DEPT column autofill the correct department depending on what is filled in the Category column but not having any success. The Category is selected by the end user that is reporting an issue on a form (drop down field). This category column is automatically filled on the sheet when the form is submitted. I'd like the Dept column to fill in the appropriate department that matches the category when submitted. This is the sheet that the form feeds into:

This is my list of categories and associated departments which is on a different sheet, as a reference.

thanks

Best Answers

  • Bassam Khalil
    Bassam Khalil ✭✭✭✭✭✭
    Answer ✓

    Hi @Stacy Maplesden

    Hope you are fine, you can do that in a very simple way by using the Vloockup function

    =VLOOKUP(Dept@row, Category:Dept, 2) when the end user submits his entry the Vloockup automatically will search for you in the helper table and get the correct dept for you.

    create a helper table contain the Category and related Dept for each category and you can expand if you have a new entry in the future.

    PMP Certified

    bassam.khalil2009@gmail.com

    ☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭
    Answer ✓

    Hi @Stacy Maplesden

    To add to Bassam's excellent advice/answer.

    Here's the formula when the information is on another sheet, and I'd also recommend that you convert the formula so it's a Column Formula. Then it will always auto-fill for each form submission.

    =VLOOKUP(CATEGORY@row, {Dept. Reference Sheet, 2, 0)
    

    More information about Column Formulas.


    Did that work?

    I hope that helps!

    Have a fantastic day & Happy New Year!

    Best,

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!