+ Reply to Thread
Results 1 to 7 of 7

How to generate a list of columns F and G based on columns A and B in OFFICE365

  1. #1
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Thailand
    MS-Off Ver
    365
    Posts
    190

    How to generate a list of columns F and G based on columns A and B in OFFICE365

    F and G are the desired results

    Can someone please help me ? It would be much appreciated. Thanks in advance
    Attached Files Attached Files
    Last edited by choletseng; 03-12-2022 at 04:13 AM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: How to generate a list of columns F and G based on columns A and B in OFFICE365

    Please try

    =LET(z,A2:B4,a,INDEX(z,,1),b,INDEX(z,,2),c,MMULT(--(ROW(z)>TRANSPOSE(ROW(z))),b),s,SEQUENCE(SUM(b),,0),CHOOSE({1,2},LOOKUP(s,c,a),s-LOOKUP(s,c)+1))
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    03-05-2018
    Location
    Tbilisi, Georgia
    MS-Off Ver
    2013, 2016
    Posts
    273

    Re: How to generate a list of columns F and G based on columns A and B in OFFICE365

    I just wonder is it possible to do the same job, but with older (non-O365) formula?
    I can do it with 2 formulas:
    For Values:
    =INDEX($A$2:$A$4;MATCH(ROWS(E$3:E3)-1;MMULT(--(ROW($B$2:$B$4)>TRANSPOSE(ROW($B$2:$B$4)));$B$2:$B$4)))
    Count:
    =COUNTIF(F$2:F2;F2)

    But I couldn't work out a single formula for both.
    Last edited by T.I.; 03-12-2022 at 03:11 AM.

  4. #4
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Thailand
    MS-Off Ver
    365
    Posts
    190

    Re: How to generate a list of columns F and G based on columns A and B in OFFICE365

    @Bo_Ry you are so talented , post #2 LET worked a charm. That's exactly what I needed , TQVM
    @Strogg your way is fine too, thank you
    Last edited by choletseng; 03-12-2022 at 09:59 AM.

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: How to generate a list of columns F and G based on columns A and B in OFFICE365

    @choletseng Happy to help

    @Strogg single formula for both

    =IF(ROWS(M$2:M2)>SUM($B$2:$B$4),"",LOOKUP(ROWS(M$2:M2)-1,MMULT(--(ROW($B$2:$B$4)>TRANSPOSE(ROW($B$2:$B$4))),$B$2:$B$4),CHOOSE(COLUMNS($M2:M2),$A$2:$A$4,ROWS(M$2:M2)-MMULT(--(ROW($B$2:$B$4)>TRANSPOSE(ROW($B$2:$B$4))),$B$2:$B$4))))
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    03-05-2018
    Location
    Tbilisi, Georgia
    MS-Off Ver
    2013, 2016
    Posts
    273

    Re: How to generate a list of columns F and G based on columns A and B in OFFICE365

    Perfect as always. Thank you Bo_Ry!

  7. #7
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Thailand
    MS-Off Ver
    365
    Posts
    190

    Re: How to generate a list of columns F and G based on columns A and B in OFFICE365

    Perfect . Thank you @Bo_Ry's

+ 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] Display columns in excel based on Data validation list in multiple columns
    By tejboyd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-27-2017, 09:17 PM
  2. Finding the max of a list of columns, based on the values of other columns
    By galapogos in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-20-2017, 05:45 AM
  3. Generate Unique List 2 Columns
    By DKolev in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 07-16-2014, 05:22 PM
  4. [SOLVED] How to generate a list based on values from several columns
    By KForsman in forum Excel General
    Replies: 8
    Last Post: 06-17-2014, 12:10 PM
  5. Generate Smallest list from 2 columns.
    By nnofs179 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-09-2013, 06:59 PM
  6. Excel 2007 : Generate a list of columns that contain row matches
    By DrKnightArcher in forum Excel General
    Replies: 3
    Last Post: 09-25-2011, 01:59 AM
  7. generate a list that both columns have in common
    By wchillman in forum Excel General
    Replies: 2
    Last Post: 10-25-2008, 02:32 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