+ Reply to Thread
Results 1 to 4 of 4

Bug in Excel 2003 or am I missing something here!?

Hybrid View

  1. #1
    Registered User
    Join Date
    01-13-2012
    Location
    New Hampshire
    MS-Off Ver
    Excel 2003
    Posts
    6

    Bug in Excel 2003 or am I missing something here!?

    I have found something strange that is screwing up my spreadsheet and I just don't get it.... I am beginning to think it is a bug but perhpas not. Anyone know what it up here?!

    I have copied this formula: =COUNTIF(IF(($A$2:$A$9>=$D$1)*($A$2:$A$9<=$D$2),$B$2:$B$9),"<=50") in to numerous cells (just to test it) and it only works in the cells that are in the same row as the data.

    To simplify it, I have two columns of data with 8 data points (located in rows 2 through 9):

    Date DaystoProcess
    5/11/11 48
    6/13/11 16
    5/19/11 50
    5/20/11 52
    5/23/11 49
    6/2/11 40
    5/23/11 52
    5/26/11 70


    Then I have a start date and end date in two other cells (D1 and D2).
    All the cells are referenced with dollar sign ("$") so there shouldn't be any issues with referencing the wrong cells.

    If I copy this formula into any cell located in rows 2 through 9 it works. If it is referenced in any other cells then it results in a #VALUE!.


    Very puzzling!!!
    Or am I missing about something???
    ~Amy
    Last edited by amycclark; 01-20-2012 at 03:35 PM.

  2. #2
    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: Bug in Excel 2003 or am I missing something here!?

    Hi Amy

    Your formula is lock($), for rows 2:9 ($A$2:$A$9<=$D$2),$B$2:$B$9)

    First try to put out the $.

    And if you still have problem, upload a sample workbook.
    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.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Bug in Excel 2003 or am I missing something here!?

    Unlike some other functions you would use that construct with, COUNTIF requires a range (not an array) as the first argument; if either of the conditions fails, the value is False, which is not a range.

    Since you don't have COUNTIFS in Excel 2003, you need to use SUMPRODUCT.

    =SUMPRODUCT(($A$2:$A$9>=$D$1) * ($A$2:$A$9<=$D$2) * ($B$2:$B$9 <= 50))
    Last edited by shg; 01-20-2012 at 12:21 PM.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    01-13-2012
    Location
    New Hampshire
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Bug in Excel 2003 or am I missing something here!?

    Thanks to both of you.

    Fotis1991, taking out the $ didn't do anything differnt but I hard a hard time concentrating after seeing your Summer in Greece photo. ; )

    shg - I switched over to the sumproduct and that works in all cells so big thanks!!!

    Not necessary to discuss, but I am not sure why COUNTIF would work as written in some cells but not others. Strange to me still but I am on board with using sumproduct!

    THANKS!
    ~Amy

+ 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