+ Reply to Thread
Results 1 to 11 of 11

=count separate date & time and count dates inside or outside 30 days

  1. #1
    Registered User
    Join Date
    08-10-2017
    Location
    Ahouse
    MS-Off Ver
    thatone
    Posts
    5

    =count separate date & time and count dates inside or outside 30 days

    hello,

    I don't really know what I'm doing, however, I've been tasked with collecting dates that have been active within the last 30 days.. There's a problem, the cell contains "Oct 4, 2016 02:46:50 EDT", as an example. I need to separate the time from the date and then count the dates that are active within the last 30 days relative to current/today's date.

    Here's what I've come up with so far... but the end result is not what I'm looking for.....

    =COUNTIF(Table3[First Discovered],"<"&TODAY() +30)&" "& LEFT(Table3[First Discovered], LEN(Table3[First Discovered]) -13)

    It displays = 0 Oct 4, 2016

    please make my life easier so I can continue please! :-)

    Beret
    Last edited by Beret; 08-11-2017 at 06:49 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,941

    Re: formula help please?

    title updated 8/11
    Last edited by protonLeah; 08-11-2017 at 03:35 PM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    08-10-2017
    Location
    Ahouse
    MS-Off Ver
    thatone
    Posts
    5

    Re: =count

    Kinda hard to describe it when you don't know what to call it?!?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,542

    Re: =count

    You need to try a bit harder than that, sorry. You have explained in your opening post what you want to do - use this for your title, in summary form.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,941

    Re: =count separate date & time and count dates inside or outside 30 days

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-10-2017
    Location
    Ahouse
    MS-Off Ver
    thatone
    Posts
    5

    Re: =count separate date & time and count dates inside or outside 30 days

    Thank you! It seems to work except that its counting all entries not counting just dates past or less than 30 days. ?

    thank you very much for your help!

    beret

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,941

    Re: =count separate date & time and count dates inside or outside 30 days

    That was just a guess since there is no sample file to test with.


    (How to) Upload a Workbook directly to the Forum
    (please do not post pictures or links to worksheets)
    • Click Advanced next to Quick Post button at the bottom right of the editor box.
    • Scroll down until you see "Manage Attachments",
    • Click the "Choose" button at the upper left (upload from your computer).
    • Select your file, click "open", click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Close the Attachment Manager window.
    • Click "Submit Reply"
    Note: Please do not attach password protected workbooks/worksheets
    Ensure to disable any Workbook Open/Autorun macros before attaching!

  8. #8
    Registered User
    Join Date
    08-10-2017
    Location
    Ahouse
    MS-Off Ver
    thatone
    Posts
    5

    Re: =count separate date & time and count dates inside or outside 30 days

    Well, that was a really good guess!! Very close!

    Unfortunately I can't attach the workbook... would be frowned upon.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,542

    Re: =count separate date & time and count dates inside or outside 30 days

    What people usually do to help those trying to help them is provide a desensitised version of their workbook. Just anonymise the data and there shouldn't be a problem.

  10. #10
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: =count separate date & time and count dates inside or outside 30 days

    perhaps you need to amend to
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    08-10-2017
    Location
    Ahouse
    MS-Off Ver
    thatone
    Posts
    5

    Re: =count separate date & time and count dates inside or outside 30 days

    davsth that worked!!! Thanks!!

+ 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. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  2. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  3. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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