+ Reply to Thread
Results 1 to 7 of 7

count all the numbers greater than 49 but less than 100

  1. #1
    Registered User
    Join Date
    02-09-2021
    Location
    Pakistan
    MS-Off Ver
    2016
    Posts
    3

    count all the numbers greater than 49 but less than 100

    I want to count all the numbers, from the list mentioned below, greater than 49 but less than 100.

    50
    50*
    23
    43
    60*
    75

    the answer should be 4, kindly suggest the solution for it.
    Last edited by AliGW; 02-09-2021 at 09:09 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: count all the numbers greater than 49 but less than 100

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: count all the numbers greater than 49 but less than 100

    You will need to use COUNTIFS:

    =COUNTIFS(range,">49",range,"<100")

  4. #4
    Registered User
    Join Date
    02-09-2021
    Location
    Pakistan
    MS-Off Ver
    2016
    Posts
    3
    Quote Originally Posted by AliGW View Post
    You will need to use COUNTIFS:

    =COUNTIFS(range,">49",range,"<100")

    the answer I got using this is 1, actually this function is ignoring the asterisk values. I want to count the asterisk values as well which are greater than 49 but less than 99.

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: count all the numbers greater than 49 but less than 100

    Try this:

    =SUMPRODUCT((--SUBSTITUTE(A1:A6,"*","")>49)*(--SUBSTITUTE(A1:A6,"*","")<100))

  6. #6
    Registered User
    Join Date
    02-09-2021
    Location
    Pakistan
    MS-Off Ver
    2016
    Posts
    3
    Quote Originally Posted by Phuocam View Post
    Try this:

    =SUMPRODUCT((--SUBSTITUTE(A1:A6,"*","")>49)*(--SUBSTITUTE(A1:A6,"*","")<100))
    Thank you! It works.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: count all the numbers greater than 49 but less than 100

    You didn't say that the asterisks needed taking into account, otherwise I'd have suggested something different ...

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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] Problem with indirect function in XIRR function
    By lynnsong986 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-17-2020, 05:12 PM
  2. Function problem: Function correct but not running
    By helterskelter101 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-04-2018, 10:17 AM
  3. [VBA] Problem with outmail function - function sends mails only to 1 recepient
    By sauron12 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2015, 03:30 PM
  4. If function problem - Please help
    By ExcelSheep in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-17-2015, 10:20 AM
  5. Replies: 6
    Last Post: 10-20-2013, 07:16 PM
  6. Problem Inserting Round function into an IF function
    By Ash87 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2013, 05:37 PM
  7. [SOLVED] problem with 'IF' function
    By BobbyH in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-23-2012, 11:42 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