Working out RAG status based on 3 columns

theguyIsHere

New Member
Joined
Oct 2, 2013
Messages
19
Office Version
  1. 2019
Platform
  1. MacOS
Trying to summarise the RAG status in one field but unsure how I do that

Column D needs to make sure it groups Column A and then column B and then assign the lowest RAG from column C

For example, For Workstream 1, 'Pilot' appears twice in column B with the lowest RAG status of Red. So Column D automatically needs to assign Red to Workstream 1, pilot sub workstream.

If it is easier then RAG status could be assigned a number too. For example: Red = 1, Amber = 2, Green = 3, Complete = 4 etc

Table with dummy data below. Grateful for any assistance on this, please.

Column AColumn BColumn CColumn D
WorkstreamSub-WorkstreamRAGCalculated RAG - Sub workstream
Workstream 1PilotGreenRed
Workstream 1PilotRedRed
Workstream 1DevCompleteComplete
Workstream 2TestGreenAmber
Workstream 2TestAmberAmber
Workstream 2TestGreenAmber
Workstream 2ReqRedRed
Workstream 2DarkGreenGreen
Workstream 2DarkGreenGreen
Workstream 3YellowAmberRed
Workstream 3YellowRedRed
Workstream 3BlueCompleteAmber
Workstream 3BlueAmberAmber
Workstream 3BlueGreenAmber
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Hi theguyishere,

I have a solution I believe, but it means turning column D into a helper column
so in D2 enter =VLOOKUP(C2,{"Red",1;"Amber",2;"Green",3;"Complete",4},2,FALSE)

And then in cell E2 enter =IF(C2="Complete","Complete",VLOOKUP(MIN($A$2:$A$15=A2,IF($B$2:$B$15=B2,$D$2:$D$15)),{1,"Red";2,"Amber";3,"Green"},2,FALSE))
But this will need to be entered as an array using SHIFT, CTRL and ENTER.

Regards

Ian
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Working out RAG status based on 3 columns
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Hi theguyishere,

I have a solution I believe, but it means turning column D into a helper column
so in D2 enter =VLOOKUP(C2,{"Red",1;"Amber",2;"Green",3;"Complete",4},2,FALSE)

And then in cell E2 enter =IF(C2="Complete","Complete",VLOOKUP(MIN($A$2:$A$15=A2,IF($B$2:$B$15=B2,$D$2:$D$15)),{1,"Red";2,"Amber";3,"Green"},2,FALSE))
But this will need to be entered as an array using SHIFT, CTRL and ENTER.

Regards

Ian
Thank you. When I do this, some of the fields are incorrect.

For example, line 5 , 6 and 7 should be Amber in column E but they are Red?
 

Attachments

  • Screenshot 2022-02-15 at 14.33.37.png
    Screenshot 2022-02-15 at 14.33.37.png
    115.3 KB · Views: 14
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Working out RAG status based on 3 columns
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
noted. and thank you
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
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