+ Reply to Thread
Results 1 to 6 of 6

urgent help please! year statistics with excel formula

  1. #1
    Registered User
    Join Date
    11-28-2014
    Location
    istanbul, turkey
    MS-Off Ver
    2010
    Posts
    12

    Question urgent help please! year statistics with excel formula

    Is it possible to create year statistics with excel formula for below:

    Think that I have a list as below on an excel work sheet:

    01.02.2010 win
    03.04.2010 fail
    03.05.2010 win
    04.08.2010 win
    02.02.2011 win
    02.05.2012 win
    02.08.2012 fail
    02.10.2013 win

    now, I want to write a formula (not with filtering) with excel (count if??) to see how many times I won for year 2010, 2011, 2012, 2013.
    How can I do that?


    I know that if A column was created only with years, I can write COUNTIFS(A1:A8;"2010";B1:B8;"win") for how many times I won for 2010 but when A column is created with dates like above, how should I write the formula?

    Thank you in advance.

    Onur

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: urgent help please! year statistics with excel formula

    Try

    =SUMPRODUCT((YEAR(A1:A28)=2010)*(b1:b28="win"))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    11-28-2014
    Location
    istanbul, turkey
    MS-Off Ver
    2010
    Posts
    12

    Re: urgent help please! year statistics with excel formula

    Quote Originally Posted by Ace_XL View Post
    Try

    =SUMPRODUCT((YEAR(A1:A28)=2010)*(b1:b28="win"))
    Actually it works, Ace!
    Then would you be so kind enough to help me with these?

    1. Let's say that there is another text in B column as "tie". how should I change it when I need to know how many times I won or tied for year 2010?
    2. How can I count the years? (how many 2010s are there?)

  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: urgent help please! year statistics with excel formula

    For wins or ties...

    =SUMPRODUCT(--(YEAR(A1:A8)=2010),--ISNUMBER(MATCH(B1:B8,{"Win","Tie"},0)))

    To count just the year 2010...

    =SUMPRODUCT(--(YEAR(A1:A8)=2010))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    11-28-2014
    Location
    istanbul, turkey
    MS-Off Ver
    2010
    Posts
    12

    Re: urgent help please! year statistics with excel formula

    Quote Originally Posted by Tony Valko View Post
    For wins or ties...

    =SUMPRODUCT(--(YEAR(A1:A8)=2010),--ISNUMBER(MATCH(B1:B8,{"Win","Tie"},0)))

    To count just the year 2010...

    =SUMPRODUCT(--(YEAR(A1:A8)=2010))
    Tony,
    Thank you very much. You are great.

  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: urgent help please! year statistics with excel formula

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. URGENT HELP NEEDED!!! Fiscal Year with Quarter Formulas
    By sri_rams86 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-30-2014, 02:18 PM
  2. Replies: 2
    Last Post: 08-08-2013, 12:45 AM
  3. Replies: 1
    Last Post: 07-20-2012, 06:55 AM
  4. Which statistics formula to use in Excel?
    By Peace_love in forum Excel General
    Replies: 6
    Last Post: 04-19-2009, 03:23 PM
  5. URGENT IF STATEMENT: True if moving between financial year's
    By Ray Everingham in forum Excel General
    Replies: 1
    Last Post: 05-26-2006, 04:25 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