+ Reply to Thread
Results 1 to 11 of 11

Changing text from one column to another

  1. #1
    Registered User
    Join Date
    07-23-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    7

    Changing text from one column to another

    I'm not sure how to formulate this so ill just paste and explain that way, i have a column that looks as follows:

    Expeditionsärende telefon
    Avbokat kundmöte
    Expeditionsärende telefon
    Bokning
    Expeditionsärende telefon
    Bokning
    Expeditionsärende telefon
    Expeditionsärende F2F
    Genomfört kundmöte Webex
    Avbokat kundmöte
    Avbokat kundmöte
    Expeditionsärende telefon
    Bokning
    Genomfört kundmöte telefon
    Bokning
    Genomfört kundmöte Webex
    Avbokat kundmöte
    Genomfört kundmöte Webex
    Genomfört kundmöte Webex
    Avbokat kundmöte
    Expeditionsärende telefon
    Avbokat kundmöte
    Expeditionsärende telefon


    What i want to do is rename all the "Expedition xxx" to only Expedition, "Genomfört xxx" to Genomfört, but everything else stays the same... any ideas? Also, i need this to be for the whole column, not a range since the data gets larger every week and i want this to happen automatically when i uppdate the data... Any ideas?

    Added info: I need this to be done using a formula and i need the original data intact, so basically copying the one column to a new one with the wanted changes.
    Last edited by alexaskmo; 08-07-2013 at 09:58 AM.

  2. #2
    Registered User
    Join Date
    08-06-2013
    Location
    Cheltenham, England
    MS-Off Ver
    Excel 2013
    Posts
    19

    Re: Changing text from one column to another

    I think the quickest way to do this for static data is by using Find+Replace. You need to press Ctrl+H, enter your text to change, and then the text you want to replace it with.

    Best wishes,

    Zoe

  3. #3
    Registered User
    Join Date
    08-06-2013
    Location
    Cheltenham, England
    MS-Off Ver
    Excel 2013
    Posts
    19

    Re: Changing text from one column to another

    The autocorrect feature under Review tab/ Spelling may also help you, but only if you are typing the data in rather than pasting it in.

    Z

  4. #4
    Registered User
    Join Date
    07-23-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Changing text from one column to another

    Thanks zed, and those solutions are just fine for one time use, but this is a dataset that is updated all the time and this task needs to be done automatically thats why i want a formula to do what im asking above

  5. #5
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Changing text from one column to another

    Hi

    try using below formula in next column where you data is placed, i have considered the data is placed in column A cell 1, hence the formula is in form B1

    =IF(ISERROR(SEARCH("Expedition",A1,1)),A1,IF(SEARCH("Expedition",A1,1)=1,CONCATENATE("Genomfort",RIGHT(A1,LEN(A1)-10)),""))
    Click on * below if you find this helpful

    Thanks,
    A

  6. #6
    Registered User
    Join Date
    07-23-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Changing text from one column to another

    Quote Originally Posted by amy_d2 View Post
    Hi

    try using below formula in next column where you data is placed, i have considered the data is placed in column A cell 1, hence the formula is in form B1

    =IF(ISERROR(SEARCH("Expedition",A1,1)),A1,IF(SEARCH("Expedition",A1,1)=1,CONCATENATE("Genomfort",RIGHT(A1,LEN(A1)-10)),""))
    Okay!! Great start! Still need a bit of help. Im changing all the expedition as well as all the genomfört... Now only the expedition are changing. Also i get a "#VALUE!" when it is expedition F2F, how do i adjust that?

    Thanks a bunch Amy!! Ill copy paste what the result was and how i want it to look!

    1.JPG

    WHAT I WANT:

    2.JPG
    Attached Images Attached Images
    Last edited by alexaskmo; 08-09-2013 at 08:42 AM.

  7. #7
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Changing text from one column to another

    Hi alexaskmo,

    use below formula to achieve result as per image 2

    =IF(ISERROR(SEARCH("Expedition",A1,1)),IF(ISERROR(SEARCH("Genomfört",A1,1)),A1,"Genomfört"),"Expedition")

  8. #8
    Registered User
    Join Date
    07-23-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Changing text from one column to another

    Okay i need som help, my excel asks for ";" seperators and everyone on this forum seems to use "," Help me find the right seperators please, i only get wrong formula results.

  9. #9
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Changing text from one column to another

    This is because of difference in language, Check if this works for you

    =IF(ISERROR(SEARCH("Expedition";A1;1));IF(ISERROR(SEARCH("Genomfört";A1;1));A1;"Genomfört");"Expedition")

  10. #10
    Registered User
    Join Date
    07-23-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Changing text from one column to another

    Amy, Thanks a million!! you just solved my problem!! would you mind explaining the coding and what it does for future use?

    Again!! THANKS

    Oh!! also, is there a way for excel to understand that i want the formula to e applied to the whole of the new column? (for when the data gets larger so that it's done automatically. Thanks again!

  11. #11
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Changing text from one column to another

    it is simple if function works on logical terms

    IF(your logical test, value if true then what to do , value if false then what to do)

    and to apply it to other column put $ sign to A1 whereever you find them in column Like $A$1

+ 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. Keyboard shortcut to get to the next changing text in a column
    By Helal in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-26-2012, 09:14 AM
  2. [SOLVED] changing the color on range in a column when text is in a certain row
    By Romulo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2012, 12:13 PM
  3. Changing dates to text using VBA & deleting a column
    By BarnardSteyn in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-16-2012, 09:38 AM
  4. Text to Column, Changing date format
    By danny2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-25-2007, 04:40 AM
  5. Changing column size w/o losing text
    By Carrie in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-13-2005, 04:06 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