Excel Formula to add text/word to a percentage result [duplicate]

被刻印的时光 ゝ 提交于 2020-12-13 03:37:50

问题


I have a formula in 1 cell

=(A6-B6)/B6

Which results to -0.105243123560658in 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!