How to create a multy rule based selection (conditional formatting)

Klemzy

New Member
Joined
Sep 14, 2021
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
Hey
I would like to create an automated excel spreadsheet for our sport event. We have many different teams form different countries and some game referees also from different countries.

The problem is: how to not do everything manually? How to make this process of arrangment atumated, so every time I change the teams I get a valid result for the referees.

In column B you have national referees listed.
I want to arrange referees into the column F. One referee per each game. It's important that all three rules are met, otherwise the result is not valid.
It's not a problem if some referees won't be arranged.

The RULES are:

1. Game referee can't be the same nationality as the both teams are.

2. Same game referee can't officiate two games at the same time.

3. Same game referee can't officiate more than two games after each other.

Sports schedule.xlsx
ABCDEFG
1GAME 1NATIONAL REFEREE
2TEAMSREFEREESSLOAUT<- Valid results could be: ITA 1, ITA 2, GER 1, GER 2, GBR 1, GBR 2
3SLOITA 1
4AUTITA 2GAME 2
5GERGER 1GERFRA<- Valid results could be: ITA 1, ITA 2, SLO 1, SLO 2, GBR 1, GBR 2
6FRAGER 2
7SWESLO 1GAME 3
8ITASLO 2SWEITA<- Valid results could be: SLO 1, SLO 2, GER 1, GER 2, GBR 1, GBR 2
9GBRGBR 1
10GBR 2GAME 4
11GBRSLO<- Valid results could be: ITA 1, ITA 2, GER 1, GER 2
12
13GAME 5
14FRAAUT<- Valid results could be: ITA 1, ITA 2, GER 1, GER 2, GBR 1, GBR 2, SLO 1, SLO 2
Sheet1
Cell Formulas
RangeFormula
D2D2=A3
E2E2=A4
D5D5=A5
E5E5=A6
D8D8=A7
E8E8=A8


Thanks for all your support and help

Klemzy

Also asked here Multi rule based selection
 
Last edited by a moderator:

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Thank you for including the cross-post information. I see that you have a solution.
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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