Display 1 or 0 based on multiple conditions. If one is accomplished, stop the second one from running.

Merenguito

New Member
Joined
Dec 30, 2018
Messages
8
Hey guys

I have another problem if you could please help me, thank you. I have this setup:
6rc50XNaS3acDma9SL012A.png


I want to display 1 in column M for the first item that has the condition Yes, column K is a drop down with Yes and No. I don't know how to stop the second formula to run if the first one is accomplished. I use this now:
=IF((AND(K1="Yes", K2="No")), "1", "0") and =IF((AND(K2="Yes", K1="No")), "1", "0")

When I pick Yes, M turns into 1, but if I pick Yes for the second one, both turn into 0 again. I'd like to keep the first 1, and all other duplicate items that get Yes to remain 0. Is it possible without scripts?

Thank you
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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