+ Reply to Thread
Results 1 to 6 of 6

Thread: sumproduct with reference to sheet not returning value

  1. #1
    Registered User
    Join Date
    05-04-2010
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007, 2010
    Posts
    26

    sumproduct with reference to sheet not returning value

    Hello,

    A sumproduct formula with text and date criteria is not returning a value and I'm hoping someone else's fresh eyes might be able to help me find out why.

    On the attached file, on sheet "budget by month 2010" in cell D11, the formula

    =SUMPRODUCT(--(ISNUMBER(SEARCH("lease payment",'register - M&I'!$D$6:$D$42))),--(TEXT('register - M&I'!$C$6:$C$42,"mmmm")="Jan"),'register - M&I'!$F$6:$F$42)

    should return the value $452 from sheet "register - M&I" from row 7.

    I'm just now starting to review this worksheet; any corrections would be greatly appreciated!
    Attached Files Attached Files
    Last edited by lallo.jr; 05-15-2010 at 02:27 PM.

  2. #2
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: sumproduct with reference to sheet not returning value

    In terms of your TEXT command you will find that "mmmm" would return "January" whereas "mmm" would return "Jan"
    (ie remove an "m" from your format)

  3. #3
    Registered User
    Join Date
    05-04-2010
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007, 2010
    Posts
    26

    Re: sumproduct with reference to sheet not returning value

    Yes, i see that now. Will a "mmm" TEXT command always return a 3 letter month abbreviation, including the month of May?

  4. #4
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,770

    Re: sumproduct with reference to sheet not returning value

    That's a bug. For May it returns the entire month name instead of the 3-letter abbreviation ...

    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    05-04-2010
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007, 2010
    Posts
    26

    Re: sumproduct with reference to sheet not returning value

    Haha, ok maybe I'm asking too much from May. My question should have been, will both "mmm" and "mmmm" work for May? I'm sure this follow up question doesn't make me look any smarter that the previous one but I guess that's why I'm here.

    Thanks

  6. #6
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,770

    Re: sumproduct with reference to sheet not returning value

    Is the art of experimentation dead?

    =TEXT("5/1/2010", "mmm")

    =TEXT("5/1/2010", "mmmm")


    in two cells and see what they do.
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0