+ Reply to Thread
Results 1 to 5 of 5

Return value with text

  1. #1
    Registered User
    Join Date
    09-19-2016
    Location
    Emmeloord, Netherlands
    MS-Off Ver
    Microsoft Office 365 ProPlus 16.0.6741.2063
    Posts
    2

    Return value with text

    Hi,

    I am hoping somebody can help me with a formula for what I would like to achieve. I will try to explain what I am trying to do.

    We use Accountview at work and when I generate a report for the contracts, it will generate an Excel file which uses the PM coding instead of the names. Each code represents a specific program manager within the company. I added an extra column which should be filled with the name of the program manager instead of the code. I also created a reference table which shows the matching name for each code. What formula do I have to use in order to have the matching program manager name? To make it more clear I attached an example document.

    Regards,
    Kirsten
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Return value with text

    In E3, copied down:

    =INDEX($K$3:$K$6,MATCH(D3+0,$J$3:$J$6,0))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Return value with text

    Format cells as General. Not text. Text won't recognize number 18 same as text "18".

    Then use:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can add more data in table below.
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Return value with text

    or convert the text in D3 downwards from TEXT to General and omit the +0 from the formula, above. Best NOT to do this if there can be leading zeros in the PM code.

  5. #5
    Registered User
    Join Date
    09-19-2016
    Location
    Emmeloord, Netherlands
    MS-Off Ver
    Microsoft Office 365 ProPlus 16.0.6741.2063
    Posts
    2

    Re: Return value with text

    Thank you all. I managed to get it done.

    Mission accomplished

+ 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. If cell contains certain text and certain text then return predefined text
    By fuzzhead in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-25-2014, 02:18 PM
  2. [SOLVED] How to match a cell with text with a range of text and return own text
    By ec4excel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-16-2014, 11:07 AM
  3. Formula to find and return text string within a cell full of text strings
    By LightingPop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2013, 11:45 PM
  4. [SOLVED] function IF to return text based if text contains exact text
    By in nomine noctis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2013, 06:25 AM
  5. Replies: 2
    Last Post: 09-07-2013, 07:50 PM
  6. If cell contains text1, text2 or text 3 return this text, otherwise return X
    By bukmanodrama in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2013, 09:24 AM
  7. Replies: 7
    Last Post: 01-24-2013, 06:55 PM

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