MicrosoftExcel 'Finding Date Difference for PivotChart Data' Work-Through

Nasar Kamal 0 Reputation points
2025-01-30T14:26:22.6733333+00:00

User's imageUser's imageUser's image

Hello,
I am using Microsoft Excel to create a document where we track errors. I have a date they're found and date they're corrected. I wanted to find the difference between the two columns and using a pivot chart to keep track of how long an error is open'.

I used the above formula in the 'date found' column to auto-populate the date when information is entered to make it easier for tracking purposes.

Date Found (Column B) and Date Corrected (Column H) were taken and initially using a subtraction formula yielded no results. I also used =DAYS() and =DATEDIF() and it did not yield results. I only got a return value of zero. I even tried to nest the above formula into the 'Days' and 'DatedIf' functions which also yielded zero. When I click into the formula--it does display the correct value as far as dates go, but on the document itself--I see zero.

Is there a way to make it so I can see the actual calculated difference or do I even need this 'Date Difference' column? Can I just pivot the data I need to begin with?

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,870 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,126 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiajing Hua-MFST 13,940 Reputation points Microsoft Vendor
    2025-01-31T02:44:18.2066667+00:00

    Hi @Nasar Kamal

    Could you please share us with a simple sample for more information?

    • If possible, you may save the sample as .xml file and upload it here.
    • Please note, delete or change the important and privacy data.

    How did you get the dates for Date Corrected (Column H)?

    Please check cell format for dates in Date Found (Column B), its source data and Date Corrected (Column H), ensure they are in Date format of MM/DD/YYYY.

    User's image

    Based on my test, using subtraction, subtract the Date Found date from the Date Corrected date to get the date difference.

    I suggest you click one cell of "Cell Difference", click Formulas tab > Evaluate Formula, click "Evaluate" to show the calculation process. Make sure the formula for Data Difference refers to the correct cells.

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.