+ Reply to Thread
Results 1 to 25 of 25

Histogram - show the last 30 entries only

  1. #1
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Question Histogram - show the last 30 entries only

    Dear members of the forum,

    I have made a table, which updates itself every 24 hours and feeds the data into a histogram.
    After some time the histogram is now overloaded with data and you can't read the information anymore.

    Is there a possibility to show just the last 30 entries of the table in the histogram?
    For example: if the table updates itself today (21.08.2023), the information of the 22.08.2023 should be not visible anymore/deleted.
    For better understanding I attached a sample workbook.

    Thank you in advance and best regards,

    David
    Attached Files Attached Files

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

    Re: Histogram - show the last 30 entries only

    If today is 21 August, why would you want to hide tomorrow?

    Do you mean from today onwards?
    Last edited by AliGW; 08-21-2023 at 04:40 AM.
    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
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Histogram - show the last 30 entries only

    Select for your histagram the result of this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Histogram - show the last 30 entries only

    Hi Ali,
    sorry - typing mistake...
    Should be 22.07.2023

  5. #5
    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,877

    Re: Histogram - show the last 30 entries only

    That makes a BIG difference!

    However, the data you have provided starts from today and does not go back that far.

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Histogram - show the last 30 entries only

    Did you see post #3?
    It shows the last 30 entries only.

  7. #7
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Histogram - show the last 30 entries only

    I know - I can change the sample workbook. But 22.07.2023 - 21.08.2023 should just be an example. The important part is, that I would just like to see the last 30 entries

  8. #8
    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,877

    Re: Histogram - show the last 30 entries only

    I'm confused about the requirements. The data is from today only, but the OP wants to go back one month and cut off anything prior to that, as far as I understand it.

    I think the solution will include FILTER and EDATE, but I don't believe the sample data reflects the request.

  9. #9
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Histogram - show the last 30 entries only

    @HansDouwe,
    thank you for your help! I've tried to implement this in my real worksheet, but I just get #VALUE...

  10. #10
    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,877

    Re: Histogram - show the last 30 entries only

    The important part is, that I would just like to see the last 30 entries
    Go with Hans' suggestion, then. If the date is not important, you didn't need to mention it at all.

  11. #11
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Histogram - show the last 30 entries only

    @AliGW - give me a minute - I will change the samplesheet

  12. #12
    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,877

    Re: Histogram - show the last 30 entries only

    No need - Hans has it sorted.

  13. #13
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Histogram - show the last 30 entries only

    Here we go
    Attached Files Attached Files

  14. #14
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Histogram - show the last 30 entries only

    but I just get #VALUE...
    Please check the references of the formula or upload the workbook (without confidental data) that produces the error.

  15. #15
    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,877

    Re: Histogram - show the last 30 entries only

    Use this and base the histogram on this filtered data:

    =FILTER(A3:B600,(A3:A600<>"")*(A3:A600>EDATE(TODAY(),-1)+1))

    =FILTRE(A3:B600;(A3:A600<>"")*(A3:A600>MOIS.DECALER(AUJOURDHUI();-1)+1))

  16. #16
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Histogram - show the last 30 entries only

    The only difference is that in the final workbook the data is in a table. Can I still "TAKE and FILTER" there?

  17. #17
    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,877

    Re: Histogram - show the last 30 entries only

    Or:

    =FILTER(A3:B600,(A3:A600<>"")*(A3:A600>TODAY()-30))

    =FILTRE(A3:B600;(A3:A600<>"")*(A3:A600>AUJOURDHUI()-30))

    The only difference is that in the final workbook the data is in a table. Can I still "TAKE and FILTER" there?
    The source data can be in a table, but not the results data. But that shouldn't matter - share a more realistic workbook!

  18. #18
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Histogram - show the last 30 entries only

    Did you see post #14?

  19. #19
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Histogram - show the last 30 entries only

    @Hans - I could solve the problem using ";" instead of "," Thank you!

    @Ali - the formula works, but when the data updates itself, the filtered data gets deleted.

  20. #20
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Histogram - show the last 30 entries only

    Thanks for your feedback.
    Does the formula do what you want?

    If so, if you haven't already, please consider adding reputation to all helpers you think they deserve.
    In that case please click * Add Reputation left below their answers.

  21. #21
    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,877

    Re: Histogram - show the last 30 entries only

    @Ali - the formula works, but when the data updates itself, the filtered data gets deleted.
    It can’t do if you’ve used it correctly!!!

  22. #22
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Histogram - show the last 30 entries only

    If the data updates itself it adds one row in the table, copy pastes the data and sort the table from oldest to newest (actual date is on the bottom of the table).
    I will try to play with it an may find the problem myself (Y)

  23. #23
    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,877

    Re: Histogram - show the last 30 entries only

    Again, it should work - share a workbook. I don’t have a crystal ball.

  24. #24
    Forum Contributor
    Join Date
    08-31-2022
    Location
    Swiss
    MS-Off Ver
    365
    Posts
    134

    Re: Histogram - show the last 30 entries only

    Found the problem - somehow the macro for updating the data changes the formula in a strange way...
    I've added your formula to a different sheet and now everything works fine!

    I would have shared another workbook, but the real data is complicated - i would take me days to make a useful sample sheet. :/

    Thank you for your patience and amazing help - you saved me many times already!

  25. #25
    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,877

    Re: Histogram - show the last 30 entries only

    OK - as long as you have it working.

+ 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. Replies: 2
    Last Post: 03-20-2019, 02:53 PM
  2. [SOLVED] Histogram with Benchmark, adding a point to show where Curve meets benchmark.
    By Pralfer in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 05-17-2018, 01:36 PM
  3. Replies: 4
    Last Post: 07-31-2015, 12:54 AM
  4. Replies: 5
    Last Post: 11-26-2014, 09:26 PM
  5. [SOLVED] Pivottable won't show new entries
    By CDEG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-02-2013, 05:15 PM
  6. [SOLVED] I was creating a histogram; now i have data but no histogram.
    By ShannonMills3 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-13-2006, 07:10 PM
  7. [SOLVED] How to Histogram w/o raw data but histogram Table on Excel
    By 2005 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-01-2006, 02:50 AM

Tags for this Thread

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