+ Reply to Thread
Results 1 to 2 of 2

How can I use a cell reference in Sumproduct array formula?

Hybrid View

  1. #1
    Chrism
    Guest

    How can I use a cell reference in Sumproduct array formula?

    I have a table with dates down the and employee numbers across the top.
    I have SUMPRODUCT formulas in all the cells to gather data from named
    arrays from a database in the spreadsheet. I'd like to avoid munually
    changing (either individually or with REPLACE) date and employee number
    references in each formula in each cell. my formula looks like:
    {=SUMPRODUCT((Date=DATEVALUE("11/4/04"))*(Audempno=33758)*(Units))}
    also, I used a previous suggestion from this forum on another similar
    spreadsheet (successfully...for fiscal 3/05)with copying the whole
    spreadsheet and changing the data and formulas to this one (fiscal
    11/04) and now I get zeros as a result. Any suggestions there?

    Thanks again-I hope I'm not going to the well too often.


  2. #2
    Peo Sjoblom
    Guest

    RE: How can I use a cell reference in Sumproduct array formula?

    =SUMPRODUCT(--(Date=B2),--(Audempno=C2),Units)

    where B2 holds the date and C2 the employee number

    also the function datevalue is obsolete, you might as well use

    Date=--"11/4/04"

    instead



    Regards,

    Peo Sjoblom

    "Chrism" wrote:

    > I have a table with dates down the and employee numbers across the top.
    > I have SUMPRODUCT formulas in all the cells to gather data from named
    > arrays from a database in the spreadsheet. I'd like to avoid munually
    > changing (either individually or with REPLACE) date and employee number
    > references in each formula in each cell. my formula looks like:
    > {=SUMPRODUCT((Date=DATEVALUE("11/4/04"))*(Audempno=33758)*(Units))}
    > also, I used a previous suggestion from this forum on another similar
    > spreadsheet (successfully...for fiscal 3/05)with copying the whole
    > spreadsheet and changing the data and formulas to this one (fiscal
    > 11/04) and now I get zeros as a result. Any suggestions there?
    >
    > Thanks again-I hope I'm not going to the well too often.
    >
    >


+ 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