Divide some soldiers into 2 or 3 platoons.

KlausW

Active Member
Joined
Sep 9, 2020
Messages
458
Office Version
  1. 2016
Platform
  1. Windows
Hello

Can anyone help with this challenge. I need to divide some soldiers into 2 or 3 platoons.

The number of the platoons stand in E1.

In column A from A2 down are the heights of soldiers, in column B from B2 down are their names. in column C from C2 down is their gender, in column D from D2 down is their job / occupation.

They must be distributed on 2 or 3 sheets.

So that there are about the same number of people in height, the same number of men and woman, and if there are more with the same job / occupation, and about the same number in each platoon.

All help will be appreciated

Best regards

Klaus W
 

Attachments

  • 1 picture.png
    1 picture.png
    61.2 KB · Views: 26
  • 1 platoon.png
    1 platoon.png
    20.5 KB · Views: 21
  • 2 platoon.png
    2 platoon.png
    22.3 KB · Views: 32

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hello

Can anyone help with this challenge. I need to divide some soldiers into 2 or 3 platoons.

The number of the platoons stand in E1.

In column A from A2 down are the heights of soldiers, in column B from B2 down are their names. in column C from C2 down is their gender, in column D from D2 down is their job / occupation.

They must be distributed on 2 or 3 sheets.

So that there are about the same number of people in height, the same number of men and woman, and if there are more with the same job / occupation, and about the same number in each platoon.

All help will be appreciated

Best regards

Klaus W

Can you please use Xl2BB to submit your data instead of people having to replicate it for themsalves?
 
Upvote 0
Hi Herakles like this ?



Delings.xlsx
ABCD
1HeightNameGenderjob / occupation
Ark1


Delings.xlsx
G
8
1 delingen


Delings.xlsx
ABCDEF
1HeightNameGenderjob / occupationDelinger
2 delingen
 
Last edited:
Upvote 0
Hi Klaus, you need to select the range that you need posted before you click the Mini Sheet button (only select about 20 rows if it represents the information needed)
 
Upvote 0
This way ?

Delings.xlsx
ABCD
1HeightNameGenderjob / occupation
2158Aleksander MKok
3158Frederikke KUfaglært
4158Carl-EmilMHHX
5162OliverKHTX
6164IsabellaMSTX
7164JeanMSTX
8165CilleMHF
9166Sofie KKok
10168EmmaKSTX
11169Inge MHTX
12169Katrine KSTX
13170AndreasMBager
14174Stefan MSTX
15176Thomas KSTX
16177JoachimKUbefaren skibsassistent
17178MikkelMSmed
18178Mia MHHX
19179MarinellaMHHX
Ark1
Cell Formulas
RangeFormula
C2:C19C2=IF(E2=1,"K",IF(E2=2,"M",IF(E2="","")))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A9:B9,D9,D33Expression=$H$17="TPK"textNO
A13:B13,D13Expression=$H$21="TPK"textNO
A12:B12,D12Expression=$H$20="TPK"textNO
A11:B11,D11Expression=$H$19="TPK"textNO
A3:B3,D3,A25:B25,D25Expression=$H$11="TPK"textNO
A2:D2,C3:C40Expression=$H$10="TPK"textNO
A4:B4,D4Expression=$H$12="TPK"textNO
A5:B5,D5Expression=$H$13="TPK"textNO
A6:B6,D6Expression=$H$14="TPK"textNO
A7:B7,D7,A27:B27,D27,A40:B40,D40Expression=$H$15="TPK"textNO
A8:B8,D8Expression=$H$16="TPK"textNO
A10:B10,D10Expression=$H$18="TPK"textNO
A14:B14,D14,A34:B34,D34Expression=$H$22="TPK"textNO
A15:B15,D15Expression=$H$23="TPK"textNO
A16:B16,D16,A36:B36,D36Expression=$H$24="TPK"textNO
A17:B17,D17,A37:B37,D37Expression=$H$25="TPK"textNO
A18:B18,D18,A29:B29,D29Expression=$H$26="TPK"textNO
A19:B19,D19,A28:B28,D28Expression=$H$27="TPK"textNO


Delings.xlsx
ABCD
1HeightNameGenderjob / occupation
2162OliverMHTX
3182FrejaKSTX
4177JoachimMUbefaren skibsassistent
5206Katrine KUfaglært
6158Aleksander MKok
7158Frederikke KUfaglært
8192NichlasMElektriker
9178Mia KHHX
1 delingen
Cell Formulas
RangeFormula
C9C9=IF(E9=1,"K",IF(E9=2,"M",IF(E9="","")))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C3:C9Expression=$H$10="TPK"textNO
A9:B9,D9Expression=$H$23="TPK"textNO
D8Expression=$H$20="TPK"textNO
A7:B7,D7Expression=#REFERENCE!="TPK"textNO
A5:B5,D5Expression=$H$24="TPK"textNO
A4:B4,D4Expression=$H$16="TPK"textNO
A3:B3,D3Expression=$H$13="TPK"textNO
A2:D2Expression=$H$10="TPK"textNO


Delings.xlsx
ABCD
1HeightNameGenderjob / occupation
2158Carl-EmilMHHX
3165CilleKHF
4181FridaKSTX
5164IsabellaKSTX
6180Mads MEUX Smed
7186NoahMSabbatår
8202Sahra KKok
9194Snorre MTømrer
2 delingen
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D9Expression=#REFERENCE!="TPK"textNO
D8Expression=$H$12="TPK"textNO
A6:B6,D6Expression=$H$8="TPK"textNO
A4:B4,D4Expression=$H$19="TPK"textNO
A3:B3,D3Expression=$H$12="TPK"textNO
A2:B2,D2Expression=$H$9="TPK"textNO
C2:C9Expression=#REFERENCE!="TPK"textNO
 
Upvote 0
I can see there is some ref. errors in the formula
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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