+ Reply to Thread
Results 1 to 7 of 7

Formula to change exsiting name to new name

  1. #1
    Forum Contributor
    Join Date
    09-02-2010
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    283

    Formula to change exsiting name to new name

    Hi Everyone,

    I have an column show as attached image. This list is about 1000++ name of Room.
    Can excel formula change the Room consist of "CW" to "CWP", then others will be same room as Name.

    Attachment 386647
    Attached Images Attached Images

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Formula to change exsiting name to new name

    Here!

    Assuming the 1st formula will go in Cell C2

    =IF(ISNUMBER(SEARCH("CW",B2)),"CWP",B2)
    Cheers!
    Deep Dave

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: Formula to change exsiting name to new name

    Change cell reference B2 to your actual cell Reference


    =IF(ISNUMBER(SEARCH("CW",B2)),"CWP",B2)


    Drag it down...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Forum Contributor
    Join Date
    09-02-2010
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    283

    Re: Formula to change exsiting name to new name

    WOAH!!! your formula are excellent!

    Could you help to explain it to me?
    ISNUMBER means what?

    Search CW at B2 then result = CWP, the rest copy?

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: Formula to change exsiting name to new name

    Okay, I will explain it for you

    In Excel we have to read the excel formula's from Inside to Out

    SEARCH(find_text,within_text)
    SEARCH("CW",B2)

    Search will return the position of the text. If the value of find_text is not found, the #VALUE! error value is returned.

    using IsNumber() to check whether the returned value of Search() is number or error value. IsNumber() will result True if it is number and False if Search() returns Error.

    If(Logical Part (i.e) True/False,Value if True,Value if False)

    =IF(ISNUMBER(SEARCH("CW",B2)),"CWP",B2)

  6. #6
    Forum Contributor
    Join Date
    09-02-2010
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    283

    Re: Formula to change exsiting name to new name

    Thanks for your explaination.
    I really appreciated it.

  7. #7
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Formula to change exsiting name to new name

    Glad it Helps!

+ 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] add an "iserror" to an exsiting formula
    By Kangaroo_Pouch in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2013, 06:07 AM
  2. [SOLVED] Copy & paste source worksheet into exsiting tab in another workbook
    By Webbers in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-01-2012, 08:48 AM
  3. VBA code to Add data to exsiting worksheet
    By jonesaa05 in forum Excel General
    Replies: 7
    Last Post: 10-14-2005, 09:05 AM
  4. [SOLVED] How can I get data from one worksheet into another exsiting worksh
    By Sabrina in forum Excel General
    Replies: 2
    Last Post: 08-30-2005, 04:05 PM
  5. Adding another formula to and Exsiting Formula
    By craigwojo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-16-2005, 02:20 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