Hi All,
I have the following formula that is returning #N/A, when I am sure that it should return a Value.
The formula is an array formula and I entered it in the cell with CTR+SHIFT+ENTER
The above formula exists in cells in Column L in sheet called Juniors
In sheet called Formula, I have created a named range called SheetList for the 2 sheet names which exist in workbook. The sheet names are DD Members and Receipt Members.
What I would like to happen is for the formulas to look at sheets DD Members and Receipt Members and return the value from Column L (headed Junior Parent).
Currently it is returning a #N/A
Any help you can offer will be appreciated.
I have the following formula that is returning #N/A, when I am sure that it should return a Value.
The formula is an array formula and I entered it in the cell with CTR+SHIFT+ENTER
VBA Code:
=VLOOKUP($C3,INDIRECT("'"&INDEX(SheetList,MATCH(1,--(COUNTIF(INDIRECT("'"&SheetList&"'!,$C$3:$L$202"),$C3)>0),0))&"'!!,$C$3:$L$202"),10,FALSE)
In sheet called Formula, I have created a named range called SheetList for the 2 sheet names which exist in workbook. The sheet names are DD Members and Receipt Members.
What I would like to happen is for the formulas to look at sheets DD Members and Receipt Members and return the value from Column L (headed Junior Parent).
Currently it is returning a #N/A
Club Membership.xlsm | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | |||
1 | Pay Type | Parent Membership Number | DO NOT DELETE | Payment Statement number | Payment Received Date | Surname | First Name | Address | Town | Post Code | Member Type | Parent Member | Amount | EMAIL ADDRESS | Email Sent | Junior Membership Number | ||||
2 | 0 | 0 | 1 | 1 | 1 | 1 | ||||||||||||||
3 | SM | 00001 | SM00001 | Junior Surname 1 | Junior Name 1 | Junior Address 1 | Town 1 | Zip 1 | #N/A | JM | 00001 | JM00001 | ||||||||
4 | SM | 00002 | SM00002 | JM | 00002 | JM00002 | ||||||||||||||
5 | SM | 00003 | SM00003 | JM | 00003 | JM00003 | ||||||||||||||
6 | SM | 00004 | SM00004 | JM | 00004 | JM00004 | ||||||||||||||
7 | SM | 00005 | SM00005 | JM | 00005 | JM00005 | ||||||||||||||
8 | SM | 00006 | SM00006 | JM | 00006 | JM00006 | ||||||||||||||
9 | SM | 00007 | SM00007 | JM | 00007 | JM00007 | ||||||||||||||
10 | SM | 00008 | SM00008 | JM | 00008 | JM00008 | ||||||||||||||
11 | SM | 00009 | SM00009 | JM | 00009 | JM00009 | ||||||||||||||
12 | SM | 00010 | SM00010 | JM | 00010 | JM00010 | ||||||||||||||
13 | SM | 00011 | SM00011 | JM | 00011 | JM00011 | ||||||||||||||
14 | SM | 00012 | SM00012 | JM | 00012 | JM00012 | ||||||||||||||
15 | SM | 00013 | SM00013 | JM | 00013 | JM00013 | ||||||||||||||
16 | SM | 00014 | SM00014 | JM | 00014 | JM00014 | ||||||||||||||
17 | SM | 00015 | SM00015 | JM | 00015 | JM00015 | ||||||||||||||
18 | SM | 00016 | SM00016 | JM | 00016 | JM00016 | ||||||||||||||
19 | SM | 00017 | SM00017 | JM | 00017 | JM00017 | ||||||||||||||
20 | SM | 00018 | SM00018 | JM | 00018 | JM00018 | ||||||||||||||
21 | SM | 00019 | SM00019 | JM | 00019 | JM00019 | ||||||||||||||
22 | SM | 00020 | SM00020 | JM | 00020 | JM00020 | ||||||||||||||
23 | SM | 00021 | SM00021 | JM | 00021 | JM00021 | ||||||||||||||
24 | SM | 00022 | SM00022 | JM | 00022 | JM00022 | ||||||||||||||
Juniors |
Cell Formulas | ||
---|---|---|
Range | Formula | |
J2,D2:H2 | D2 | =COUNTIF(D3:D24,"<>") |
L3 | L3 | =VLOOKUP($C3,INDIRECT("'"&INDEX(SheetList,MATCH(1,--(COUNTIF(INDIRECT("'"&SheetList&"'!,$C$3:$L$202"),$C3)>0),0))&"'!!,$C$3:$L$202"),10,FALSE) |
R3:R24,C3:C24 | C3 | =CONCATENATE(A3,B3) |
Press CTRL+SHIFT+ENTER to enter array formulas. |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A4:A24 | Cell Value | ="RM" | text | YES |
M4:M24 | Cell Value | =15 | text | YES |
M1,M3,M25:M1048576 | Cell Value | =15 | text | YES |
A1:A3,A25:A1048576 | Cell Value | ="RM" | text | YES |
Club Membership.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Processing Year | 2021 | Sheet Names | ||||
2 | |||||||
3 | |||||||
4 | DD Members | ||||||
5 | Receipt Members | ||||||
Formula |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D4 | D4 | ='DD Members'!AG1 |
D5 | D5 | ='Receipt Members'!AG1 |
Club Membership.xlsm | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
1 | Pay Type | Membership Number | DO NOT DELETE | Payment Statement number | Payment Received Date | Surname | First Name | Address | Town | Post Code | Member Type | Junior Parent | Amount | EMAIL ADDRESS | Email Sent | ||
2 | 0 | 18 | 18 | 18 | |||||||||||||
3 | SM | 00001 | SM00001 | Surname 1 | First Name 1 | Address 1 | Town 1 | Zip 1 | Supporting | N | £10.00 | ||||||
4 | SM | 00002 | SM00002 | Surname 2 | First Name 2 | Address 2 | Town 2 | Zip 2 | Supporting | N | £10.00 | ||||||
5 | SM | 00003 | SM00003 | Surname 3 | First Name 3 | Address 3 | Town 3 | Zip 3 | Supporting | Y | £10.00 | ||||||
6 | SM | 00004 | SM00004 | Cancelled | |||||||||||||
7 | SM | 00005 | SM00005 | Surname 5 | First Name 5 | Address 5 | Town 5 | Zip 5 | Supporting | N | £10.00 | ||||||
8 | SM | 00006 | SM00006 | Surname 6 | First Name 6 | Address 6 | Town 6 | Zip 6 | Supporting | N | £10.00 | ||||||
9 | SM | 00007 | SM00007 | Surname 7 | First Name 7 | Address 7 | Town 7 | Zip 7 | Supporting | Y | £10.00 | ||||||
10 | SM | 00008 | SM00008 | Cancelled | |||||||||||||
11 | SM | 00009 | SM00009 | Surname 9 | First Name 9 | Address 9 | Town 9 | Zip 9 | Supporting | N | £10.00 | ||||||
12 | SM | 00010 | SM00010 | Surname 10 | First Name 10 | Address 10 | Town 10 | Zip 10 | Supporting | N | £10.00 | ||||||
13 | SM | 00011 | SM00011 | Surname 11 | First Name 11 | Address 11 | Town 11 | Zip 11 | Supporting | Y | £10.00 | ||||||
14 | SM | 00012 | SM00012 | Surname 12 | First Name 12 | Address 12 | Town 12 | Zip 12 | Supporting | N | £10.00 | ||||||
15 | SM | 00013 | SM00013 | Surname 13 | First Name 13 | Address 13 | Town 13 | Zip 13 | Supporting | N | £10.00 | ||||||
16 | SM | 00014 | SM00014 | Surname 14 | First Name 14 | Address 14 | Town 14 | Zip 14 | Supporting | Y | £10.00 | ||||||
17 | SM | 00015 | SM00015 | Surname 15 | First Name 15 | Address 15 | Town 15 | Zip 15 | Supporting | N | £10.00 | ||||||
18 | SM | 00016 | SM00016 | Surname 16 | First Name 16 | Address 16 | Town 16 | Zip 16 | Supporting | N | £10.00 | ||||||
19 | SM | 00017 | SM00017 | Surname 17 | First Name 17 | Address 17 | Town 17 | Zip 17 | Supporting | Y | £10.00 | ||||||
20 | SM | 00018 | SM00018 | Surname 18 | First Name 18 | Address 18 | Town 18 | Zip 18 | Supporting | N | £10.00 | ||||||
21 | SM | 00019 | SM00019 | Surname 19 | First Name 19 | Address 19 | Town 19 | Zip 19 | Supporting | N | £10.00 | ||||||
22 | SM | 00020 | SM00020 | Surname 20 | First Name 20 | Address 20 | Town 20 | Zip 20 | Supporting | N | £10.00 | ||||||
DD Members |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2,J2,G2:H2 | D2 | =COUNTIF(D3:D22,"<>") |
C3:C22 | C3 | =CONCATENATE(A3,B3) |
E3:E22 | E3 | =IF(LEN(D3)>0,DATE("20"&RIGHT($Q$1,2),4,1),"") |
K3:K22 | K3 | =IF(ISBLANK(G3),"","Supporting") |
M3:M22 | M3 | =IF(ISBLANK(G3),"","£10.00") |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
M1,M3:M1048576 | Cell Value | =15 | text | YES |
A:A | Cell Value | ="RM" | text | YES |
Club Membership.xlsm | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
1 | Pay Type | Membership Number | DO NOT DELETE | DO NOT DELETE | Payment Received Date | Surname | First Name | Address | Town | Post Code | Member Type | Junior Parent | Amount | EMAIL ADDRESS | Email Sent | ||
2 | 0 | 0 | 6 | 6 | 6 | 20 | 6 | ||||||||||
3 | RM | 00001 | RM00001 | Surname 1 | First Name 1 | Address 1 | Town 1 | Zip 1 | Supporting | N | £15.00 | email 1 | |||||
4 | RM | 00002 | RM00002 | Surname 2 | First Name 2 | Address 2 | Town 2 | Zip 2 | Supporting | N | £15.00 | email 2 | |||||
5 | RM | 00003 | RM00003 | Surname 3 | First Name 3 | Address 3 | Town 3 | Zip 3 | Supporting | Y | £15.00 | email 3 | |||||
6 | RM | 00004 | RM00004 | Surname 4 | First Name 4 | Address 4 | Town 4 | Zip 4 | Supporting | Y | £15.00 | email 4 | |||||
7 | RM | 00005 | RM00005 | Surname 5 | First Name 5 | Address 5 | Town 5 | Zip 5 | Supporting | N | £15.00 | email 5 | |||||
8 | RM | 00006 | RM00006 | Surname 6 | First Name 6 | Address 6 | Town 6 | Zip 6 | Supporting | N | £15.00 | email 6 | |||||
9 | RM | 00007 | RM00007 | ||||||||||||||
10 | RM | 00008 | RM00008 | ||||||||||||||
11 | RM | 00009 | RM00009 | ||||||||||||||
12 | RM | 00010 | RM00010 | ||||||||||||||
13 | RM | 00011 | RM00011 | ||||||||||||||
14 | RM | 00012 | RM00012 | ||||||||||||||
15 | RM | 00013 | RM00013 | ||||||||||||||
16 | RM | 00014 | RM00014 | ||||||||||||||
17 | RM | 00015 | RM00015 | ||||||||||||||
18 | RM | 00016 | RM00016 | ||||||||||||||
19 | RM | 00017 | RM00017 | ||||||||||||||
20 | RM | 00018 | RM00018 | ||||||||||||||
21 | RM | 00019 | RM00019 | ||||||||||||||
22 | RM | 00020 | RM00020 | ||||||||||||||
Receipt Members |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2:J2 | D2 | =COUNTIF(D3:D22,"<>") |
K3:K22 | K3 | =IF(ISBLANK(G3),"","Supporting") |
M3:M22 | M3 | =IF(ISBLANK(G3),"","£15.00") |
L9:L22 | L9 | =IF(ISBLANK(G9),"","N") |
C3:C22 | C3 | =CONCATENATE(A3,B3) |
I9:I22 | I9 | =IF(ISBLANK(G9),"","Bolton") |
Any help you can offer will be appreciated.