Faulty Calculations for Percent Change Widget (Widget K)
PostPosted:Mon Nov 19, 2018 6:04 am
As stated in the title, the calculation for Widget K I found to be faulty. For example, When I entered the Actual as 5 and the Previous as 1, it gave me an 80% increase, which is obviously incorrect. The original formula used was as follows: (Please note that I have changed the linked cells in this example to "A" for Actual, "B" for Previous, and "C" for Difference, the cell with white text that subtracted B from A.)
=IF(A>B,CONCATENATE("+",ROUND((C/A)*100,0),"%"),CONCATENATE(ROUND((C/A)*100,0),"%"))
This formula basically just gives the same number and adds a + if positive. This would essentially work if you were dealing with numerical increase/decrease, but this does not work with percentile increase/decrease. I took the liberty to rewrite parts of the formula so that it came out correctly for percentage increases. The changes are in red bold.
=IF(A>B,CONCATENATE("+",SUM(ROUND((A/B)*100,0)-100),"%"),CONCATENATE(ROUND((C/B)*100,0),"%"))
Now it shows the correct increase. Instead of 5 being an 80% increase from 1, it now reads properly as a 400% increase.
I hope this information helps your better your product for future customers!
=IF(A>B,CONCATENATE("+",ROUND((C/A)*100,0),"%"),CONCATENATE(ROUND((C/A)*100,0),"%"))
This formula basically just gives the same number and adds a + if positive. This would essentially work if you were dealing with numerical increase/decrease, but this does not work with percentile increase/decrease. I took the liberty to rewrite parts of the formula so that it came out correctly for percentage increases. The changes are in red bold.
=IF(A>B,CONCATENATE("+",SUM(ROUND((A/B)*100,0)-100),"%"),CONCATENATE(ROUND((C/B)*100,0),"%"))
Now it shows the correct increase. Instead of 5 being an 80% increase from 1, it now reads properly as a 400% increase.
I hope this information helps your better your product for future customers!