+ Reply to Thread
Results 1 to 8 of 8

Help in deleting/formating data

  1. #1
    Registered User
    Join Date
    07-06-2021
    Location
    Bangalore.India
    MS-Off Ver
    Microsoft365
    Posts
    3

    Help in deleting/formating data

    Hi All

    I need help with below.
    I get raw data as attached in text format (Sheet1), i need to convert it to excel.

    I have to retain devices name i.e which does not start with #, I have tried to split the data using text to column even then its tedious to filter out as raw data is not in a structure.
    I need just the devices to be filtered out to column A, appreciate if someone can help me.

    Apologize if this is just basic, i am new to excel and a beginner.


    Actual raw data has over 5000 rows to scrub.

    Appreciate any help!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: Help in deleting/formating data

    Welcome to the forum.

    So where in the sample workbook did you mock up what you are aiming for?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Help in deleting/formating data

    Since you are using Excel 365, you have the option of using Power Query which is called Get and Transform Data in your version. It is located on the Data Tab.

    1. Highlihgt your data table.
    2. Select From Table or Range in PQ
    3. In the PQ Editor, select Add Column
    4. In the new window type if Text.StartsWith([1],"#") then null else [1])
    5. highlight the new column called Custom and filter by unchecking the null box

    Here is the Mcode from that action

    Please Login or Register  to view this content.
    Your sample data results

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    1
    1 4 42 5 Custom
    2
    JK000004377
    30
    1600
    JK000004377
    3
    JK000004220
    30
    1600
    JK000004220
    4
    jk000004223
    30
    1600
    jk000004223
    5
    ggaegeg
    30
    1600
    ggaegeg
    6
    jk000003969
    30
    1600
    jk000003969
    Sheet: Table1

    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.

    and finally the file is attached.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    07-06-2021
    Location
    Bangalore.India
    MS-Off Ver
    Microsoft365
    Posts
    3

    Re: Help in deleting/formating data

    Thank you for the quick response.

    I need the output to be just device names, essentially nothing that starts from # or the numbers 30 or 1600.

    like below

    JK000004377
    JK000004220
    jk000004221
    jk000004223
    ggaegeg
    gB87044C58
    bifnamt1
    barcxsbanm

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: Help in deleting/formating data

    Go with Alan's suggestion - it's what I was going to offer, too.

  6. #6
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Help in deleting/formating data

    Maybe this formula: =UPPER(TRIM(SUBSTITUTE(A2,"#","")))
    But as Ali said, it is difficult without mock up data.
    Click the * to say thanks.

  7. #7
    Registered User
    Join Date
    07-06-2021
    Location
    Bangalore.India
    MS-Off Ver
    Microsoft365
    Posts
    3

    Re: Help in deleting/formating data

    Alan, appreciate quick help. However the solution works for column 1. Device names that i would need are scattered to column 2,3 and 4 as well.

    example row 5,7,10,11 to name a few (sheet 2 of sample attached).

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Help in deleting/formating data

    There is no Sheet 2 attached. Please provide a mocked up solution so that we understand exactly what you are asking for.

+ 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. data formating
    By pmugagga in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2013, 05:07 AM
  2. Data formating with VBA
    By sroysroy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-10-2013, 12:07 AM
  3. Data formating with VBA
    By sroysroy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-08-2013, 07:03 AM
  4. Formating fetched data from web in VBA
    By devilhack in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-20-2012, 06:09 AM
  5. Conditional Formating - Adding & Deleting Rows
    By ems.payroll in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-10-2008, 03:03 PM
  6. Deleting Raw Data = Deleting Pivot Tables?
    By taltalk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2008, 07:41 AM
  7. formating data once
    By Nicole Seibert in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2006, 03:35 PM
  8. Install dates formating using conditional formating?
    By Jerry Eggleston in forum Excel General
    Replies: 2
    Last Post: 11-09-2005, 01:49 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