+ Reply to Thread
Results 1 to 4 of 4

Make formulas populate based on the text inserted in cell

  1. #1
    Registered User
    Join Date
    04-08-2021
    Location
    Texas, US
    MS-Off Ver
    2013
    Posts
    4

    Make formulas populate based on the text inserted in cell

    I have attached a spreadsheet and I want to make names appear based on the text entered onto a cell from a different tab. When an employee can’t work for a specific reason, I start by typing in any of the codes in yellow from the Codes tab onto the Week Schedule tab for the day that employee can’t work. I’ve typed down what I am looking for in the tabs and hopefully this issue can be resolved. For the employees replacing them on any specific day, I type the duty number of the employee they’re replacing in their row on the Week Schedule tab and day it’ll happen. On the tabs SS-1, SS-2 and SS-3, I want the names of those employees replacing them to appear in the F column next to the specific employees not working on that day. In the SS-1 tab on March 29th, I typed in Jack, Mary and Lea under the F column. On March 30th in the same tab, I typed in the same names. On the SS-2 tab under March 29th, I typed in matt, lee and jack. On the SS-3 tab under March 29th, I typed in James, Johnny and Daryl. Thanks for the help!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Make formulas populate based on the text inserted in cell

    You could create a table with the Code and teh Description, then use VLOOKUP to return the answer from that table.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-08-2021
    Location
    Texas, US
    MS-Off Ver
    2013
    Posts
    4

    Re: Make formulas populate based on the text inserted in cell

    I've made a table as you suggested but I would need help with the vlookup formula. I've attached an updated spreadsheet.
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Make formulas populate based on the text inserted in cell

    If what you want to find is in A23, this would be the formula you would use...
    B23=VLOOKUP(A23,$A$1:$B$19,2,0)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 11-06-2019, 02:54 AM
  2. Auto Populate Cell when Row is Inserted
    By MrMims82 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2017, 02:03 PM
  3. Replies: 4
    Last Post: 01-03-2016, 02:51 PM
  4. [SOLVED] make xlam store inserted text to itself rather than open workbook
    By ANDREAAS in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-21-2015, 05:30 PM
  5. [SOLVED] How do I make a cell use different formulas based off of another cell's input?
    By soonerexcel73 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-24-2013, 02:23 AM
  6. [SOLVED] Populate a Cell with text based on the result of 2 seperate formulas
    By Medwards73 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2012, 08:56 AM
  7. Replies: 2
    Last Post: 05-04-2012, 10:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1