+ Reply to Thread
Results 1 to 9 of 9

Sumif error

  1. #1
    Forum Contributor
    Join Date
    06-16-2008
    Posts
    287

    Sumif error

    I have wrote the following formula which keeps giving me a #N/A error. I was wondering if any1 can point out where i am going wrong.

    Please Login or Register  to view this content.
    $C$4:$C$686 = agent names
    $B702 = humpty dumpty (which exists in C17 from range $C$4:$C$686)

    $E$4:$IE$4 = agent status
    $AG$2 = Training (which exists in AP4 from range $E$4:$IE$4)

    the answer should be 08:45 rather than #N/A.

    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    In the array formula All your ranges need to be the same length 4:686 but your middle term is E:IE so this is not calcuable, the length of the column just being one cell

    Regards

    Dav

  3. #3
    Forum Contributor
    Join Date
    06-16-2008
    Posts
    287
    Thanks Dav, I will try and change $E$4:$IE$4 to $E$4:$IE$686 and see if that works.

  4. #4
    Forum Contributor
    Join Date
    06-16-2008
    Posts
    287
    Dav, i have tried that and now it gives me a #VALUE! error.

    Please Login or Register  to view this content.
    Any ideas?

  5. #5
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    well your ranges highlighted in red

    Please Login or Register  to view this content.
    why not attach a version of the spreadsheet, or a scaled down version of the spreadsheet, say 20 rows, so we can have a clearer idea of the results

    Regards

    Dav

    are not the same width

  6. #6
    Forum Contributor
    Join Date
    06-16-2008
    Posts
    287
    Dav, I have attached a sample workbook.

    Thanks once again.
    Attached Files Attached Files

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481
    Your range references are wrong. Try

    =SUM(IF(Pivot!$C$5:$C$31=$B3,IF(Pivot!$D$4:$F$4=Sheet1!G$2,Pivot!$D$5:$F$31,0),0))
    Cheers
    Andy
    www.andypope.info

  8. #8
    Forum Contributor
    Join Date
    06-16-2008
    Posts
    287
    thanks, andy i will give that a go.

  9. #9
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    Or perhaps

    =SUMPRODUCT((Pivot!$C$5:$C$31=$B3)*(OFFSET(Pivot!$C$5,0,MATCH($G$2,Pivot!$D$4:$F$4,0),27,1)))

    Regards

    Dav

+ 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