+ Reply to Thread
Results 1 to 13 of 13

to find numbers >=3 using formula

  1. #1
    Registered User
    Join Date
    10-03-2018
    Location
    Delhi
    MS-Off Ver
    2007
    Posts
    5

    to find numbers >=3 using formula

    I have a range a1:e10 which is full of many like between randbetween 10-100..... there are some repeated numbers also....I have to find to show that numbers which are repeated >=3 times in selected range... and I want to show the answer in G4 cell....plz suggest me what formula will using in it.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: to find numbers >=3 using formula

    I have something that is an alternative to what you asked for.
    I tried to replicate what you have with randbetween in the A1 to E10 range. I found that often I would get more than one set of numbers that were greater than 2 by count, though sometimes none.
    So I set up a matrix in G1:K10 to show which numbers meet that criteria using a countif formula.
    this is the countif formula...=IF(COUNTIF($A$1:$E$10,A1)>=3,A1&" - "&COUNTIF($A$1:$E$10,A1),"")
    and attached is the sample sheet. Everytime you click in and out of a cell the numbers will change.
    Attached Files Attached Files
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: to find numbers >=3 using formula

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    10-03-2018
    Location
    Delhi
    MS-Off Ver
    2007
    Posts
    5

    Re: to find numbers >=3 using formula

    But in your attachment here you use g1:k10 to show the answers.....But I want to use all the answers only in one cell using comma ","....for example num1,num2,num3......etc.....then whts the formula to find it...plzz suggest

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: to find numbers >=3 using formula

    This one is an adjustment to what I gave you earlier with your result in G4 using an array formula which means (for mine) you need the helper columns of M, N and O and you could do away with the matrix in H1:L10 as it only shows as proof.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-03-2018
    Location
    Delhi
    MS-Off Ver
    2007
    Posts
    5

    Re: to find numbers >=3 using formula

    ok...here is the attatchment plzz check it my question..
    Attached Files Attached Files

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: to find numbers >=3 using formula

    you can get result in single row or in single column with formula
    if you want result in single cell then you need a UDF (VBA)

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: to find numbers >=3 using formula

    you posted your reply (post 4) while I was posting my second example, if you need VBA that is not in my wheelhouse.
    Last edited by Sam Capricci; 10-03-2018 at 08:27 AM.

  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
    44,053

    Re: to find numbers >=3 using formula

    Try this out:

    Please Login or Register  to view this content.
    How to install your new code
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Press Alt+F11 to open the Visual Basic Editor
    Choose Insert > Module
    Edit > Paste the macro into the module that appeared
    Close the VBEditor
    Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)


    Then use this array formula:

    =ConcatAll(IF(COUNTIF(A$1:E$10,A$1:E$10)>2,A$1:E$10,""),", ",TRUE)

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use 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 brackets yourself - it won't work...
    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.

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

  10. #10
    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
    44,053

    Re: to find numbers >=3 using formula

    and... just in case you want them in ascending order, use this array formula, instead:

    =ConcatAll(IFERROR(SMALL(IF(COUNTIF($A$1:$E$10,A$1:E$10)>2,$A$1:$E$10,""),ROW(1:50)),""),", ",TRUE)

  11. #11
    Registered User
    Join Date
    10-03-2018
    Location
    Delhi
    MS-Off Ver
    2007
    Posts
    5
    Quote Originally Posted by samba_ravi View Post
    you can get result in single row or in single column with formula
    if you want result in single cell then you need a UDF (VBA)
    Ok.. tell me how can I get the answer in single row or single column....plzz send me your answer sheet

  12. #12
    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
    44,053

    Re: to find numbers >=3 using formula

    Using an array formula (no VBA).

    =IFERROR(SMALL(IF(COUNTIF($A$1:$E$10,$A$1:$E$10)>2,IF(COUNTIF($I$2:I2,$A$1:$E$10)=0,$A$1:$E$10)),ROWS($1:1)),"")
    Attached Files Attached Files

  13. #13
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: to find numbers >=3 using formula

    Try below array formula in I3 and copy towards down
    Please Login or Register  to view this content.
    see the attached file
    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. Help with Formula- Find all numbers in column that can add to a between value.
    By PatrickShaw in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-08-2013, 01:55 PM
  2. [SOLVED] Help to find a formula that replace numbers
    By JohnnyWalker in forum Excel General
    Replies: 6
    Last Post: 11-12-2012, 10:25 AM
  3. Formula to find numbers that sum to a specified amount
    By paperwings25 in forum Excel General
    Replies: 2
    Last Post: 11-21-2011, 04:02 PM
  4. Formula to find numbers within several ranges
    By Kamerynn in forum Excel General
    Replies: 11
    Last Post: 10-21-2011, 10:19 AM
  5. Problem using formula to find row numbers
    By Jogier505 in forum Excel General
    Replies: 4
    Last Post: 02-07-2011, 07:39 PM
  6. Find formula cells containing numbers as well
    By Pempempie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2009, 09:57 AM
  7. Formula to find any number between two numbers?
    By bgo1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-07-2007, 10:12 AM
  8. Replies: 1
    Last Post: 01-09-2006, 09:30 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