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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,214,936
Messages
6,122,340
Members
449,079
Latest member
rocketslinger

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