IF

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,226
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
In SO2=IF(RN2=FALSE,0,MAX(SK2,SL2,AX2))

But I want the formula to check...
If RV2=100, then also MAX(SK2,SL2,AX2) else 0

How to accomplish
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Maybe

=IF(or(RN2=FALSE,RV2<>100),0,MAX(SK2,SL2,AX2))

Thanks gaz_chops for replying.

This is not the required one..
The statement goes like: If RN2=FALSE then 0 BUT IF RV2=100(even RN2=FALSE) then MAX(SK2,SL2,AX2) else MAX(SK2,SL2,AX2)
 
Upvote 0
Try...

=IF(OR(RN2,RV2=100),MAX(SK2,SL2,AX2),0)

I tried a 'similar' change in another cell but could not do?

The formula was: =IF(ACR2=FALSE,0,IF(ADI2=0,AT2,MIN(ADI2,AT2)))

I changed the formula to: =IF(OR(ACR2,ADQ2=100),IF(ADI2=0,AT2,MIN(ADI2,AT2))) to include BUT IF ADQ2=100.... but the answer is FALSE.
 
Upvote 0
I tried a 'similar' change in another cell but could not do?

The formula was: =IF(ACR2=FALSE,0,IF(ADI2=0,AT2,MIN(ADI2,AT2)))

I changed the formula to: =IF(OR(ACR2,ADQ2=100),IF(ADI2=0,AT2,MIN(ADI2,AT2))) to include BUT IF ADQ2=100.... but the answer is FALSE.

Your intend here is not clear...

Please tell: What is the meaning of OR(RN2,....

i.e. formula checks for RN2=FALSE or TRUE?

In

IF(OR(RN2,RV2=100),MAX(SK2,SL2,AX2),0)

OR checks whether either RN2 (i.e., RN2=TRUE) or RV2=100. When one of these checks are TRUE, IF proceeds to MAX, otherwise IF gives 0.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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