ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formatting data within an equation (https://www.excelbanter.com/excel-worksheet-functions/53169-formatting-data-within-equation.html)

jonrtait

Formatting data within an equation
 
Hi there

I am trying to format a number within an formula as per below. The cells
both contain numbers (as a result of other formulae and I'd like to format
the answer so that the n50-e50/e50-n50 is a number with only two decimal
places.

=IF(E50<N50,"This will save you £"&(N50-E50)&".","This will save you
£"&(E50-N50)&".")

Any help appreciated.

Thanks

Don Guillett

Formatting data within an equation
 
Have a look in help index for TEXT

--
Don Guillett
SalesAid Software

"jonrtait" wrote in message
...
Hi there

I am trying to format a number within an formula as per below. The cells
both contain numbers (as a result of other formulae and I'd like to format
the answer so that the n50-e50/e50-n50 is a number with only two decimal
places.

=IF(E50<N50,"This will save you £"&(N50-E50)&".","This will save you
£"&(E50-N50)&".")

Any help appreciated.

Thanks




JE McGimpsey

Formatting data within an equation
 
One way:

="This will save you " & TEXT(ABS(N50-E50),"£0.00.")



In article ,
"jonrtait" wrote:

Hi there

I am trying to format a number within an formula as per below. The cells
both contain numbers (as a result of other formulae and I'd like to format
the answer so that the n50-e50/e50-n50 is a number with only two decimal
places.

=IF(E50<N50,"This will save you £"&(N50-E50)&".","This will save you
£"&(E50-N50)&".")

Any help appreciated.

Thanks



All times are GMT +1. The time now is 01:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com