WHAT IF question

Tplongy

New Member
Joined
Aug 8, 2023
Messages
3
Office Version
  1. 365
Platform
  1. MacOS
Hi there

Am new to the forum and am not sure if I am therefore posting this in the correct place, hopefully someone will tell me if not!
I am totally new to the "What if" formula. I have read various examples online, but have to admit am flummoxed and wonder if anyone can help.
I am doing a cashflow forecast. What I want is for my cell (E13) to look at Cell D25, and only insert a value into E13 if the cell D25 is a NEGATIVE value, otherwise cell E13 to remain at zero.

Could anybody please help with out?

Many many thanks :)
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Welcome to the Board!

You did not specify what value you want to insert, or where it is coming from, but your formula in cell E13would look something like this:
Rich (BB code):
=IF(D25<0,x,0)
where "x" is the number you want to insert.
 
Upvote 0
Hi Joe4
Thank you speedy answer, but appreciated. If for example the value in cell D25 is -2500 then I would want cell E13 to insert that value.
If the value in D25 is a positive value, ie 2500, then I would want cell E13 to say zero/0.
Is this what you needed?
 
Upvote 0
OK, just do what I said and replace the "x" with D25 (it was not clear what number you wanted to return), i.e.
Excel Formula:
=IF(D25<0,D25,0)

But if this is what you really want to do, you can use an even simpler formula:
Excel Formula:
=MIN(D25,0)
 
Upvote 0
Perfect, works like a dream!! Its amazing how simple things are when you know what you are doing.
Many thanks, much appreciated.:)
 
Upvote 0
You are welcome.
Glad I was able to help!
:)
 
Upvote 0

Forum statistics

Threads
1,215,436
Messages
6,124,869
Members
449,192
Latest member
MoonDancer

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