Excel Equation for dates in two cells

helpplease2024

New Member
Joined
Oct 14, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I have the attached spreadsheet.

I would like column D to have an equation in there that will return:
0 if both B & C is a No.
1 if there is only one No, and
2 if there are no Nos.

I hope this makes sense.

Thank you.
 

Attachments

  • Capture.JPG
    Capture.JPG
    16 KB · Views: 6

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Try
Excel Formula:
=2-COUNTIF(B2:C2,"No")
 
Upvote 0
Solution
You're welcome. Thanks for the follow-up. :)

BTW, another simple option would be
Excel Formula:
=COUNTIF(B2:C2,"<>No")
 
Upvote 0

Forum statistics

Threads
1,224,946
Messages
6,181,950
Members
453,075
Latest member
anandn93

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