Updating existing formula to add conditional logic

bdav1216

New Member
Joined
Mar 19, 2016
Messages
37
Office Version
  1. 2016
Platform
  1. Windows
Here is my current formula - everything is working:
Excel Formula:
=IFERROR(IF(N(R3),IF(O3,O3,P3)-R3,"-"),"-")

I need to add a condition:

If Column Q = "No Do", then perform the calculation else, output '-'.

How would I update this forumula?
 
Last edited by a moderator:

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
You can use AND function, and check two conditions:
Excel Formula:
=IFERROR(IF(AND(N(R3), Q3="No Do"),IF(O3,O3,P3)-R3,"-"),"-")
 
Upvote 0
Thank you!

One other question to my existing formula:

Excel Formula:
=IFERROR(IF(N(R3),IF(O3,O3,P3)-R3,"-"),"-")

How would I adjust this to say :

If Column N GE 1", then perform the calculation else, output '-'.

There are '-' values in Column N if that makes a difference, but I only want to calculate the logic if the value in Column N is GE 1.

How would I update this formula?
 
Upvote 0
Same function, AND, but to check N3 cell value this time:

Excel Formula:
=IFERROR(IF(AND(N(R3), N3="GE 1"),IF(O3,O3,P3)-R3,"-"),"-")
 
Upvote 0
To clarify, I didn't mean "GE 1" in the literal sense, but if the value is GE 1.

Also, can I add one final item?

If Column M is GE 1 AND Column N is GE 1, then perform the calculation. Just to note, both are actual values (meaning the data could have 1, 2, 3, or '-') in either column.
 
Upvote 0
Sorry, I didn't understand what GE 1 is.
Perhaps someone else would understand, or you might want to try posting a sample row by using XL2BB.
 
Upvote 0
Let me try and clarify. Also, thank you!

Current Formula:
=IFERROR(IF(N(R3),IF(O3,O3,P3)-R3,"-"),"-")

Add to existing formula:
If M3 >0 AND N3 > 0 then calculate the formula above OR default to '-'.
 
Upvote 0

Forum statistics

Threads
1,214,659
Messages
6,120,786
Members
448,992
Latest member
prabhuk279

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