+ Reply to Thread
Results 1 to 7 of 7

Replacing Values based on Speicific Text

Hybrid View

  1. #1
    Registered User
    Join Date
    02-16-2016
    Location
    Qatar
    MS-Off Ver
    Office 365
    Posts
    12

    Post Replacing Values based on Speicific Text

    Hi everyone,

    I'm looking for a formula to replace cells value based on specific text, example:
    Search A1 for "1" then replace A2 value to "F".

    Thanks in Advance.Capture.PNG
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-16-2016
    Location
    Qatar
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Replacing Values based on Speicific Text

    I did this simple formula: =IF(A1=1,"F","")

    But I'm looking for more professional one.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,515

    Re: Replacing Values based on Speicific Text

    Use a "lookup" table containing numbers and the corresponding text. Or is the sample a simplified version of something more complex.

    =VLOOKUP(D1,$A$1:$B$10,2,0)

    See attached
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-16-2016
    Location
    Qatar
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Replacing Values based on Speicific Text

    Thank you John,

    Acutely, I need to replace B2 value if A2 equal to "1" with a new value "F".

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,515

    Re: Replacing Values based on Speicific Text

    So how do we determine the new value?

  6. #6
    Registered User
    Join Date
    02-16-2016
    Location
    Qatar
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Replacing Values based on Speicific Text

    I have to specify it like "F".

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,515

    Re: Replacing Values based on Speicific Text

    Then if you cannot have a table of values, then you will have to "hard-code" them as per your IF formula.
    Last edited by JohnTopley; 03-12-2016 at 06:38 AM.

+ 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. [SOLVED] Count speicific string and get related column
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2015, 06:32 AM
  2. Replacing a list of values in just one column with certain text
    By ljeanbeans in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-22-2014, 03:43 AM
  3. [SOLVED] Replacing formula values with text/raw values
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-08-2013, 12:36 PM
  4. Replies: 9
    Last Post: 04-18-2013, 09:27 AM
  5. copy text to rows without replacing values already there
    By siddowens123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2012, 03:32 PM
  6. Replacing lots of values wih text
    By wondering2 in forum Excel General
    Replies: 2
    Last Post: 12-23-2010, 08:43 PM
  7. Replacing values based on a set list
    By Lee in forum Excel General
    Replies: 3
    Last Post: 02-02-2005, 11:06 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