+ Reply to Thread
Results 1 to 7 of 7

Transposing irregular data separated until date is found

  1. #1
    Registered User
    Join Date
    02-02-2017
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    3

    Question Transposing irregular data separated until date is found

    Hi all,

    I've been searching a lot, but could not find a solution for the specific problem I have.

    I have a long list of data, in which a date is followed by an irregular amount of text strings in the following form:

    Date1
    Text1
    Text2
    Text3
    Date2
    Text4
    Date3
    Text5
    Text6
    ....

    I would like to transpose this data, so that it is displayed in rows always beginning with a date and the following text elements in columns until the next date is found:

    Date1 Text1 Text2 Text3
    Date2 Text4
    Date3 Text5 Text6

    I hope you can point me in the right direction on how to do this.

    Thanks in advance

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Transposing irregular data separated until date is found

    Do the text entries ever start with a number?

    If not, you could just scan down the column with an If left$(range("whatever").value, 1) > 0 then.... and then it's just a case of moving cell entries around and removing the empty rows.

  3. #3
    Registered User
    Join Date
    02-02-2017
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    3

    Re: Transposing irregular data separated until date is found

    The date is always in a form like "12.01." and the text strings never have a number in them.

    Could you elaborate a bit on your idea, this sounds like it might work.

  4. #4
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Transposing irregular data separated until date is found

    This will work if your "Dates" are true dates (not text)
    NB:- Results start "C1"
    Please Login or Register  to view this content.
    Regards Mick

  5. #5
    Registered User
    Join Date
    02-02-2017
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    3

    Re: Transposing irregular data separated until date is found

    Thanks Mick for the quick help!!! This works like a charm.

    Tobias

  6. #6
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Transposing irregular data separated until date is found

    You're welcome

  7. #7
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,256

    Re: Transposing irregular data separated until date is found

    Please Login or Register  to view this content.
    Last edited by daboho; 02-02-2017 at 04:25 PM.

+ 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: 16
    Last Post: 12-04-2017, 04:53 PM
  2. Transposing irregular repetetive data
    By Braedos in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-13-2016, 01:41 AM
  3. Transposing irregular repetitive data
    By dctipster in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-08-2016, 12:01 PM
  4. Sorting by date for an irregular date format
    By needhalp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-14-2014, 04:20 PM
  5. [SOLVED] Copying a row down, transposing a list of comma separated items into those new rows
    By HorsePop in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-08-2013, 07:10 AM
  6. [SOLVED] Transposing Groups of Data separated by blank rows
    By scrchrds in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2010, 03:31 PM
  7. sorting slightly irregular date fields in a pivot table
    By tdoggette in forum Excel General
    Replies: 1
    Last Post: 07-21-2009, 08:56 AM

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