+ Reply to Thread
Results 1 to 3 of 3

replace or substitute multiple values

  1. #1
    Registered User
    Join Date
    09-06-2015
    Location
    New York, NY
    MS-Off Ver
    office live
    Posts
    9

    replace or substitute multiple values

    column c
    Orange
    blue
    yellow

    Need Column d to translate
    Replace orange with 45
    replace blue with 65
    Replace yellow with 88

    whats the easiest function to handle this

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: replace or substitute multiple values

    maybe

    =LOOKUP(C1,{"Orange","Blue","Yellow"},{65,45,88})


    or

    =CHOOSE(MATCH(C1,{"Orange","Blue","Yellow"},0),45,65,88)


    put on D1 and copied down
    Last edited by azumi; 09-06-2015 at 10:56 PM.

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

    Re: replace or substitute multiple values

    Hi there. Here's one way:

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"orange",45),"blue",65),"yellow",88)
    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

+ 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. Replace/Substitute Function
    By tushararora in forum Excel General
    Replies: 3
    Last Post: 09-10-2015, 01:14 AM
  2. [SOLVED] Tricky SUBSTITUTE or REPLACE
    By bibu in forum Excel General
    Replies: 7
    Last Post: 03-16-2014, 01:38 PM
  3. [SOLVED] Substitute a text string with multiple values
    By dihris in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-03-2012, 03:25 PM
  4. [SOLVED] substitute/replace until
    By JanRaven in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-02-2012, 12:03 PM
  5. Substitute and sum values from multiple cells
    By j.a.mcguire in forum Excel General
    Replies: 1
    Last Post: 07-08-2010, 03:45 PM
  6. Replace or substitute formula maybe? Not sure what one to use?
    By essexpoker in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-24-2008, 11:25 AM
  7. [SOLVED] Substitute/Replace
    By Viktor Ygdorff in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-17-2006, 07:40 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