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

[TABLE="class: grid, width: 1021"]
<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Annual Peak KWh*[/TD]
[TD]Annual Shoulder KWh*[/TD]
[TD]Annual Off Peak KWh*[/TD]
[TD]Opportunity type*[/TD]
[TD]NMI/MIRN State*[/TD]
[TD]Eligible for Pricing?[/TD]
[TD]NMI Acquisition or Renewal[/TD]
[TD]Threshold Validation[/TD]
[/TR]
[TR]
[TD="align: right"]180,000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]80000[/TD]
[TD]Acquisition[/TD]
[TD]VIC[/TD]
[TD]Not Eligible[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]180,000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]80000[/TD]
[TD]Acquisition[/TD]
[TD]VIC[/TD]
[TD]Eligible[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]200000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]60000[/TD]
[TD]Acquisition[/TD]
[TD]QLD[/TD]
[TD]Not Eligible[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]300000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]40000[/TD]
[TD]Acquisition[/TD]
[TD]SA[/TD]
[TD]Eligible[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Maybe try;

=IF(AND(OR(E2="VIC",E2="NSW",E2="QLD"),A2>100000),">100000",IF(AND(OR(E2="NSW",E2="SA"),A2>160000),">160000"))
 
Upvote 0
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"))
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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