+ Reply to Thread
Results 1 to 4 of 4

Thread: Referencing a cell with a date, not working.

  1. #1
    Registered User
    Join Date
    02-15-2011
    Location
    fdafasd
    MS-Off Ver
    Excel 2003
    Posts
    36

    Referencing a cell with a date, not working.

    I have the following in a cell:

    =SUMPRODUCT('\\Znas1\dept_docs\MFG\Org4Riley\IEC109_110FA\ContinuousImprovement\[OEE_109FA.xlsm]Line Data Table'!$L$1:$L$9000,
        --('\\Znas1\dept_docs\MFG\Org4Riley\IEC109_110FA\ContinuousImprovement\[OEE_109FA.xlsm]Line Data Table'!$A$1:$A$9000=K1),
        --('\\Znas1\dept_docs\MFG\Org4Riley\IEC109_110FA\ContinuousImprovement\[OEE_109FA.xlsm]Line Data Table'!$D$1:$D$9000=1),
        --('\\Znas1\dept_docs\MFG\Org4Riley\IEC109_110FA\ContinuousImprovement\[OEE_109FA.xlsm]Line Data Table'!$B$1:$B$9000="IEC109-1"))
    Problem is, cell K1 contains dates. If I enter the date, say 6/27/11, my code works and the data is successfully pulled from the OEE_109FA.xlsm file. However if I use something like =now()-2, it doesn't work and my returned values are always 0 from my OEE_109FA.xlsm file. Is there any reason why I can't reference a date from a formula with my sumproduct? thanks

  2. #2
    Extremely Helpful member
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,127

    Re: Referencing a cell with a date, not working.

    Check the syntax of the NOW function compared to the TODAY() function
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

  3. #3
    Registered User
    Join Date
    02-15-2011
    Location
    fdafasd
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Referencing a cell with a date, not working.

    arthurbr,

    Thank you for your response; I'm not sure what you're referring to, would you care to elaborate? thank you.

  4. #4
    Extremely Helpful member
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,127

    Re: Referencing a cell with a date, not working.

    As XL help will have told you NOW gives actual date AND time. TODAY only the actual date
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

+ 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.2.0