+ Reply to Thread
Results 1 to 3 of 3

Conditional PRODUCT function formula

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    839

    Conditional PRODUCT function formula

    Hi,

    I am trying to use a PRODUCT formula to return the product of a list of numbers in a column, between 2 specified dates. The spreadsheet is arranged as follows:

    Column B A list of dates
    Column C & D Numerical data not used in any calculations
    Column E The numbers to multiply together
    Cell A1 Start date to be used in the PRODUCTformula
    Cell A2 End date to be used in the PRODUCT formula

    The formula I have to multiply the data in column E, subject to the start and end dates in Column A is:

    {=PRODUCT(IF(B15:B1000>A1,IF(B15:B1000<=A2,INDEX(B15:E1000,0,4))))}

    This returns zero though works appropriately if I replace “PRODUCT” with a “SUM”.

    Can someone please suggest what I’m doing wrong?

    Thanks!
    Last edited by andrewc; 10-01-2009 at 12:11 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional PRODUCT function formula

    If replacing PRODUCT with SUM works, then your formula should work.. maybe some formatting issues....can you post a sample?
    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.

  3. #3
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    839

    Re: Conditional PRODUCT function formula

    Hi,

    I've figured out what was wrong with this; the range from which I was trying to multiply included blank cells. When I filled any blank cells with a "1" (which obviously won't affect the result of multplication), the formula works as expected.

    Thanks

+ 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