+ Reply to Thread
Results 1 to 8 of 8

sumproduct to count year values in range based on another cell year value

  1. #1
    Registered User
    Join Date
    02-05-2013
    Location
    Canberra, Australia
    MS-Off Ver
    Excel 2010
    Posts
    39

    sumproduct to count year values in range based on another cell year value

    Hey guys,
    I'm trying to count the number cells in a range('Nonconformance Table'!$F$3:$F$1000) that match the year value of the date in cell $Y$2. so far I have the following, but it returns #VALUE!;

    Please Login or Register  to view this content.
    If anyone has any ideas, that would be great
    Last edited by mr_mango81; 05-04-2017 at 12:54 AM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: sumproduct to count year values in range based on another cell year value

    Have you tried array entering it?

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Dave

  3. #3
    Registered User
    Join Date
    02-05-2013
    Location
    Canberra, Australia
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: sumproduct to count year values in range based on another cell year value

    Thanks Dave, but that still seems to return the same '#VALUE!'. I guess the outcome I'm after would be like a COUNTIF where it counts the number of values in the range that match the year in the date value of cell 'Y2', except I will need to add a third criteria at a later point, hence trying to use SUMPRODUCT.

    Justin

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: sumproduct to count year values in range based on another cell year value

    Justin I'm puzzled because that formula should work now unless there are any dates in those references that are not numbers but text "dates".

    If you were not aware of it dates are numbered days starting with day 1 on 1/1/1900. The formatting is cosmetic. While today's date is 5/3/2017 as far as we humans see (humans in the western hemisphere right now) Excel "sees" 42858. All text however is 0.

    To test this go to G3 enter this formula and fill down =ISNUMBER(F3). Reference likewise Y1. If any of them returns FALSE you've found your culprit.
    Last edited by FlameRetired; 05-03-2017 at 10:55 PM.

  5. #5
    Registered User
    Join Date
    02-05-2013
    Location
    Canberra, Australia
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: sumproduct to count year values in range based on another cell year value

    Yeah, it's got me puzzled too. All the cells are formatted as dates on both sheets. The formula seems to work when I select a range from the same sheet the formula is on, but when I choose the range from a different sheet, it doesn't work. Could it possibly have something to do with the sheet reference?

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: sumproduct to count year values in range based on another cell year value

    The formatting does nothing to the values.

    Did you try the ISNUMBER formula I suggested?

  7. #7
    Registered User
    Join Date
    02-05-2013
    Location
    Canberra, Australia
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: sumproduct to count year values in range based on another cell year value

    Just checked the range and one cell had a text value in it. Thank you for your help mate. That was driving me crazy!

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: sumproduct to count year values in range based on another cell year value

    I'll bet it was. Those usually do that. Glad you found it. You are welcome and thank you for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] countifs to find the total count between this year and last year for series of data
    By maher2014 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2016, 02:39 AM
  2. Replies: 4
    Last Post: 12-10-2013, 06:41 PM
  3. Replies: 2
    Last Post: 11-18-2013, 12:22 PM
  4. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  5. Replies: 0
    Last Post: 11-23-2012, 01:27 AM
  6. [SOLVED] Count days for specific year falling within in multi-year date range
    By jslo2013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2012, 05:58 PM
  7. Replies: 3
    Last Post: 03-12-2009, 09:54 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