+ Reply to Thread
Results 1 to 11 of 11

Populate 2-column data to multiple columns based on one condition

  1. #1
    Forum Contributor
    Join Date
    11-21-2013
    Location
    KL
    MS-Off Ver
    Excel 2010
    Posts
    168

    Populate 2-column data to multiple columns based on one condition

    Hi,

    I have a 2-column data, one is name another one is leader.

    I wanted to populate the data into multiple columns ie the column header as each leader's name

    I tried with index-macth combination, but it will duplicate the names.

    Got stuck for hours.... appreciate any kind of assistance.

    Thank yo very much.

    HC
    Attached Files Attached Files
    Last edited by Richard Buttrey; 12-20-2013 at 01:43 PM. Reason: additional Q

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Populate 2-column data to multiple columns based on one condition

    In D3 and copy down and acros, try this ARRAY formula.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.
    Not just Enter.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Populate 2-column data to multiple columns based on one condition

    You could do this without dummy columns if you use Arrayed formulas but they can slow your sheet down depending on it's size. Here's how to do it without array formulas.
    In C (which you can later hide)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then in E3 copied across and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Questions?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Populate 2-column data to multiple columns based on one condition

    Please see the file

    Regards
    Azumi
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    11-21-2013
    Location
    KL
    MS-Off Ver
    Excel 2010
    Posts
    168

    Re: Populate 2-column data to multiple columns based on one condition

    wow.. thank you very much to all of you!
    thank you for the effort and prompt replies, i truly appreciate that.

    God bless you all.

    HC

  6. #6
    Forum Contributor
    Join Date
    11-21-2013
    Location
    KL
    MS-Off Ver
    Excel 2010
    Posts
    168

    Populate data to multiple columns

    Hi,

    First of all I would want to apologise as I post this same question at another subforum asking for solution without VBA.

    However, what I never noticed was, the drop down combo box (format control) were capturing the cells with the functions although it is blank.
    Eg if my list have 7 names only, but the drop down list is showing blank rows (capturing rows with functions)

    I already tried copying with values only but it doesnt work.
    I have to use combo box, that is a requirement.

    Appreciate any assistance.

    Thank you.
    Attached Files Attached Files

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Populate data to multiple columns

    Hi

    Re post #5

    Since this is essentially an extension to your original thread I've taken the decision to move it here so that everything is 'under one roof' . Strictly speaking it should be in the VBA forum but let's see if it gets resolved here first. If not we can move the whole thread later.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  8. #8
    Forum Contributor
    Join Date
    11-21-2013
    Location
    KL
    MS-Off Ver
    Excel 2010
    Posts
    168

    Re: Populate 2-column data to multiple columns based on one condition

    Re post #7

    Hi,thank you very much!

    Again, any assistance is very much appreciated.

    Thank you!

    HC
    Last edited by hcyeap; 12-20-2013 at 11:44 PM.

  9. #9
    Forum Contributor
    Join Date
    11-21-2013
    Location
    KL
    MS-Off Ver
    Excel 2010
    Posts
    168

    Re: Populate 2-column data to multiple columns based on one condition

    Bump!

    I was trying while waiting for anyone to help out... unfortunately I am too new to VBA

    Appreciate any assistance.

    Thank you!

    Regards,
    Hong Chen

  10. #10
    Forum Contributor
    Join Date
    11-21-2013
    Location
    KL
    MS-Off Ver
    Excel 2010
    Posts
    168

    Re: Populate 2-column data to multiple columns based on one condition

    Bump!

    Really need this desperately....

    Appreciate any assistance....

    HC

  11. #11
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Populate 2-column data to multiple columns based on one condition

    Not sure why you are getting what you are getting because the sheet you uploaded doesn't have any sort of drop down or combo boxes or VBA. Makes it hard to troubleshoot.

    If we are discussing a dynamic named range, replace COUNTA with something like
    =SUMPRODUCT(--(LEN(G:G)>0))-1

+ 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. VBA to separate data into multiple columns based on certain condition
    By VBADumb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2013, 09:41 PM
  2. Populate Output sheet based on input data and lookup condition
    By Cool\m/ in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-10-2013, 04:45 AM
  3. Auto Populate Two Columns Based On Data Entered Into Another Column
    By aleenah in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2013, 08:37 PM
  4. Count no of data present in a specified column based on multiple condition
    By SubhasreeM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2012, 06:24 AM
  5. Select worksheet based on condition & populate cell based on condition
    By beth1069 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2011, 01:27 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