+ Reply to Thread
Results 1 to 8 of 8

Count current year in worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    06-14-2014
    Posts
    4

    Count current year in worksheet

    I am rather new to this forum, I have found it extremely useful and people are so helpful.
    I have used the formula from "Count current year monthwise entries formula" thread http://www.excelforum.com/excel-form...s-formula.html and it works wonderfully.
    My only problem is when there is text cells it will show #VALUE! as answer.
    My formula is =SUMPRODUCT(--(YEAR(F15:F34)=YEAR(TODAY())))
    I will be very grateful if someone can help, Thank you in advance

    Regards
    Alf
    Last edited by Alfexcel; 07-26-2014 at 08:00 PM. Reason: included link

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Count current year in worksheet

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Count current year in worksheet

    Try this..


    Formula: copy to clipboard
    =SUMPRODUCT(--(iferror(YEAR(F15:F34)=YEAR(TODAY()),0)))



    Don't forget to click *

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count current year in worksheet

    Quote Originally Posted by Vikas_Gautam View Post
    =SUMPRODUCT(--(iferror(YEAR(F15:F34)=YEAR(TODAY()),0)))
    That needs to be array entered due to the IFERROR function.

    Array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    06-14-2014
    Posts
    4

    Re: Count current year in worksheet

    Than you very much Tony and Vikas, that was very much for solving my problem and for such a quick response. Both formulas worked.

    Much appreciated
    Alf

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count current year in worksheet

    Try this...

    Data Range
    F
    G
    H
    15
    9/1/2007
    ------
    3
    16
    TEXT
    17
    10/31/2014
    18
    3/4/2013
    19
    11/28/2014
    20
    11/12/2005
    21
    6/10/2014
    22
    6/15/2003
    23
    8/4/2011
    24
    12/26/2007
    25
    11/17/2006


    This formula entered in H15:

    =SUMPRODUCT(--(TEXT(F15:F34,"yyyy")=YEAR(NOW())&""))

  7. #7
    Registered User
    Join Date
    06-14-2014
    Posts
    4

    Re: Count current year in worksheet

    Than you very much Tony and Vikas, that was very much for solving my problem and for such a quick response. Both formulas worked.

    Much appreciated
    Alf

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count current year in worksheet

    You're welcome. Thanks for the feedback!

+ 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] Count cell only if date matches current month & year
    By SadOfficeWorker in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-14-2016, 02:51 AM
  2. [SOLVED] Count current year monthwise entries formula
    By KK1234 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-26-2014, 10:05 AM
  3. [SOLVED] Count current year entries based on date and name formula
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-05-2014, 08:09 PM
  4. [SOLVED] How to count entries monthwise for current year formula
    By KK1234 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-26-2014, 04:03 PM
  5. How to count entries monthwise for current year formula
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2014, 03:39 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