How to Autofill names into a Form from a List

sorensjp

New Member
Joined
Jul 11, 2020
Messages
4
Office Version
  1. 2016
  2. 2007
Platform
  1. Windows
Hi,

I'm looking for a VBA Macro solution to replace an "in cell" formula based solution which was created by Richard Buttrey on excelforum.

I would like to take the names from an Advanced Filter List to auto insert into the "Spot Checker" cells based on a User selection of the User Choice.
Spot Checker Cells: E26:E36,E46:E57,E62:E63,J26:J36,J38:J40,J46:J49

My list starting on Q6 on the REPORT Sheet is copy of an Advanced Filter Range located on another sheet. The list will change in size based on Personnel Status (i.e. Aboard, On Leave, TAD)

The goal is for a User to select a name from a list which than become the 'top' of the list and loop through filling the Spot Checker (target) cells. So if a user selects from the the very last cell it than rotated to the top and goes until each target cell is filled. The list used to fill the Spot Checker cells will normally be larger than what is required. I have a formula based solution but would like the user have the ability to change a 'Spot Checker' name manually w/out writing over the formula located in that cell.

SPOT CK MATRIX (V0.55) ArrayQuest (1).xlsm
EFGHIJKLMNOPQRS
4 Wk 5 QTR-2-202004-May-20 to10-May-20Spot CheckerDepartmentQual Lvl
5TRIAD/3MCACF (Accountability Confidence Factor)[ALL][ALL QUAL'D]
6TitleNAMEASSIGNEDPASS/FAILCOMMAND:84.6%LT BARRETTWeapons307
7COCAPT ARMSTRONGEM02PASS KHAKI:84.6%LT CHAPMANEngineering306
8XOCDR FERGUSONEA01PASSPO1/LPO: LT ELLISCombat Systems305
9CMCCDMCM WILSONCG03PASSLT RICHARDSONSupply306
103MCMRCM THOMASCA02FAILPASS/FAILKHAKIPO1/LPOLT THOMASCombat Systems306
11CMPASSPASS:110LTJG FOWLEROperations306
12FAIL:20LTJG HARPERCombat Systems304
13DEPARTMENT HEADSTotal Spot Cks:130LTJG HUNTWeapons304
14NAMEASSIGNEDPASS/FAILLTJG MOOREWeapons304
15CBSLCDR CUNNINGHAMCF03PASSEVV (Equip Validation Verification)LTJG PHILLIPSPTO304
16WEAPONSLCDR FOSTERCG04PASSLTJG REEDExec/Health/Nav304
17ENGLT JOHNSTONEB14PASSLTJG RILEYWeapons304
18SUPPLYLT ADAMSS-3NOT CONDUCTEDLTJG SULLIVANSupply304
19PTOLT HARRISONCSE1FAILLTJG THOMPSONCombat Systems304
20EXEX/NAVLT HENDERSONHM01PASSENS ALLENSupply304
21OPSLT THOMPSONOD01PASSENS GIBSONOperations304
22ENS JOHNSTONExec/Health/Nav304
23COMBAT SYSTEMS DEPARTMENTWEAPONS DEPARTMENTENS MITCHELLOperations304
24SPOT CHECKSCE/CF/CMMONITORED MAINTINANCESPOT CHECKSCA/CG/OT DivisionsMONITORED MAINTENANCEENS RYANWeapons303
25NAMEPASS/FAILNAMEPASS/FAILNAMEPASS/FAILNAMEPASS/FAILENS STEVENSSupply304
26ENS ALLENPASSCE01Zulu38Zulu39GSEC MORGANZulu81CA01Zulu82Zulu83ENS WALKEREngineering304
27ENS GIBSONPASSCE02Zulu42Zulu43ETC PERRYZulu85CA02Zulu86Zulu87ENS WRIGHTOperations304
28ENS JOHNSTONZulu45CE03Zulu46Zulu47HMC REEDZulu89CG01Zulu90Zulu91CWO3 PHILLIPSEngineering303
29ENS MITCHELLZulu49CSE1Zulu50Zulu51STGC THOMPSONZulu93CG02Zulu94Zulu95CWO2 GRAYSupply304
30ENS RYANZulu53CSE2Zulu54Zulu55BMC TUCKERZulu97CG03Zulu98Zulu99CWO2 RICHARDSEngineering304
31ENS STEVENSZulu57CF01Zulu58Zulu59LT BARRETTZulu101CG04Zulu102Zulu103FCACM STEVENSCombat Systems304
32ENS WALKERZulu61CF02Zulu62Zulu63LT CHAPMANZulu105OT01Zulu106Zulu107STGCS CASEYWeaponsNQ
33ENS WRIGHTZulu65CF03Zulu66Zulu67LT ELLISZulu109OT02Zulu110Zulu111EMCS EDWARDSCombat SystemsNQ
34CWO3 PHILLIPSZulu69CM01Zulu70Zulu71ETCS MOORECombat Systems304
35CWO2 GRAYZulu73CM02Zulu74Zulu75EXEC/MED/NAV DEPARTMENTLSCS PERKINSSupply304
36CWO2 RICHARDSZulu77CM03Zulu78Zulu79SPOT CHECKSEXEC/HM/ NAV DivisionsMONITORED MAINTENANCEGSMCS RICHARDSEngineering304
37NAMEPASS/FAILNAMEPASS/FAILFCAC WARRENCombat SystemsNQ
38LT RICHARDSONZulu177EX01Zulu178Zulu179GMCS WESTWeapons304
39LT THOMASZulu181HM01Zulu182Zulu183CSC ANDERSONSupply304
40LTJG FOWLERZulu185NN01Zulu186Zulu187PSC ANDREWSExec/Health/Nav304
41.GMC BARNESWeapons304
42 Wk 5 QTR-2-2020Dates Covered:04-May-20 to10-May-20FCAC FOSTERCombat Systems304
43ENGINEERING DEPARTMENTSUPPLY DEPARTMENTMMC HALLEngineeringNQ
44SPOT CHECKSEA/EE/EM/R DivisionsMONITORED MAINTENANCESPOT CHECKSS-1/2/3 DivisionMONITORED MAINTENANCEGSMC MARTINEngineering303
45NAMEPASS/FAILNAMEPASS/FAILNAMEPASS/FAILNAMEPASS/FAILGSEC MORGANEngineering305
46FCACM STEVENSZulu113EA01Zulu114Zulu115LTJG HARPERZulu161HE01Zulu162Zulu163ETC PERRYCombat Systems303
47STGCS CASEYZulu117EA02Zulu118Zulu119LTJG HUNTZulu165SS01Zulu166Zulu167HMC REEDExec/Health/Nav304
48EMCS EDWARDSZulu121EE01Zulu122Zulu123LTJG MOOREZulu169SS02Zulu170Zulu171STGC THOMPSONWeapons304
49ETCS MOOREZulu125EE02Zulu126Zulu127LTJG PHILLIPSZulu173SS03Zulu174Zulu175BMC TUCKEROperations304
50LSCS PERKINSZulu129EM01Zulu130Zulu131
51GSMCS RICHARDSZulu133EM02Zulu134Zulu135ER09 DIVISIONEVV
52FCAC WARRENZulu137EM04Zulu138Zulu139DIVNAMEPASS/FAILDIVISIONPASS/FAIL
53GMCS WESTZulu141EB14Zulu142Zulu143ER09 - CACA
54CSC ANDERSONZulu145FCA1Zulu146Zulu147ER09 - CCCC
55PSC ANDREWSZulu149ER01Zulu150Zulu151ER09 - CECE
56GMC BARNESZulu153ER03Zulu154Zulu155ER09 - CFCF
57FCAC FOSTERZulu157ER04Zulu158Zulu159ER09 - CMCM
58ER09 - EAEA
59OPERATIONS DEPARTMENTER09 - EEEE
60SPOT CHECKSOI/OD DivisionsMONITORED MAINTENANCEER09 - EMEM
61NAMEPASS/FAILNAMEPASS/FAILER09 - ERER
62MMC HALLZulu189OI01Zulu190Zulu191ER09 - OPSOI
63GSMC MARTINZulu193OD01Zulu194Zulu195ER09 - EXECOD
64ER09 - SUPEX/MH/NAV
REPORT
Cell Formulas
RangeFormula
J4,E42J4=IFERROR(TEXT($J$3," Wk "&"0")&TEXT($F$3," QTR-"&"0")&TEXT($H$3,"-"&"0"),"")
K6K6=IFERROR(SUM($J$11:$K$11)/SUM($J$13:$K$13),"")
K7K7=IFERROR($J$11/$J$13,"")
K8K8=IFERROR($K$11/$K$13,"")
J11J11=IFERROR(SUM($AC$10:$AC$17),"")
K11K11=IFERROR(SUM($AC$23:$AC$28),"")
J12J12=IFERROR(SUM($AD$10:$AD$17),"")
K12K12=IFERROR(SUM($AD$23:$AD$28),"")
J13J13=IFERROR(SUM($J$11:$J$12),"")
K13K13=IFERROR(SUM($K$11:$K$12),"")
J26J26=INDEX($Q$6:$Q$49,IF(MATCH(E63,$Q$6:$Q$49,FALSE)+1>=45,1,MATCH(E63,$Q$6:$Q$49,FALSE)+1),1)
E63,E47:E57,J47:J49,J39:J40,E27:E36,J27:J33J27=INDEX($Q$6:$Q$49,IF(MATCH(J26,$Q$6:$Q$49,FALSE)+1>=45,1,MATCH(J26,$Q$6:$Q$49,FALSE)+1),1)
J38,E62J38=INDEX($Q$6:$Q$49,IF(MATCH(J33,$Q$6:$Q$49,FALSE)+1>=45,1,MATCH(J33,$Q$6:$Q$49,FALSE)+1),1)
M42M42=$M$4
N42N42=$N$4
J46J46=INDEX($Q$6:$Q$49,IF(MATCH(J40,$Q$6:$Q$49,FALSE)+1>=45,1,MATCH(J40,$Q$6:$Q$49,FALSE)+1),1)
E46E46=INDEX($Q$6:$Q$49,IF(MATCH(E36,$Q$6:$Q$49,FALSE)+1>=45,1,MATCH(E36,$Q$6:$Q$49,FALSE)+1),1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
Q6:S80Expression=AND($Q6<>"",MOD(ROW(),2)=0)textNO
Q6:S80Expression=AND($Q6<>"",MOD(ROW(),1)=0)textNO
S3,X3,X3,R5:S5,W5:X5Cell Value="[ALL]"textNO
G7:G11,G15:G21Expression=$H7="PASS"textNO
H7:H11,H15:H21,F26:F36,N26:N33,K38:K40,N38:N40,I26:I36,K26:K33Cell Value="PASS"textNO
H7:H11,H15:H21,F26:F36,N26:N33,K38:K40,N38:N40,I26:I36,K26:K33Cell Value="FAIL"textNO
I46:I57,K46:K49,N46:N49,F62:F63,I62:I63,F46:F57Cell Value="PASS"textNO
I46:I57,K46:K49,N46:N49,F62:F63,I62:I63,F46:F57Cell Value="FAIL"textNO
G7:G11,G15:G21Cell Valuecontains "ER09"textNO
Cells with Data Validation
CellAllowCriteria
S5,X5List=Quals
E26List=$Q$6:$Q$49
 

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.

Forum statistics

Threads
1,224,823
Messages
6,181,185
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