+ Reply to Thread
Results 1 to 14 of 14

List cell entries based on numerical criteria

  1. #1
    Registered User
    Join Date
    03-08-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    33

    Question List cell entries based on numerical criteria

    Hi I've been racking my brains on this for a couple of hours. I want to produce a summary list on sheet 1 of all account numbers (Sheet 2, column A) which have a value below 5000 (sheet 2, column B). I have searched using various terms but they all keep pointing out COUNTIF functions, I know the number of accounts, I just don't know which accounts.

    Your help is greatly appreciated.
    Attached Files Attached Files
    Last edited by jcswaby; 05-17-2016 at 04:02 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: List cell entries based on numerical criteria

    Try something like this...
    =COUNTIF(Sheet2!B:B," < 5000")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: List cell entries based on numerical criteria

    pivot table can help you solve your problem.

    you get better help on your question if you add a small excel file without confidential information.

    please also add the expected result manualy in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    03-08-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    33

    Re: List cell entries based on numerical criteria

    ok I've attached an example of what I am looking for in the original question. Many thanks.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: List cell entries based on numerical criteria

    Your sample does not really compare to the initial question, and also, none of your sample values exceed the criteria, but try this...
    =SUMPRODUCT(--(--MID(A2:A6,4,5) < 5000))

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: List cell entries based on numerical criteria


  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: List cell entries based on numerical criteria

    This array formula** entered in A2:

    =IFERROR(INDEX(Sheet2!A:A,SMALL(IF(Sheet2!B$2:B$14 < 5000,ROW(Sheet2!B$2:B$14)),ROWS(A$2:A2))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    Registered User
    Join Date
    03-08-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    33

    Re: List cell entries based on numerical criteria

    I'm not sure what you mean, in my question I just want a list of the actual accounts that are below 5000 (not the number of accounts). I have made five accounts which fit that criteria so those are the accounts I am trying to list on the first sheet.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: List cell entries based on numerical criteria

    Quote Originally Posted by FDibbins View Post
    Your sample does not really compare to the initial question, and also, none of your sample values exceed the criteria, but try this...
    =SUMPRODUCT(--(--MID(A2:A6,4,5) < 5000))
    oooooops apologies, I did not even see sheet 2

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: List cell entries based on numerical criteria

    Y'all are gonna miss me when I'm gone!

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: List cell entries based on numerical criteria

    Try this ARRAY formula...
    =IFERROR(INDEX(Sheet2!A:A,SMALL(IF(Sheet2!$B$2:$B$14< 5000,ROW(Sheet2!$A$2:$A$14)),ROWS($A$1:A1))),"")
    ...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 your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    (I know Tony also posted this, but I worked it out so I am posting it lol)

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: List cell entries based on numerical criteria

    Quote Originally Posted by Tony Valko View Post
    Y'all are gonna miss me when I'm gone!
    you singing a song, or...where you going???

  13. #13
    Registered User
    Join Date
    03-08-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    33

    Re: List cell entries based on numerical criteria

    Many thanks for that, it works great.

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: List cell entries based on numerical criteria

    Can't tell who you're replying to but we do appreciate the feedback!

+ 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. Display unqiue text entries in a list based on date criteria
    By lookingforhelp1 in forum Excel General
    Replies: 7
    Last Post: 08-21-2015, 03:14 PM
  2. [SOLVED] Place text in a specific cell based on two separate drop down list entries
    By fazthfc in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-24-2015, 03:34 PM
  3. [SOLVED] Combine cell entries based on criteria
    By Niclal in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 03-13-2014, 01:00 PM
  4. Macro to copy a sheet/template in a based on numerical cell value or list
    By hodda in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-10-2013, 03:11 PM
  5. List entries in userform based on criteria
    By h0ps in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-18-2013, 09:22 AM
  6. counting non-numerical in a list with blank entries
    By SoE in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2010, 04:07 PM
  7. Excluding Numerical Characters Based on Criteria
    By NewExcelUser in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2008, 06:10 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