+ Reply to Thread
Results 1 to 6 of 6

Combing lists

  1. #1
    Registered User
    Join Date
    11-22-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    11

    Combing lists

    Not sure how to best describe this, but I have 2 lists, the first being unique communities, and the second being categories that apply to all communities. I was to organize my data so in one column I have the first community and the second column I have the 50 categories, then list the second community and the same 50 categories, etc. I know I can just do this manually, but it's a lot of data a feel like there has to be a more efficient way.

    Community 1: Trade 1
    Trade 2
    Trade 3
    Cummunity 2: Trade 1
    Trade 2
    Trade 3

    Thanks,

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

    Re: Combing lists

    Lots of ways to do this:

    =IFERROR(IF(MOD((ROWS($1:1)-1),COUNTA($B$2:$B$5))=0,INDEX($A$2:$A$4,1+INT((ROWS($1:1)-1)/COUNTA($B$2:$B$5))),""),"")

    and

    =IF(ROWS($1:1)>COUNTA($A$2:$A$4)*COUNTA($B$2:$B$5),"",INDEX($B$2:$B$5,1+MOD((ROWS($1:1)-1),COUNTA($B$2:$B$5))))

    this would be MUCH simpler if you wanted the community listed on every row. You may find that NOT listing them on every row will cause you a MASSIVE headache later on....
    Attached Files Attached Files
    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

  3. #3
    Registered User
    Join Date
    11-22-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Combing lists

    Glenn,

    Thanks! Yes, I actually would prefer the community in every row. I used your above formulas and it did the trick, without the repeating community. By data set is actually 175 community with 53 categories, so over 9000 rows when all is said and done, so if you could let me know the trick to getting the community to repeat that would be awesome. Thanks again!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,421

    Re: Combing lists

    If you did repeat the community down the column, you could always make it look like it only appears once using conditional formatting (i.e. use a white font if the current cell is the same as the previous cell).

    I haven't looked at the other part of it in detail - I'll have a coffee and check back later to see if anyone else has submitted a reply for that.

    Hope this helps.

    Pete

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

    Re: Combing lists

    See revised file. you won't regret that decision!!

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
    Attached Files Attached Files

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,421

    Re: Combing lists

    Or, you could use this formula in F2:

    =IF(ROWS($1:1)>(COUNTA(A:A)-1)*(COUNTA(B:B)-1),"",INDEX(A:A,INT((ROWS($1:1)-1)/(COUNTA(B:B)-1))+2))

    then copy down as far as you need to.

    Hope this helps.

    Pete

+ 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] Combing two formulas
    By JimmerB in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-30-2019, 12:17 PM
  2. Combing two codes
    By kbenjamin827 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2018, 09:10 AM
  3. [SOLVED] Combing Two Subs
    By yuenk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2017, 05:24 PM
  4. [SOLVED] Combing tow formulas
    By Khaldon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2016, 08:48 AM
  5. [SOLVED] Need Help on a combing formula
    By alcorp in forum Excel General
    Replies: 3
    Last Post: 07-24-2014, 12:55 PM
  6. Combing Max and IF functions
    By AZ_Joe in forum Excel General
    Replies: 3
    Last Post: 06-02-2014, 02:14 PM
  7. combing cells
    By Kelly E. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2005, 11:06 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