问题
I have a formula in 1 cell
=(A6-B6)/B6
Which results to -0.105243123560658
in cell C6. A6 has the new sales amount and B6 has the old sales amount. I'm trying to get the result formatted like:
Difference is 10%
I have 2 problems
- How to get the decimals turn into non-decimal number (I'm already researching on this)
- How to add a text/word to a calculation result like adding
"Difference is "
to the(A6-B6)/B6
calculation result.
This I have tried to research and the only solution I can find involves using additional cells. Is there a way to do this with using only 1 cell ($C$6)? I tried
="Difference is "&(A6-B6)/B6
but I'm getting Difference is -0.105243123560658
instead. Also tried:
="Difference is "&($B$6-$C$6)/ABS($C$6)
回答1:
You need the TEXT function:
="Difference is "&TEXT(ABS(A6-B6)/B6,"0%")
来源:https://stackoverflow.com/questions/42427226/excel-formula-to-add-text-word-to-a-percentage-result