+ Reply to Thread
Results 1 to 16 of 16

SUMPRODUCT, OR, Less than Month & Less than Year

  1. #1
    Registered User
    Join Date
    02-21-2013
    Location
    Virginia USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    SUMPRODUCT, OR, Less than Month & Less than Year

    Hello,

    I am attempting to use a modified SUMPRODUCT formula that is not giving me the results I would like. The formula is as follows:

    =SUMPRODUCT((('PTDE ITD 2.22.2013'!$K$15:$K$1107<=MONTH($AQ$2))+('PTDE ITD 2.22.2013'!$J$15:$J$1107<YEAR($AQ$2)))*('PTDE ITD 2.22.2013'!$V$15:$V$1107=$AN4)*('PTDE ITD 2.22.2013'!$S$15:$S$1107))

    The <= months is working but the <year is not. What syntax modification must I make? FYI, the "+" represents an "OR" in this case.

    Any and all help is MUCH appreciated.

    -JUGG

  2. #2
    Registered User
    Join Date
    02-21-2013
    Location
    Virginia USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: SUMPRODUCT, OR, Less than Month & Less than Year

    Additionally, the years in 'PTDE ITD 2.22.2013'!$J$15:$J$1107 are in the format "2013". I suspect this may have something to do with it.

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: SUMPRODUCT, OR, Less than Month & Less than Year

    Hi Juggaknotzz,

    Are you sure that year 2013 is there as number and not as Text ?

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Registered User
    Join Date
    02-21-2013
    Location
    Virginia USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: SUMPRODUCT, OR, Less than Month & Less than Year

    Dilipandy,

    Thanks for your reply. All of the 2013's are formatted as numbers. I copied and rewrote a portion of the formula to test if the YEAR portion was executing and it is not. Here's how I tested it:

    =SUMPRODUCT(('PTDE ITD 2.22.2013'!$J$15:$J$1107<YEAR($AQ$2))*('PTDE ITD 2.22.2013'!$V$15:$V$1107=$AN4)*('PTDE ITD 2.22.2013'!$S$15:$S$1107))

    It is returning a value of 0.

  5. #5
    Registered User
    Join Date
    02-21-2013
    Location
    Virginia USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: SUMPRODUCT, OR, Less than Month & Less than Year

    Admittedly, I am new to using dates in formulas and it is probably evident here. haha

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: SUMPRODUCT, OR, Less than Month & Less than Year

    Okay.. upload a sample workbook.




    Regards,
    DILIPandey
    <click on below * if this helps>

  7. #7
    Registered User
    Join Date
    02-21-2013
    Location
    Virginia USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: SUMPRODUCT, OR, Less than Month & Less than Year

    DILI,

    I would certainly upload a sample workbook however this is being done on my work computer and we are not able to upload. :-(

  8. #8
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: SUMPRODUCT, OR, Less than Month & Less than Year

    Okay.. so let me try testing it .. using a portion of your formula below:-

    =SUMPRODUCT(('PTDE ITD 2.22.2013'!$J$15:$J$1107<YEAR($AQ$2)*1)

    Try above formula and let me know what result you are getting... ?


    Regards,
    DILIPandey
    <click on below * if this helps>

  9. #9
    Registered User
    Join Date
    02-21-2013
    Location
    Virginia USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: SUMPRODUCT, OR, Less than Month & Less than Year

    =SUMPRODUCT(('PTDE ITD 2.22.2013'!$J$15:$J$1107<YEAR($AQ$2)*1) is giving me 0.

    Thanks a MILLION for helping me with this.

  10. #10
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: SUMPRODUCT, OR, Less than Month & Less than Year

    Okay.. so that means no result is matching in this part and hence your overall formula result is 0.

    I need to see the sample, try uploading a sample from home... thx

    Regards,
    DILIPandey
    <click on below * if this helps>

  11. #11
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: SUMPRODUCT, OR, Less than Month & Less than Year

    what does
    =SUM('PTDE ITD 2.22.2013'!$J$15:$J$1107)
    return?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  12. #12
    Registered User
    Join Date
    02-21-2013
    Location
    Virginia USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: SUMPRODUCT, OR, Less than Month & Less than Year

    Quote Originally Posted by JosephP View Post
    what does
    =SUM('PTDE ITD 2.22.2013'!$J$15:$J$1107)
    return?
    Joseph,

    Thanks a lot for your reply! Strikingly, that formula returned a big 0. There were errors in all of those cells indicating that it was a number stored as text so I converted them all to numbers. Now that formula returns a large number. That's a step in the right direction!

    Thanks, brother!

  13. #13
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: SUMPRODUCT, OR, Less than Month & Less than Year

    so what is the current status as regards your original question-formula working or no?

  14. #14
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: SUMPRODUCT, OR, Less than Month & Less than Year

    There were errors in all of those cells indicating that it was a number stored as text so I converted them all to numbers.
    I already guessed that..

    so it is always better to post a sample workbook...

    Regards,
    DILIPandey
    <click on below * if this helps>

  15. #15
    Registered User
    Join Date
    02-21-2013
    Location
    Virginia USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: SUMPRODUCT, OR, Less than Month & Less than Year

    Quote Originally Posted by dilipandey View Post
    I already guessed that..

    so it is always better to post a sample workbook...

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILI,

    You did guess that and I appreciate it, brother. I thought that I had formatted them as numbers but apparently they were still stored as text. Kudos to you both.

  16. #16
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: SUMPRODUCT, OR, Less than Month & Less than Year

    you are welcome Juggaknotzz... cheers

    please mark this thread as [SOLVED].. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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