+ Reply to Thread
Results 1 to 10 of 10

Chart to reference specific dates

  1. #1
    Forum Contributor
    Join Date
    10-13-2015
    Location
    Culloden, West Virginia
    MS-Off Ver
    2010
    Posts
    168

    Chart to reference specific dates

    Hello, I have a chart that references a table based on one of the columns.

    I would like the chart to only reference the data in the table from the last 30 days.

    This is the current formula I'm using that works.

    =COUNTIF(Table2[[#All],[Type]],"Dropped Part")

    This returns a value of 8 since there are 8 instances of dropped parts in the entire table.

    The first column in the table is the date.

    I tried to attach the worksheet, but I kept getting "Upload Failed"

    Thanks in advance.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Chart to reference specific dates

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    10-13-2015
    Location
    Culloden, West Virginia
    MS-Off Ver
    2010
    Posts
    168

    Re: Chart to reference specific dates

    That's the way I was attempting to attach it. I've never had this issue before???

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Chart to reference specific dates

    How big is the file (theres a 1 MB limit)??

  5. #5
    Forum Contributor
    Join Date
    10-13-2015
    Location
    Culloden, West Virginia
    MS-Off Ver
    2010
    Posts
    168

    Re: Chart to reference specific dates

    And there you have it..... 2.5MB

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Chart to reference specific dates

    you shouldn't be attaching the whole file

    trim file to show sample, just enough to get the gist of the problem
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  7. #7
    Forum Contributor
    Join Date
    10-13-2015
    Location
    Culloden, West Virginia
    MS-Off Ver
    2010
    Posts
    168

    Re: Chart to reference specific dates

    Ok, I had to create a new file.

    Here's a much simpler version of the same thing.

    Current formula

    =COUNTIF(Table1[[#All],[Type]],"Dropped Part")

    I want it to return a value for "Dropped Part" but only if it is from the last 30 days.

    The 1st column in Table 1 is the date column.
    Attached Files Attached Files

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Chart to reference specific dates

    Using COUNTIFS:

    =COUNTIFS(Table1[Type],"Dropped Part",Table1[Date],">="&TODAY()-30)

    and similarly for the other two.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    10-13-2015
    Location
    Culloden, West Virginia
    MS-Off Ver
    2010
    Posts
    168

    Re: Chart to reference specific dates

    Perfect Sir. Thank you. I was doing that formula, I just had everything in the wrong order. Thank you again.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Chart to reference specific dates

    You're welcome!

+ 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] Returning specific dates, ignoring already returned dates
    By FP91 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-16-2018, 07:02 AM
  2. Replies: 13
    Last Post: 05-02-2016, 06:03 AM
  3. [SOLVED] Working with specific dates against Week Commencing dates
    By daveb86 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-11-2015, 05:36 AM
  4. Replies: 2
    Last Post: 02-13-2014, 06:18 AM
  5. Replies: 2
    Last Post: 12-17-2013, 06:30 AM
  6. Dates Of Time-Chart Treated As Categories Rather Than Dates
    By RowanB in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-11-2013, 07:44 AM
  7. Replies: 1
    Last Post: 12-18-2012, 03:09 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