Solved

Date format changed to text format

Posted on 2013-12-14
3
329 Views
Last Modified: 2013-12-14
Folks,
I would like to use the function offered to me below. In cell C2 I enter my date as text, 11/27/2013, In cells A3:A16 I have dates also formatted as text, same as in C2. Cell D3 holds the product number also formatted as text. The same formatting also applies to B3:B16, text.

{=SUMPRODUCT((DATEVALUE(D2)=$A$3:$A$16)*(D3=$B$3:$B$16))}

The result is #VALUE error.
0
Comment
Question by:Frank Freese
  • 2
3 Comments
 
LVL 11

Expert Comment

by:Angelp1ay
ID: 39718875
Is this literally just because your date is in C2 but your formula is actually referencing D2?
0
 
LVL 11

Accepted Solution

by:
Angelp1ay earned 500 total points
ID: 39718877
Also I think you need a DateValue around your range in col A:
{=SUMPRODUCT((DATEVALUE(D2)=DATEVALUE($A$3:$A$16))*(D3=$B$3:$B$16))}

Open in new window

0
 

Author Closing Comment

by:Frank Freese
ID: 39718881
Great job! You nailed it there....
Thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question