+ Reply to Thread
Results 1 to 5 of 5

Count of Years in column

  1. #1
    Forum Contributor
    Join Date
    12-27-2008
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    235

    Lightbulb Count of Years in column

    Dear All,

    I am looking for a count of years in directly in the chart instead of using the helper formula in any cell & without a pivot option.
    Means If column having year 2016 completed entries 2 then show in chart 2 directly.

    Pls use the dynamic range, because data change regularly.



    Is it possible?

    Regards, RR
    Attached Files Attached Files

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

    Re: Count of Years in column

    Making the table dynamic is easy.

    but first, why do you want to get rid of the helper? It is needed to summarise the Table in a simple way so that Excel can produce the chart. If it distresses you, call it a summary table, not a helper.

    The easiest workaround is (of course) to place the chart on top of the summary Table. Then you can't see it.
    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
    12-27-2008
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    235

    Re: Count of Years in column

    Hi Glenn,

    Because of data dynamic, I am thinking to have solution directly on the chart.
    Anyway, now I am searching how I can make a dynamic data table (in excel file) which reflect year and entries automatically.
    if you can help appreciated.

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

    Re: Count of Years in column

    I used 3 dynamic Named Ranges, similar to this:

    =Sheet1!$H$4:INDEX(Sheet1!$H:$H,MATCH(1E+100,Sheet1!$H:$H))

    to adjust ranges automatically (Called dates, Year and Count). CTRL-F3 to view.

    I extended the years in the Summary Table down to 2025. I used this formula to count the dates per year:

    =IFERROR(1/(1/SUMPRODUCT(--(YEAR(Dates)=G4))),NA())

    This returns the #N/A error, which Excel will ignore, when there are no dates in the year. I then referenced Year and Count for the chart, making sure to include the sheet name as well, =Sheet1!Count and =Sheet1!Year. Excel will replace those with the filename.

    Now it's all dynamic. If desired, the ugly #N/A errors can be hidden by conditional formatting.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    12-27-2008
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    235

    Re: Count of Years in column

    Many thanks for a great explanation with all details.
    Yes it serves my purpose.

    Many Thanks once again...

+ 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] Formula to Count Years Above Zero
    By phelbin in forum Excel General
    Replies: 12
    Last Post: 08-29-2016, 02:49 PM
  2. Count yes/no in years with dates given
    By tonilony in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-20-2015, 06:22 PM
  3. [SOLVED] Using COUNT(IF(... to count number of months in years
    By Abid123 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-17-2014, 11:21 AM
  4. [SOLVED] Age based on DOB; Accounts for leap years. Years old if >2, Months if <2 years old.
    By sharpmel in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-17-2013, 04:20 PM
  5. [SOLVED] Count future years
    By Ltat42a in forum Excel General
    Replies: 2
    Last Post: 07-22-2012, 12:14 PM
  6. [SOLVED] Count Years Between Two Dates
    By sgwilliams in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-07-2011, 09:03 AM
  7. Replies: 3
    Last Post: 08-22-2011, 11:58 AM

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