+ Reply to Thread
Results 1 to 3 of 3

Unable to convert data to text to column

  1. #1
    Registered User
    Join Date
    09-30-2015
    Location
    india
    MS-Off Ver
    7
    Posts
    1

    Unable to convert data to text to column

    Dear All,

    Each cell has a long text value separated with ;. { sheet attached }

    I need to fetch source ip, alarm type & alarm event identifier from each row so that i can prepare my work sheet.

    Sample output needed :-

    SOURCE_IP=152.17.91.12;ALARM_TYPE=Processed;ALARM_EVENT_IDENTIFIER=ALERT_JOB_DTV-PURGE:dtv-purge:Job Failures.;
    SOURCE_IP=134.19.77.5;ALARM_TYPE=Processing;ALARM_EVENT_IDENTIFIER=ALERT_JOB_DTV-PURGE:dtv-purge:Job Failures.;

    Please help, so that i can get output as above from the attached file and I can use text to column delimited by ;.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-11-2014
    MS-Off Ver
    Office 2003, 2007 & 2010
    Posts
    119

    Re: Unable to convert data to text to column

    Hey Ruchika,

    Depends how you want to go about it to be honest, an easy way to do it (assuming your structure doesn't change) is do the following:

    Put the headers of the information you require in cells B1:D1 (so B1 would contain SOURCE_IP, C1 would contain ALARM_TYPE and D1 would contain ALARM_EVENT_IDENTIFIER) and then put the below formula in cell B2 and drag it across to D2 and copy down.

    Please Login or Register  to view this content.
    This will extract the information from the start of your header to the following semi-colon. Just use a concatenate formula (or even more crudely)
    Please Login or Register  to view this content.
    in cell E2 and you have your result string.

    Edit Just to caveat this though, it will only return the first 255 characters of a item, i'm not sure of the actual character limit in the MID function, so someone more learned might want to wade in and correct me, but I'm sure you can just up the 255 number at the end of the function if you require it
    Last edited by AranDG; 09-30-2015 at 10:04 AM.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Unable to convert data to text to column

    In B2 enter this formula and fill down to extract the SOURCE_IP=
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In C2 enter this formula and fill down to extract ALARM_EVENT_IDENTIFIER=....
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Replies: 43
    Last Post: 05-02-2015, 02:52 AM
  2. [SOLVED] How to convert all data in column from text to numbers
    By meechie in forum Excel General
    Replies: 2
    Last Post: 08-20-2012, 02:23 PM
  3. [SOLVED] How to convert contents of column from numeric data type to text
    By moondaddy in forum Excel General
    Replies: 6
    Last Post: 04-29-2006, 07:00 PM
  4. Replies: 9
    Last Post: 10-31-2005, 08:05 PM
  5. [SOLVED] How to convert columns of data to one column of text
    By devlkat in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-06-2005, 12:06 PM
  6. [SOLVED] How to convert columns of data to one column of text
    By devlkat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-03-2005, 09:06 PM
  7. [SOLVED] convert column data into text
    By Charlie in forum Excel General
    Replies: 1
    Last Post: 01-29-2005, 09: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