+ Reply to Thread
Results 1 to 5 of 5

Count "ONLY" dates (Today/Tomorrow in filtered view viisable)

  1. #1
    Registered User
    Join Date
    10-23-2009
    Location
    USA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    75

    Count "ONLY" dates (Today/Tomorrow in filtered view viisable)

    All,

    First thank you all in advance for all advice.......


    I have an excel spreadsheet and it is filtered. while filtered I want to count only the visible DATE for ECD
    thinking like today TODAY() and tomorrow TODAY()+1

    I am unsure what code to use and count seemed to count even hidden lines while only want visible lines.

    This below is my code using to list Total Paperwork | Today ECD | Tomorrow ECD | the code in this one cell and is REF from a (insert shape =$I$2) that shows all the text on it.

    (CELL I2)...... ="CURRENT VIEW TOTAL PAPER: - "&SUBTOTAL(3,H6:H1000)&" | ECD TODAY: - "&COUNTIF(U:U, TODAY())&" | ECD TOMORROW: - "&COUNTIF(U:U, TODAY()+1)

    Column U is my date column showing 07/30/15 so my code needs = TODAY()


    MBCMDR
    Last edited by MBCMDR; 07-31-2015 at 09:57 AM.

  2. #2
    Registered User
    Join Date
    12-11-2012
    Location
    London
    MS-Off Ver
    2010
    Posts
    9

    Re: Count "ONLY" dates (Today/Tomorrow in filtered view viisable)

    Edit2 Can you please attach example workbook, it will be easier to work it out. Thanks.

    Edit1 Please ignore it, i did not factor filter on different column than date column. It wont work if you filter by column B and dates are in column A


    Hi,

    You can try this
    Please Login or Register  to view this content.
    Just change the columns to what you need, there probably is better a way of doing it but this one works (for next day outcome use the same formula but TODAY()+1)
    Last edited by Nivvi; 07-30-2015 at 11:17 AM.

  3. #3
    Registered User
    Join Date
    10-23-2009
    Location
    USA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    75

    Re: Count "ONLY" dates (Today/Tomorrow in filtered view viisable)

    Yes I filter by another column so this will not work for me.
    I have to make a mockup as can not post this file..

    When it is solved, I will post fix and modify message as solved.

    Thank you..
    MBCMDR

  4. #4
    Registered User
    Join Date
    10-23-2009
    Location
    USA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    75

    Re: Count "ONLY" dates (Today/Tomorrow in filtered view viisable)

    Solution


    ="current view total paper: - "&subtotal(3,h6:h2000)&" | ecd today: - "&sumproduct(--(subtotal(3,offset(index(u6:u2000,1,1),row(u6:u2000)-row(index(u6:u2000,1,1)),0))=1),--(u6:u2000=today()))&" | ecd tomorrow: - "&sumproduct(--(subtotal(3,offset(index(u6:u2000,1,1),row(u6:u2000)-row(index(u6:u2000,1,1)),0))=1),--(u6:u2000=today()+1))

  5. #5
    Registered User
    Join Date
    12-11-2012
    Location
    London
    MS-Off Ver
    2010
    Posts
    9

    Re: Count "ONLY" dates (Today/Tomorrow in filtered view viisable)

    Thanks for sharing. This might come useful one day

+ 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] If "Today" is between 2-dates
    By ecubersax in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-24-2015, 11:57 AM
  2. Replies: 1
    Last Post: 02-20-2015, 01:13 PM
  3. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  4. Filter Dates to Reflect: "Today - 30 days or More"
    By Gard5096 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-11-2012, 11:42 AM
  5. [SOLVED] How to Count number of "Error" and "OK" after the word "Instrument" found in table row
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 06:26 AM
  6. Replies: 7
    Last Post: 05-13-2006, 05:02 PM
  7. [SOLVED] "tomorrow worksheet function"
    By Stephany in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 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