+ Reply to Thread
Results 1 to 8 of 8

Fixing improperly entered data

  1. #1
    Registered User
    Join Date
    02-28-2015
    Location
    USA
    MS-Off Ver
    Office 2013
    Posts
    2

    Fixing improperly entered data

    Hi everyone, I have been tasked with taking over and maintaining someone else's Excel sheet which has thousands of entries, all of which are not entered properly. The previous person split each entry into 2 rows, which makes the data unsortable. This is how it looks like now:

    IBM 1/1/2015 $10
    Dave
    Google 1/2/2015 $8
    Mike
    Apple 1/3/2015 $20
    John

    I would like to make it look like this:
    Dave IBM 1/1/2015 $10
    Mike Google 1/2/2015 $8
    John Apple 1/3/2015 $20

    How can I go about changing the entire Excel sheet to the format I want without doing it manually each time? That would take forever since there are thousands of entries total. Thanks for your expertise.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Fixing improperly entered data

    does it really look like that ???
    so a row with just the name in
    followed by a row blank

    and the row you want the name to be in - has entries in column A and C

    if so
    insert a column in A

    Assuming row 1 - is a header row and the data starts in row 2

    use
    =IF(AND(B2<>"",D2<>""),B3,"")

    then you can copy down the sheet
    When complete
    next - click on column A
    copy >
    Paste Special > Value
    now you can sort by column A
    and delete all the rows with Just the names in column B
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Fixing improperly entered data

    Can you tell the cell from where your data starts i.e. the very first value of your data....like IBM in your example
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Fixing improperly entered data

    Hi mike and welcome to the forum.

    A simple formula in Column D and then Copy and Paste (Values Only) and sort by date and delete those non date rows should do you.
    Make a copy of your data on a second sheet before working with your real data. Make sure the spacing is correct for all pairs first.

    See the attached for the example.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

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

    Re: Fixing improperly entered data

    You could try something like this:
    Enter this formula in E2 (assuming that your data starts in A2) fill across to column H and fill down. When finished select all the new data, copy and paste VALUES. Now you can sort the data.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Result:
    A
    B
    C
    D
    E
    F
    G
    H
    2
    IBM
    01/01/2015
    10
    IBM
    42005
    10
    Dave
    3
    Dave
    4
    Google
    02/01/2015
    8
    Google
    42006
    8
    Mike
    5
    Mike
    6
    Apple
    03/01/2015
    20
    Apple
    42007
    20
    John
    7
    John


    Result after sort:
    E
    F
    G
    H
    2
    3
    4
    IBM
    42005
    10
    Dave
    5
    Apple
    42007
    20
    John
    6
    Google
    42006
    8
    Mike


    Delete blank rows.
    <---------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

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,291

    Re: Fixing improperly entered data

    Another formula:
    =IF(COUNTA(A2:C2)=3,A3,"")
    And then copy paste specials values and sort.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  7. #7
    Registered User
    Join Date
    02-28-2015
    Location
    USA
    MS-Off Ver
    Office 2013
    Posts
    2

    Re: Fixing improperly entered data

    Thanks everyone, I seem to have my first problem sorted out. The 2nd problem is that some data cells have comments mixed into the the data, and I need to separate it out. For example:
    1/1/2015 Dave $10 IBM, This company is really good, Transaction ID:140588, I mean super good

    And I want to make it like this:
    1/1/2015 Dave $10 IBM This company is really good Transaction ID:140588 I mean super good

    Fortunately, in the cells that have merged information, there are commas where I need to break it into multiple cells.

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

    Re: Fixing improperly entered data

    What is the EXACT form of your raw data?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

+ 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: 5
    Last Post: 10-10-2014, 12:44 PM
  2. VBA Reading Time Value Improperly
    By aloha31 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2013, 10:25 PM
  3. Replies: 8
    Last Post: 01-23-2013, 03:36 AM
  4. Conditional Formatting working improperly
    By esupply in forum Excel General
    Replies: 3
    Last Post: 10-27-2009, 09:31 PM
  5. Macro working improperly when used with multiple worksheets
    By cdroot4383 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2007, 10:14 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