+ Reply to Thread
Results 1 to 10 of 10

Excel 2007 : Count number of cells less than or equal to today's date

  1. #1
    Registered User
    Join Date
    08-24-2011
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    17

    Count number of cells less than or equal to today's date

    Someone please help
    I am close to a nervous breakdown.

    Can you tell me in SIMPLE terms how I can do the following... I have in coulm B a long list of dates in the format of dd/mm/yyy and in colum a i have todays date (set automatically by the =Now() formula) , I want to count the number of cells in column B that are less than or equal to this specfic date however each time I do it comes back errors or doesnt calculate it correctly. I have tried the countif formula but can't get it to work. I have amnually counted the lines as a control and each time the figure I get back is wrong.... Please help me!!!!!

    Last edited by marthadanielle; 08-25-2011 at 03:40 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Please help me!! Breakdown!

    If you just want a date, use =TODAY() not =NOW(), then use =COUNTIF(B:B,"<"&A1)
    assuming the date is in A1.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    08-24-2011
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Please help me!! Breakdown!

    Quote Originally Posted by romperstomper View Post
    If you just want a date, use =TODAY() not =NOW(), then use =COUNTIF(B:B,"<"&A1)
    assuming the date is in A1.

    I tried this but each time I get a result of 0

    Why will it not return any figures?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Count number of cells less than or equal to today's date

    Try selecting column A, then go to Data|Text to Columns and skip to the 3 window and then select Date from the column data format area, then select DMY from the adjacent dropdown menu and click Finish.

    If that doesn't work, post a sample workbook (use paperclip icon in reply box to upload)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    08-24-2011
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Count number of cells less than or equal to today's date

    I'm sorry, No matter what I do I cannot get it to work... Attached is the document with information on it. Column A has todays date in it using =TODAY() as advised. I need to count the number of cells in Column B that are less than or equal to todays date. Column's C,D,E are not to be included in the search.
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Count number of cells less than or equal to today's date

    Did you try my Text-to-Columns suggestions.. because that was exactly the fix needed. Your dates are text entered dates... need to be converted.

    See attached.
    Attached Files Attached Files

  7. #7
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Count number of cells less than or equal to today's date

    Following the steps provided by NBVC and then using COUNTIF, gets the attached.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-24-2011
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Count number of cells less than or equal to today's date

    Thank you!!

    I love you all!! xx

    This has been annoying me for over a week and I was close to going insane.

  9. #9
    Registered User
    Join Date
    01-10-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Cool Re: Excel 2010 : Count number of cells less than or equal to today's date

    I just want to count the number of cells in one column that are less than or equal to, today's date but still can't figure it out, even with the wonderful examples you all provided. When I do use the example, it puts the information in date format. Can anyone help?

  10. #10
    Registered User
    Join Date
    01-10-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Excel 2007 : Count number of cells less than or equal to today's date

    Apologies, i figured it out and just changed it to the general number format. YEAH. This is awesome. Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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