+ Reply to Thread
Results 1 to 5 of 5

IF with SUMPRODUCT error

  1. #1
    Forum Contributor
    Join Date
    01-11-2007
    Posts
    127

    IF with SUMPRODUCT error

    IF(C45<>"",C45,
    IF(D45="","--",
    IF(MONTH($T45)<>MONTH(N1),"D",
    IF(SUMPRODUCT(--(P45:P50=D45),--(Q45:Q50=E45),--(R45:R50=G45),--(S45:S50="D")),"D",
    IF(SUMPRODUCT(--(P45:P50=D45),--(Q45:Q50=E45),--(R45:R50=G45),--(S45:S50="A")),"P",
    IF(SUMPRODUCT(--(P45:P50=D45),--(Q45:Q50=E45),--(R45:R50=G45),--(S45:S50="B")),"P",
    IF(SUMPRODUCT(--(P45:P50=D45),--(Q45:Q50=E45),--(R45:R50=G45),--(S45:S50="C")),"P",
    IF(SUMPRODUCT(--(P45:P50=D45),--(Q45:Q50=E45),--(R45:R50=G45),--(S45:S50="ZZZ")),"ZZZ",
    "D"))))))))

    Can anyone help me with this formula? It worked fine until I added the 3rd line, IF(MONTH($T45)<>MONTH(N1),"D",
    When I copy and paste the formula I am not given any error message, instead the formula just becomes entered as text (I can see the formula in the cell rather than a result).

    Thanks.

    Dan

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: IF with SUMPRODUCT error

    This doesn't have much sence.

    Upload example workbook andd write yhat you trying to do and what's your expected result.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF with SUMPRODUCT error

    Hi Dan
    When I copy and paste the formula I am not given any error message, instead the formula just becomes entered as text (I can see the formula in the cell rather than a result).
    Maybe, when you copy-paste the formula, also copy the "=" signal?? Copy and paste the formula without = and put this in the paste cell.....
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: IF with SUMPRODUCT error

    In Excel 2003 and earlier you cannot nest more than 7 IF() functions. Split the logic into different cells.

    Or try

    Please Login or Register  to view this content.
    cheers,

  5. #5
    Forum Contributor
    Join Date
    01-11-2007
    Posts
    127

    Re: IF with SUMPRODUCT error

    Thanks for your help. Can't believe I overlooked the equal sign at the beginning.

+ 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