is this possible with a formula?

nicolette

New Member
Joined
Mar 28, 2011
Messages
18
hi, ok so I have made the following formula and everything works. So i decided that I wanted to also have the formula get the results of 2 cells and if the result is -1 or less post the opposite to a different cell.

Say, B1 contains 5.00 and B2 contains 7.00 (5.00 - 7.00) resulting in
-2.00 in cell B3 is there a way to put 2.00 is cell B4 and 0 in cell B3?

Here is my formula, in this formula it would be the results of J7 & P7 and I want the results in cell AB7. Cell AH7 contains the fromula

=IF(AB7>=0,(IF(J7>0,(IF(P7<>0,J7-P7,(IF(V7<>0,J7+V7,(IF((AND(P7=0,V7=0)),J7,0)))))),0)),0)

Now, Cell AB7 contains this formula
=IF(D7>0,(IF(P7<>0,D7+P7,(IF(V7<>0,D7-V7,(IF((AND(P7=0,V7=0)),D7,0)))))),0)

I'm thinking that because cell AB7 contains a formula my idea won't work but it never hurts to ask...

I hope I explained that in an understandable manner.
Nicolette
 
Last edited:
ok so now I have to formulas all working and calculating as needed except I still have not been able to figure out if there is a way to transfer the negative result to a different cell...

Any one have any ideas? Here is my formula.

Positive cell Formula:
=IF(AND($D34>0,$P34>0),$D34+$P34,(IF(AND($J34=0,$P34=0,$V34=0),$D34,0)))+(IF(AND($D34>0,$V34>0),$D34-$V34,(IF(AND($D34=0,$J34=0),IF($P34>0,$P34)))))

Negative cell Formula:
=IF(AND($J34>0,$P34>0),$J34-$P34,(IF(AND($D34=0,$P34=0,$V34=0),$J34,0)))+(IF(AND($J34>0,$V34>0),$J34+$V34,(IF(AND($D34=0,$J34=0),IF($V34>0,$V34)))))

So basically if the calculations in the positive cell result in a negative I need that result to display in the negative cell and have the formula ignored. and vice versa.
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
it will be long but

IF(your formula)<0,"",(your formula)

or if (your formula)>0,"",(your formula)

as in

=IF(IF(AND($D34>0,$P34>0),$D34+$P34,(IF(AND($J34=0,$P34=0,$V34=0),$D34,0)))+(IF(AND($D34>0,$V34>0),$D34-$V34,(IF(AND($D34=0,$J34=0),IF($P34>0,$P34)))))<0,"",IF(AND($D34>0,$P34>0),$D34+$P34,(IF(AND($J34=0,$P34=0,$V34=0),$D34,0)))+(IF(AND($D34>0,$V34>0),$D34-$V34,(IF(AND($D34=0,$J34=0),IF($P34>0,$P34))))


I stand by the fact your formuls is overcomplicated though haha
 
Upvote 0
I stand by the fact your formuls is overcomplicated though haha

LOL :laugh: I have no doubt about that but I tried and played with all suggestions I received from everyone and well that is what I ended up with to get the results I wanted I think the fact that it is essentially divided up into 4 section Positive negative positive negative and that I have to be able to check which of those have entries and do the calculations on that etc. It is the combinations that are possible that made the whole thing complicated and difficult... I will definetly try your suggestion and let you know how it works, my fingers are crossed cause I need the number to come out right so they can be used in the financial statement sheets to calculate capital, net profit or loss, expenses, cash flow, etc.
 
Upvote 0
Good luck with it.... by the time its sorted you could have counted it on yer fingers................
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,671
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top