IF AND OR Formula

danniaus

New Member
Joined
Jun 2, 2016
Messages
20
Hello

I am trying to complete a formula for the following

I want to check that if the value in NMI MIRN State says VIC OR NSW OR QLD then the value in Annual Peak KWh needs to be greater than 100000 or IF NMI MIRN State says NSW or SA then the value in Annual Peak KWh needs to be greater than 160000

This is for each row

Any help appreciated

Annual Peak KWh*Annual Shoulder KWh*Annual Off Peak KWh*Opportunity type*NMI/MIRN State*Eligible for Pricing?NMI Acquisition or RenewalThreshold Validation
180,000080000AcquisitionVICNot Eligible
180,000080000AcquisitionVICEligible
200000060000AcquisitionQLDNot Eligible
300000040000AcquisitionSAEligible

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

RasGhul

Well-known Member
Joined
Jul 15, 2016
Messages
612
Maybe try;

=IF(AND(OR(E2="VIC",E2="NSW",E2="QLD"),A2>100000),">100000",IF(AND(OR(E2="NSW",E2="SA"),A2>160000),">160000"))
 

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
13,236
Office Version
  1. 2007
Platform
  1. Windows
Hello

I am trying to complete a formula for the following

I want to check that if the value in NMI MIRN State says VIC OR NSW OR QLD then the value in Annual Peak KWh needs to be greater than 100000 or IF NMI MIRN State says NSW or SA then the value in Annual Peak KWh needs to be greater than 160000

This is for each row

Any help appreciated

Do not comment what is the result you need in case you meet any of the conditions.

You also have these letters "NSW" in the 2 conditions. If it is greater than 160,000 and "NSW" then you should first review this condition.

Try this:

Code:
=IF(AND(A2>160000,OR(E2={"NSW","SA"})),">160",IF(AND(A2>100000,OR(E2={"VIC","NSW","QLD"})),">100","Does not meet"))
 

Forum statistics

Threads
1,136,275
Messages
5,674,782
Members
419,524
Latest member
helensesc

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
Top