+ Reply to Thread
Results 1 to 9 of 9

Counting a Range

  1. #1
    Registered User
    Join Date
    12-08-2020
    Location
    Hertford, England
    MS-Off Ver
    365
    Posts
    6

    Counting a Range

    Hi guys, I appreciate this will be Excel 101 to most of you, but would appreciate some help. I have a range of data (example in image) which lists all the contracts we have and how long they have left to run. I would like to find a formula that counts how many days within a specific range of days remaining (e.g 0-30 days). I've tried working with the "COUNTIF" function but cannot get it to work. I used: =COUNTIF(B:B,"0,30"). Any suggestions, please ?Excel.jpg
    Last edited by AliGW; 06-29-2022 at 07:01 AM. Reason: Irrelevant section of title removed.

  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,910

    Re: Counting a Range

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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
    Registered User
    Join Date
    12-08-2020
    Location
    Hertford, England
    MS-Off Ver
    365
    Posts
    6

    Re: Counting a Range

    Thanks for the reply!

    Hopefully the attachment is there now - so I want to add formula that counts how many lines there are between 0 & 30 (answer is 17). Any help, please ?
    Attached Files Attached Files

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Counting a Range

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    Registered User
    Join Date
    12-08-2020
    Location
    Hertford, England
    MS-Off Ver
    365
    Posts
    6

    Re: Counting a Range

    Wow, thank you!! This works - really appreciate your help. Have a great day!

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Counting a Range

    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: Counting a Range

    Just for fun, as you are using 365, try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: Counting a Range

    Or, same example with multiple conditions
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,427

    Re: Counting a Range

    Other option

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Countif not counting when formula in range
    By jokris in forum Excel General
    Replies: 9
    Last Post: 09-30-2016, 10:29 AM
  2. [SOLVED] Help with counting formula within a 90 day range
    By srollins13 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-27-2015, 05:47 PM
  3. counting numbers from range what formula to use?
    By rikardo82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-15-2014, 04:23 PM
  4. [SOLVED] Single formula for counting in the range
    By Dumy in forum Excel General
    Replies: 12
    Last Post: 02-26-2014, 06:20 PM
  5. formula for counting cells within a given range
    By pajames in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-05-2009, 12:57 AM
  6. Dynamic range formula not counting completely
    By TK5 in forum Excel General
    Replies: 5
    Last Post: 07-08-2008, 10:11 AM
  7. FORMULA for COUNTING #S STARTING WITH A 4 IN A RANGE 1 TO 100,000
    By dbglass in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-12-2006, 03:35 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