Compare all rows with the same A$, then, for those row results, compare all L$, if all the L$ match, then "Completed"

IfAndOrWhatAmIDoing

New Member
Joined
Jun 10, 2022
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I'm working on a schedule, and it's gotten pretty complicated (for me anyway) with Tasks with subtasks, dependencies, and etc.
Currently it's setup that I have to Copy/insert a Task+it's corresponding SubTasks for it to function properly, and then I have to go back and manually change the reference in the formula.

What I'm trying to do now is to make each row with formulas that can sustain on their own (and survive copy/insert) without having to worry about copying Task&SubTask together, and without having to manually tell it where a subtasks' Main task is. My obstacle currently it the L Status Row.

So basically, whatever row the formula is on, look at A$, then compare the M$ for all of the rows that have the same A$, and if all of the M$ say "completed" then say "Completed" here too.

I've tried a lot of things, but I haven't been able to wrap my head around a way that works... I'm not sure what the best way to share is, so let me know.
I use an older version of excel, so some functions are not available, and I am trying to stick to purely Excel basic commands, not vba or any other tools..

Portion of the formula I really care about is in Purple: (taken from M12, there's a beginning part to this formula to decide if it should run, or if formula2 should run based on if its a Task or Subtask, but I did not include in the text friendly version bellow)
Text Friendly version (apologies if there are typos):
IF($L$4="Completed","Activity Complete",IF(COUNTIF($L$13:$L$18,"Completed")=COUNTA($L$13:$L$18),"Completed",IF(VLOOKUP($C$12,$A$4:$M$43,12,0)="Begin","Execute Task",IF(VLOOKUP($C12,$A$4:$M$43,12,0)="Completed","Execute Task","Waiting")))

IF SHUTDOWN = Completed, Then: "ACTIVITY COMPLETE"
Otherwise: IF SubTasks Status for That Task are all = Completed, Then: Completed
Otherwise: if Dependancy matches exactly something in the RANGE return 12th column if= Begin, Then: Execute
Otherwise: if Dependancy matches exactly something in the RANGE TurnGreen, return 12th column if = Completed, Then: Execute
Otherwise: Waiting


Real (and full) version of M12:
=IF(MOD($B12,1)=0,IF($L$4=Tables!$A$4,"Activity Complete",IF(COUNTIF($M$12:$M$18,Tables!$B$2)=COUNTA($M$12:$M$18),Tables!$C$4,IF(VLOOKUP($C12,TurnGreen,12,0)=Tables!$A$3,Tables!$C$3,IF(VLOOKUP($C12,TurnGreen,12,0)=Tables!$C$4,Tables!$C$3,Tables!$C$2)))),IF($M12=Tables!$B$2,Tables!$C$4,IF($L$12=Tables!$C$3,Tables!$C$3,Tables!$C$2)))

A1B1C1D1E1F1G1H1I1J1K1L1M1
Task ID [Color for Partner]Sub TaskDependency / Sequence Task ID [Add 2nd Dependancy and change time & status calculation Formulas for it]Task Duration (Minutes)Main Task or Sub Task Duration (Minutes)[Will Delete This, or just extract from G, maybe add a new column to extract time, so G can be hidden when setup]Scheduled Task Time (Atlantic Time)TaskEnvironmentLocationPartner [Conditinal Formating for Partner, (if not complete?)]StatusCompleted
00.0Will Be deleted probably2022-09-10 0:01Start Time - Atlantic Time Zone 12:00 AMBegin Shut Down / Start Up
11.0302022-09-10 0:01First Task, do not copyExecute Task
11.152022-09-10 0:01Subtask 1Execute TaskNo
11.252022-09-10 0:01Subtask 2Execute TaskNo
11.352022-09-10 0:01Subtask 3Execute TaskNo
11.452022-09-10 0:01Subtask 3Execute TaskNo
11.552022-09-10 0:01Subtask 5Execute TaskNo
11.652022-09-10 0:01Subtask 6Execute TaskNo
22.01122022-09-10 0:31All other TasksWaiting
22.122022-09-10 0:31Subtask 1WaitingNo
22.222022-09-10 0:31Subtask 2WaitingNo
22.322022-09-10 0:31Subtask 3WaitingNo
22.422022-09-10 0:31Subtask 4WaitingNo
22.522022-09-10 0:31Subtask 5WaitingNo
22.622022-09-10 0:31Subtask 6WaitingNo
Any help greatly appreciated!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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