+ Reply to Thread
Results 1 to 2 of 2

Move data to new columns when cell in Column A is blank

  1. #1
    Registered User
    Join Date
    06-28-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Move data to new columns when cell in Column A is blank

    Dear all,

    (FYI, I am currently using Excel 2003)

    I have been sent a rather rubbish spreadsheet and I’m not sure how to sort/filter without losing data. Please can someone help?

    A slimmed-down example of the sort of data I have to deal with is attached.

    The actual file I have been sent consists of nearly 15,000 rows (although those rows only relate to approx 5,000 individuals).

    A little bit of background:
    The data are for junior doctors in training. Drs can have multiple accreditation (meaning that they can train in more than one specialty).

    What has happened is that for each Dr with multiple accreditation, their name (column A), code (column B) and main specialty (column C) are on one row, whereas their subsequent specialties appear on the row(s) below their record.

    As you can see the data are not uniform – some Drs will have 1 specialty, others 2, still others 3, etc…

    If I try to sort it I will jumble the data, so I want to move the additional specialty data into new columns (called Specialty_2, Specialty_3, on my example sheet).

    What I need is some code that tells my sheet, for example:

    “If there cell A3 is blank, then move data from cell C3 into cell D2; and if there is still no data in the next record in column A (in this case, cell A4) then move data from cell C4 into E2, etc...”

    Please can someone help?

    Thanks and best wishes,

    Chris

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Move data to new columns when cell in Column A is blank

    In D2, =IF(AND(ISTEXT($A2), ISBLANK(A3), ISTEXT(C3)), C3, "")

    In E2, =IF(AND(ISTEXT($A2), ISBLANK(A4), ISTEXT(C4)), C4, "")

    Copy both formulas down, then copy both columns and replace with values, then sort the whole table, then delete unneeded rows.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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