+ Reply to Thread
Results 1 to 4 of 4

If cell contains text then different cell will contain another text based on another text

  1. #1
    Registered User
    Join Date
    01-27-2016
    Location
    philly
    MS-Off Ver
    2013
    Posts
    6

    If cell contains text then different cell will contain another text based on another text

    Im trying to create a formula

    Page 1
    Employees Pay Rate
    joe 12
    steve 15
    fred bob 17


    Page 2

    Employee Payrate

    If cell a2 has joe then pay rate would be 12, if cell a2 has steve than payrate would be 15 and so on.


    How do i figure this out?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: If cell contains text then different cell will contain another text based on another t

    Use this formula in B2 of the second sheet:

    =IFERROR(VLOOKUP(A2,Sheet1!A:B,2,0),"not found")

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-27-2016
    Location
    philly
    MS-Off Ver
    2013
    Posts
    6

    Talking Re: If cell contains text then different cell will contain another text based on another t

    Perfect!!! exactly what i was looking for

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: If cell contains text then different cell will contain another text based on another t

    That's good to hear.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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: 3
    Last Post: 12-03-2014, 05:43 PM
  2. [SOLVED] Adding text to a cell based on specific text characters in another cell
    By JohnnyBoyxxx in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-29-2014, 06:03 PM
  3. [SOLVED] Change text color of selected cells based on a text value of another cell
    By JNEWBURY2280 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-09-2014, 11:26 PM
  4. [SOLVED] Need to search cell for text string and paste text in based on finding
    By roland77 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-29-2014, 08:56 PM
  5. Replies: 3
    Last Post: 03-28-2014, 07:04 AM
  6. Macro to automatically convert prt scr image-based text to real text in cell
    By jasonfromchico in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2014, 02:27 PM
  7. Replies: 2
    Last Post: 11-29-2012, 11:27 AM

Tags for this Thread

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