I have a pivot table that is counting the amount of records from two date data type columns. One column will have a value for the full size of the sample, while the other will either have a value or be blank. I have no issue of counting these columns when dropping them in the "Values" section of the pivot table, but when I try to create a calculated field that divides one column by the other, I receive an error value. Is this due to the data type for both the columns (date)? When I do COUNT(column)/COUNT(column) I receive 100%, which is incorrect. Any idea of what I'm doing wrong?

Here is an example of the data being divided:

Lead Created Date/Time = 1/1/2017 1:09:00 AM

First Paying Date = 1/20/2017

Here is the calculated field (CVR):

='First Paying Date'/'Lead Created Date/Time'

Here is the output:

excel calculated field error

  • Why are you trying to divide two dates, don't you want to subtract them instead? That would give you the time between the two dates. – Bandersnatch Aug 28 '17 at 23:03
  • I actually want to divide the count of the two dates to determine a conversion rate, however as I pointed out in my example in the body, COUNT('First Paying Date')/COUNT('Lead Created Date/Time' renders 100% for every row in my pivot table. – cphill Aug 29 '17 at 13:04
  • OK, I get it finally. You're not dividing dates, you're trying to divide a count of the number of dates in each column. Something is going on with your COUNT() function. Test it. Does it correctly count the values in each column alone? It should count only numbers or dates and exclude blank and empty cells. – Bandersnatch Aug 29 '17 at 16:24
  • That COUNTA unfortunately does not render the correct division. Every record appears with 100%. http://imgur.com/a/Pykq5 – cphill Aug 30 '17 at 21:26
  • I meant test it by counting the two columns separately. The answer should be a number, not 100%. If your columns have only dates and blanks, you should get the number of dates. Test it. – Bandersnatch Aug 30 '17 at 23:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.