+ Reply to Thread
Results 1 to 6 of 6

Distribute several unique data from one cell to multiple cells

  1. #1
    Registered User
    Join Date
    10-11-2015
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    2

    Distribute several unique data from one cell to multiple cells

    What I'm trying to do is to distribute the date of encoding of several reports that I had merged in Excel into a set of columns where the dates are shown to each row of data. Here's a screenshot of the raw file:

    1.jpg

    I'm trying to make it like this one:

    2.jpg

    Any idea?

    I'm also attaching the sample excel file here.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Distribute several unique data from one cell to multiple cells

    Hi,

    Welcome to the forum.

    See the attached file. I have used helper columns to get the date cells repeated & used the following formula.

    In A12:

    {=IFERROR(INDEX(A$1:A$8,SMALL(IF(A$1:A$8<>"",ROW(A$1:A$8)),ROW($A1))),"")}

    The above is an array formula and needs to be confirmed by pressing CTRL+SHIFT+ENTER


    In B12:
    =VLOOKUP($A12,$A$1:$E$8,COLUMN(),0)
    drag the above formula to the right and down the cells.


    In D12:
    =IFERROR(VLOOKUP($A12,$A$1:$E$8,COLUMN()+1,0),"")
    drag this down the cells.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-11-2015
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    2

    Re: Distribute several unique data from one cell to multiple cells

    Hi cbatrody!

    Thank you so much for helping. Although your method is quite complicated-- it works great and seamless.

    I might stay in this forum to interact with you guys. I'm an auditor and am working for data analytics stuff.

    Thank you so much once again.

    Regards,

    Frances

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Distribute several unique data from one cell to multiple cells

    Another solution without helper columns:

    A14:
    =IFERROR(INDEX($A$4:$A$11,SMALL(IF($A$4:$A$11<>"",ROW($A$4:$A$11)-ROW($A$4)+1,""),ROWS($1:1))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    B14:
    =IFERROR(VLOOKUP(A14,$A$4:$C$11,2,0),"")

    C14:
    =IFERROR(VLOOKUP(A14,$A$4:$C$11,3,0),"")

    D14:
    =IFERROR(LOOKUP(MATCH(A14,$A$3:$A$11,0),IF($C$3:$C$11>100,ROW($C$3:$C$11)-ROW($C$3)+1,""),$C$3:$C$11),"")
    Ctrl-shft-enter
    Attached Files Attached Files
    Quang PT

  5. #5
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Distribute several unique data from one cell to multiple cells

    Quote Originally Posted by bebo021999 View Post
    Another solution without helper columns:
    See the below image, the formula will fail if there is a bigger number in column C:
    Attached Images Attached Images

  6. #6
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,289

    Re: Distribute several unique data from one cell to multiple cells

    For the first three columns by applying the formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] Distribute Data Evenly Among n Cells
    By TimBZKK in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-17-2018, 02:02 AM
  2. How to spread or distribute data across cells
    By ssanders in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-14-2012, 05:58 PM
  3. Replies: 3
    Last Post: 10-29-2012, 09:36 PM
  4. [SOLVED] Distribute the data from Single Column to multiple Columns
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-29-2012, 02:11 PM
  5. Populate Multiple Cells w/ Unique Data from One Identifier
    By econlan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-02-2011, 08:33 PM
  6. distribute data in single sheet to multiple sheets
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-23-2009, 08:33 PM
  7. Distribute Data to Multiple Worksheets
    By m.galbraith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-16-2008, 09:18 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