IF/Then formula assistance

DTbox

New Member
Joined
Dec 14, 2022
Messages
16
Office Version
  1. 2019
Platform
  1. Windows
I'm trying to do the following. I've searched on line and hae come up empty with results. Maybe I'm not using the correct terminology, hopefully I can get some assistance here. Thanks in advance for taking the time to help.

I have cells in column D as a drop down so the user can select YES/NO if they are done with that section of the document. I'd like the YES/NO row of each major heading to auto populate with YES/NO based on whether all of the subsections are completed, YES.

For instance, look at column A (Para. No.), specifically "1". I'd like D3 to auto populate with YES if both the sub sections (1.1 and 1.2) are YES, and vise verse, say NO if any subsection says NO. What is the formula I would enter into D3? I'd then copy that formula for each of the other sections.
 

Attachments

  • EXCEL.PNG
    EXCEL.PNG
    41.3 KB · Views: 9

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
=IF(AND(D4="YES",D5="YES"),"YES","NO")

No copy because all your projects have different qty of rows
Do it manual :")
D6 will look something like this

=IF(AND(D7="YES",D8="YES",D9="YES",D10="YES"),"YES","NO")
 
Upvote 0
Another option
Excel Formula:
=IF(COUNTIFS(D7:D10,"No"),"No",IF(COUNTIFS(D7:D10,"<>"),"Yes",""))
 
Upvote 0
Thansk!
=IF(AND(D4="YES",D5="YES"),"YES","NO")

No copy because all your projects have different qty of rows
Do it manual :")
D6 will look something like this

=IF(AND(D7="YES",D8="YES",D9="YES",D10="YES"),"YES","NO")
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Sorry, one last question. How do I add another part to the formula?

The below works great and now I need to add another drop down, IN PROGRESS.
=IF(COUNTIFS(D7:D10,"No"),"No",IF(COUNTIFS(D7:D10,"<>"),"Yes",""))

What changes to the formula if I need the following to occur?

D3 only needs to display YES or NO.

If the group below is not all YES, then D3 displays NO. For instance, if D4 is YES and D5 is IN PROGRESS, then D4 is NO. D3 is only to display a YES is all cells in that section reflect a YES in the cell.


Glad we could help & thanks for the feedback
 
Upvote 0
How about
Excel Formula:
=IF(COUNTIFS(D7:D10,"<>Yes",D7:D10,"<>"),"No",IF(COUNTIFS(D7:D10,"<>"),"Yes",""))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,043
Messages
6,122,825
Members
449,096
Latest member
Erald

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