+ Reply to Thread
Results 1 to 3 of 3

Sumproduct and value error

  1. #1
    Registered User
    Join Date
    04-06-2006
    Posts
    11

    Sumproduct and value error

    I have a sumproduct formula that I am using to determine the sum between two date ranges and I am getting a Value error.

    Example:
    SUMPRODUCT(('FY 2006'!A8:A550="12-26-05")*('FY 2006'!A8:A550<="1-1-06")*('FY 2006'!B8:B550))

    The problem is that column B containes both text and numbers.

    How do I amend the formula to ignore the text (or count as zero)?

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    12-16-2004
    Location
    Canada, Quebec
    Posts
    363
    Hi

    I am not to good with formulas, but did you try something like

    SUMPRODUCT(isnumeric('FY 2006'!A8:A550="12-26-05")*('FY 2006'!A8:A550<="1-1-06")*('FY 2006'!B8:B550))

    Thanks
    Denis

  3. #3
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    To be on the safe side and gain flexibility :

    1. extract from formula the dates and place them in separate cells C2 and D2

    2. add operator --

    =SUMPRODUCT(('FY 2006'!A8:A550=C2)*('FY 2006'!A8:A550<=D2)*--('FY 2006'!B8:B550))

    HTH
    Cheers
    Carim

+ 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