+ Reply to Thread
Results 1 to 3 of 3

How to combine a formula to repeat and get the number of times

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

    How to combine a formula to repeat and get the number of times

    365 Is it possible to use a formula to get the result of E2:F5 Only ONE formula (1+2)

    Originally used two formulas to get the perfect result, I want to use one formula to get two results, so that the task can be completed and done?


    1. Cell E2 formula =SORT(UNIQUE(B2:B23))
    2. Cell F2 formula =COUNTA(UNIQUE(FILTER(A:A,B:B=E2)))

    Can someone please help me ? It would be much appreciated. Thanks in advance
    Attached Files Attached Files
    Last edited by choletseng; 10-09-2021 at 04:35 AM.

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

    Re: How to combine a formula to repeat and get the number of times

    Please try

    =SORT(CHOOSE({1,2},UNIQUE(B2:B23),MMULT(MATCH(UNIQUE(B2:B23),INDEX(SORT(UNIQUE(A2:B23),2),,2),{0,1}),{-1;1})+1))
    Attached Files Attached Files

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

    Re: How to combine a formula to repeat and get the number of times

    Bo_Ry 'S Awesome, that does the trick! Much appreciated! tqvm

+ 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] Require formula to repeat items the specified number of times
    By Vivek2705 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-21-2019, 07:05 AM
  2. Need a formula to repeat values in column A a certain number of times
    By saeedaltaf in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-14-2015, 05:45 AM
  3. Replies: 1
    Last Post: 07-17-2015, 02:56 AM
  4. Repeat a formula a finite number of times in a column
    By alsers in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-05-2013, 11:18 AM
  5. Replies: 1
    Last Post: 04-04-2013, 10:53 AM
  6. [SOLVED] VBA: repeat a formula a number of times
    By dinahajjar in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-24-2013, 11:03 AM
  7. Replies: 17
    Last Post: 04-05-2009, 07: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