+ Reply to Thread
Results 1 to 15 of 15

Need to change multiple IDs with entries into one row per ID with multiple entries

  1. #1
    Registered User
    Join Date
    09-24-2015
    Location
    Massachusetts
    MS-Off Ver
    2010
    Posts
    28

    Need to change multiple IDs with entries into one row per ID with multiple entries

    Hi All, first post, and I could really use some help. I have of 4500 rows of this:

    A1 B1
    19 Fund 1
    19 Fund 2
    19 Fund 3
    19 Fund 4
    19 Fund 5
    19 Fund 6
    19 Fund 7
    19 Fund 8
    28 Fund 1
    28 Fund 2
    28 Fund 3
    28 Fund 4
    32 Fund 1
    32 Fund 2
    32 Fund 3
    32 Fund 4

    I want this:
    19 Fund 1 Fund 2 Fund 3 Fund 4 Fund 5 Fund 6 Fund 7 Fund 8
    28 Fund 1 Fund 2 Fund 3 Fund 4
    32 Fund 1 Fund 2 Fund 3 Fund 4

    Pretty sure I use an index to make this happen, but I can't figure it out. Please help ASAP!
    Last edited by btbrennan81; 09-24-2015 at 01:50 PM. Reason: Mods told me to (Sorry, I am new)

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,576

    Re: Need Help ASAP!!!

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: Need Help ASAP!!!

    Please change your thread title to something that means something. It's obvious that you need help. Whether it's ASAP, or next month is less important. Your title should reflect what your EXCEL problem actually is. Think in terms of Google search tems. What do you want to achieve?? To change your title, go to the first post , click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this request is fulfilled, as per Forum Rule 7)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: Need Help ASAP!!!

    ... and while you're doing that, also tell us if the first two digits are IN THE SAME CELL as Fund XX, or in a different cell.

  5. #5
    Registered User
    Join Date
    09-24-2015
    Location
    Massachusetts
    MS-Off Ver
    2010
    Posts
    28

    Re: Need Help ASAP!!!

    Made changes, sorry, it is my first time here, I will read the rules before making any more posts.

  6. #6
    Registered User
    Join Date
    09-24-2015
    Location
    Massachusetts
    MS-Off Ver
    2010
    Posts
    28

    Re: Need Help ASAP!!!

    Thank you Zbor, this is done. I will make sure to read the rules before I post again

  7. #7
    Registered User
    Join Date
    09-24-2015
    Location
    Massachusetts
    MS-Off Ver
    2010
    Posts
    28

    Re: Need Help ASAP!!!

    Thank you Glenn, both are done.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: Need to change multiple IDs with entries into one row per ID with multiple entries

    Perfect!! try this, then. It uses two array formulae, one to return a unique list of 2 digit numbers:

    =IFERROR(INDEX($A$2:$A$17,MATCH(0,INDEX(COUNTIF($H$1:$H1,$A$2:$A$17),0),0)),"")

    and one to return the Fund Nos.

    =IFERROR(INDEX($B$2:$B$17, SMALL(IF($H2=$A$2:$A$17, ROW($A$2:$A$17)-MIN(ROW($A$2:$A$17))+1, ""), COLUMNS($A:A))),"")

    Array Formulae are a little different from ordinary formulas in that they MUST be 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 the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: Need Help ASAP!!!

    Oops. here's the attachment.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    09-24-2015
    Location
    Massachusetts
    MS-Off Ver
    2010
    Posts
    28

    Re: Need to change multiple IDs with entries into one row per ID with multiple entries

    It seems to be working, but it is taking my computer a very long time to process this. Is there any way to speed it up?

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: Need to change multiple IDs with entries into one row per ID with multiple entries

    My reply vanished...

    Possibly - there may be a faster alternative for the second formula. Currently I'm eatinv. Look back a bit later today.

  12. #12
    Registered User
    Join Date
    09-24-2015
    Location
    Massachusetts
    MS-Off Ver
    2010
    Posts
    28

    Re: Need to change multiple IDs with entries into one row per ID with multiple entries

    Thank you, I appreciate it!

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: Need to change multiple IDs with entries into one row per ID with multiple entries

    Can i create a helper column in column C to speed uo formula no 1???

  14. #14
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,576

    Re: Need to change multiple IDs with entries into one row per ID with multiple entries

    This will be faster but work only if data is in ascending order as in example
    Attached Files Attached Files

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: Need to change multiple IDs with entries into one row per ID with multiple entries

    An alternative, that doesn't care what order the data in column A are. All ordinary formulae..

    helper (col C)
    =COUNTIF($A$2:A2,A2)

    Nos.
    =IFERROR(INDEX($A$2:$A$17,SMALL(INDEX(($C$2:$C$17<>1)*10^10+ROW($C$2:$C$17)-1,0),ROWS($1:1))),"")

    Fund Nos.
    =IFERROR(INDEX($B$2:$B$17,SMALL(INDEX(($A$2:$A$17<>$H2)*10^10+ROW($A$2:$A$17)-1,0),COLUMNS($A:A))),"")
    Attached Files Attached Files

+ 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. Please help asap!
    By Tiffany D in forum Excel General
    Replies: 1
    Last Post: 08-06-2011, 12:31 PM
  2. Please help asap
    By kckid12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-30-2009, 02:10 AM
  3. Please help asap!!!!!
    By kckid12 in forum Excel General
    Replies: 3
    Last Post: 03-30-2009, 02:09 AM
  4. I Need Help! Asap.
    By kristyb in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 08-10-2006, 08:30 AM
  5. Need help asap
    By potsie in forum Excel General
    Replies: 3
    Last Post: 04-11-2006, 04:45 AM
  6. I need help ASAP!!
    By enak in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-13-2005, 11:45 AM
  7. Need Help ASAP
    By bigwilly11189 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2005, 10:05 PM
  8. need help ASAP
    By pike188 in forum Excel General
    Replies: 4
    Last Post: 06-07-2005, 11:04 AM

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