+ Reply to Thread
Results 1 to 3 of 3

Merge, transpose and lookup values.

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    16

    Merge, transpose and lookup values.

    Hello everybody,

    I hope someone could help me with this, either by using a macro or a formula. I really don't think this thing I am struggling with is something very advanced but I can't get it right.

    I attach an example how my data looks like so it will be easier to understand what I am trying to achieve.

    The thing is that I have an Information field in column A. Column B contains a date (ex. 2015-02-25) and column C and further contains clock hour.

    Example:

    A B C D E F ... .... ... ...
    00:00 01:00 02:00 03:00 ... .... ... ...
    1 SomeText 2015-02-25 Value1 Value2 Value3 Value4
    2 SomeText 2015-02-26 Value1 Value2 Value3 Value4

    It can be many rows and the dates in B column is always increasing with one day per row.

    What I want to achieve is the following:

    A B
    SomeText 2015-02-25 00:00
    SomeText 2015-02-25 01:00
    SomeText 2015-02-25 02:00
    SomeText 2015-02-25 03:00
    ...
    ...
    ...

    How can I do this in an easy way?
    The upper part of the example file is exactly how the file that I work with looks like, not a good structure but that is how I get it.

    Greatful for any help!

    Thanks!!!!Merge and Transpose Example.xlsx

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Merge, transpose and lookup values.

    A24: =INDEX($A$4:$A$19,INT((ROW(A1)-1)/24)+1+COUNTBLANK(OFFSET($A$4,0,0,INT((ROW(A1)-1)/24)+1)))
    B24: =INDEX($B$4:$B$19,INT((ROW(A1)-1)/24)+1+COUNTBLANK(OFFSET($A$4,0,0,INT((ROW(A1)-1)/24)+1)))
    C24: =INDEX($C$3:$Z$3,MOD(ROW(A1)-1,24)+1)
    D24: =INDEX($C$4:$Z$19,INT((ROW(A1)-1)/24)+1+COUNTBLANK(OFFSET($A$4,0,0,INT((ROW(A1)-1)/24)+1)),MOD(ROW(A1)-1,24)+1)

    Note, C24 can be simplified if it is always 0:00 to 23:00
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    08-02-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Merge, transpose and lookup values.

    Brilliant!
    Thanks a lot PauleyB :-) Exactly what I was looking 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. [SOLVED] Macro to merge data ( Transpose)
    By mapleleafs2412 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-23-2015, 07:19 AM
  2. [SOLVED] transpose values based on multiple lookup criteria
    By mlttkw in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-10-2013, 02:29 AM
  3. [SOLVED] Transpose and Merge headings
    By sharahoff in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-03-2012, 02:47 PM
  4. [SOLVED] Transpose and Merge Variables into a Single Column
    By greatjobtoday in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-12-2012, 05:44 PM
  5. [SOLVED] I WANT TO TRANSPOSE LINKS, AS WE TRANSPOSE VALUES
    By Umair Aslam in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-22-2005, 09:05 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