ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   formula with text string (https://www.excelbanter.com/excel-programming/341432-formula-text-string.html)

redb

formula with text string
 
Okay, my problem is as follows:
A1=10
A2=5
In D1, the formula is:
=IF(A1=A2,"Nothing Owed",(A1-A2)&" needs to be paid.")

At the moment, D1 says "5 needs to be paid.", but I want it to say "$5.00
needs to be paid." How do I change the formula? (All cells are designed to
show as currency.)

Thanks so much, I just can't seem to make it work!



redb

formula with text string
 
Sorry - I put this question in the wrong forum!

Roger Govier[_10_]

formula with text string
 
see reply posted to question in excel.misc
Regards

Roger Govier


redb wrote:
Okay, my problem is as follows:
A1=10
A2=5
In D1, the formula is:
=IF(A1=A2,"Nothing Owed",(A1-A2)&" needs to be paid.")

At the moment, D1 says "5 needs to be paid.", but I want it to say "$5.00
needs to be paid." How do I change the formula? (All cells are designed to
show as currency.)

Thanks so much, I just can't seem to make it work!



NickHK

formula with text string
 
redb,
Seems appropriate to me.

=IF(A1=A2,"Nothing Owed",DOLLAR(A1-A2) & " needs to be paid.")

NickHK

"redb" wrote in message
...
Sorry - I put this question in the wrong forum!




redb

formula with text string
 
Thanks! I knew there was a simple solution, but I just couldn't get the
formula to work out. This helps a lot!

"NickHK" wrote:

redb,
Seems appropriate to me.

=IF(A1=A2,"Nothing Owed",DOLLAR(A1-A2) & " needs to be paid.")

NickHK

"redb" wrote in message
...
Sorry - I put this question in the wrong forum!






All times are GMT +1. The time now is 05:33 PM.

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