Results 1 to 2 of 2

#DIV/0! error where there was none before

Threaded View

  1. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Carefully check through columns M and O... there must be a #DIV/0 error somewhere in those columns....especially where there might have been a match...

    BTW: you don't need to repeat the sheet name for the top and bottom of each range.... this'll shorten the formula a bit:

    =SUM(IF('NBA Line Watching'!M31:M9999="ATL",IF('NBA Line Watching'!O31:O9999="W-b",1,0)))+SUM(IF('NBA Line Watching'!M31:M9999="ATL",IF('NBA Line Watching'!O31:O9999="W-bi",1,0)))+SUM(IF('NBA Line Watching'!M31:M9999="ATL",IF('NBA Line Watching'!O31:O9999="W",1,0)))+SUM(IF('NBA Line Watching'!M31:M9999="ATL",IF('NBA Line Watching'!O31:O9999="W-i",1,0)))
    or even shorter and better...you can use sumproduct and you don't need to confirm with CTRL+SHIFT+ENTER. Just ENTER will suffice:

    =SUMPRODUCT(('NBA Line Watching'!M31:M9999="ATL")*(('NBA Line Watching'!O31:O9999="W-b")+('NBA Line Watching'!O31:O9999="W-bi")+('NBA Line Watching'!O31:O9999="W")+('NBA Line Watching'!O31:O9999="W-i")))
    Still better and shorter and easier to add more conditions is to add an Isnumber(Match()) check....

    =SUMPRODUCT(('NBA Line Watching'!M31:M9999="ATL")*ISNUMBER(MATCH('NBA Line Watching'!O31:O9999,{"W-b","W-bi","W","W-i"},0)))
    Last edited by NBVC; 04-03-2008 at 08:15 AM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

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