• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Negative value to make

jack999

Member
I am using this (=J4+D56-K4-D57) formula and getting negative value, but I want this negative value to make credit


suppose if the answer is -59700.00 I want the value as 59700.00 credit

if the result is 59700.00 then 59700.00 debit

can any one give a solution.
 
Hi, jack999!

Yes, you can use an IF statement but that'd be in another cell:

=TEXT(A1,"#0,00")&IF(A1>0," debit"," credit")

where A1 is the original cell.

Regards!
 
Can we use if statement on this =J4+D56-K4-D57 formula for getting the same result on the same cell.


regards
 
Hi, jack999!

Just change the two occurrences of A1 in the previous formula by J4+D56-K4-d57.

Regards!
 
Did you try it like this?

[pre]
Code:
=TEXT(J4+D56-K4-D57,"0.00 ")&IF((J4+D56-K4-D57)>0,"debit","credit")
[/pre]
 
Back
Top