Excel IF Statement

Elizsk

New Member
Joined
Feb 25, 2021
Messages
1
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I want to use an IF statement in excel that will do the same calculation over and over again for the column and once it hits a negative value it will calculate the one negative value and then the rest afterwards will be zero (because the following will still be negatives). The IF statement I tried to use was =IF(Q22>=0,R21+Q22,0), however when Q = '-' then it doesn't calculate R it will just insert 0.
1614272918806.png
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Please use XL2BB to upload a sample data that we can manipulate. We cannot manipulate the data in a picture.
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(OR(Q21>=0,Q22>=0),R21+Q22,0)
 
Upvote 0

Forum statistics

Threads
1,215,051
Messages
6,122,872
Members
449,097
Latest member
dbomb1414

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