Hi All,
I hope you're enjoying the weekend.
I wonder if anyone can help with the following formula. I'm trying to pull a date from another table but only if it matches certain criteria.
Table with Data
[TABLE="width: 500"]
<tbody>[TR]
[TD]Unique Identifier[/TD]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Course[/TD]
[TD]Date[/TD]
[TD]Grade[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]Jane[/TD]
[TD]Doe[/TD]
[TD]Course 1[/TD]
[TD]15/04/2016[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]Jane[/TD]
[TD]Doe[/TD]
[TD]Course 2[/TD]
[TD]17/05/2017[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]Jane[/TD]
[TD]Doe[/TD]
[TD]Course 3[/TD]
[TD]19/01/2018[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]34567[/TD]
[TD]John[/TD]
[TD]Smith[/TD]
[TD]Course 2[/TD]
[TD]10/07/2017[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]34567[/TD]
[TD]John[/TD]
[TD]Smith[/TD]
[TD]Course 3[/TD]
[TD]25/06/2017[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]34567[/TD]
[TD]John[/TD]
[TD]Smith[/TD]
[TD]Course 1[/TD]
[TD]28/10/2016[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]78901[/TD]
[TD]Jane[/TD]
[TD]Smith[/TD]
[TD]Course 3[/TD]
[TD]01/01/2016[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]78901[/TD]
[TD]Jane[/TD]
[TD]Smith[/TD]
[TD]Course 2[/TD]
[TD]01/10/2017[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]78901[/TD]
[TD]Jane[/TD]
[TD]Smith[/TD]
[TD]Course 1[/TD]
[TD]01/05/2015[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]John[/TD]
[TD]Doe[/TD]
[TD]Course 2[/TD]
[TD]29/03/2015[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]John[/TD]
[TD]Doe[/TD]
[TD]Course 1[/TD]
[TD]23/10/2017[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]John[/TD]
[TD]Doe[/TD]
[TD]Course 3[/TD]
[TD]16/03/2016[/TD]
[TD]7[/TD]
[/TR]
</tbody>[/TABLE]
Table pulling data into
[TABLE="width: 500"]
<tbody>[TR]
[TD]Last Name[/TD]
[TD]First Name[/TD]
[TD]Unique Identifier[/TD]
[TD]Course 1[/TD]
[TD]Course 2[/TD]
[TD]Course 3[/TD]
[/TR]
[TR]
[TD]VLOOKUP from another table[/TD]
[TD]VLOOKUP from another table[/TD]
[TD]VLOOKUP from another table[/TD]
[TD]to include the formula[/TD]
[TD]to include the formula[/TD]
[TD]to include the formula[/TD]
[/TR]
</tbody>[/TABLE]
The formula I have so far is:
{=IF(C2="","",IF(OR(Data_Report[Grade]="3",Data_Report[Grade]="4"),INDEX(Data_Report[Date],MATCH(1,(Data_Report[Unique Identifier]=C2)*(Data_Report[Course]="1"),0)),"Not Applicable"))}
Basically I'd like the formula to show if there's nothing in the "unique Identifier" column then to leave the cell empty,
If there is a "unique Identifier" in cell 'C2' then to lookup the unique identifier to the data table ensuring to match the grade to either a grade 3 or 4 and additionally match the the course name and pulling through the date the course was completed.
If the grade is different to 3 or 4 then to return 'not applicable'
e.g. = Jane Doe, Course 2 should show as '17/05/2017'
John Smith, Course 3 should show as 'Not Applicable'
Jane Smith, Course 1 should show as '01/05/2015'
John Doe, Course 1 should show as a blank cell
Hoping the above makes sense and welcome any feedback and advise. I've spen forever trying to get it to work and am so close but haven't quite got it.
Many thanks in advance for reading
Wintye
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">[TABLE="width: 500"]
<tbody>[TR]
[TD]17/05/2017[/TD]
[/TR]
</tbody>[/TABLE]
</body>
I hope you're enjoying the weekend.
I wonder if anyone can help with the following formula. I'm trying to pull a date from another table but only if it matches certain criteria.
Table with Data
[TABLE="width: 500"]
<tbody>[TR]
[TD]Unique Identifier[/TD]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Course[/TD]
[TD]Date[/TD]
[TD]Grade[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]Jane[/TD]
[TD]Doe[/TD]
[TD]Course 1[/TD]
[TD]15/04/2016[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]Jane[/TD]
[TD]Doe[/TD]
[TD]Course 2[/TD]
[TD]17/05/2017[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]Jane[/TD]
[TD]Doe[/TD]
[TD]Course 3[/TD]
[TD]19/01/2018[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]34567[/TD]
[TD]John[/TD]
[TD]Smith[/TD]
[TD]Course 2[/TD]
[TD]10/07/2017[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]34567[/TD]
[TD]John[/TD]
[TD]Smith[/TD]
[TD]Course 3[/TD]
[TD]25/06/2017[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]34567[/TD]
[TD]John[/TD]
[TD]Smith[/TD]
[TD]Course 1[/TD]
[TD]28/10/2016[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]78901[/TD]
[TD]Jane[/TD]
[TD]Smith[/TD]
[TD]Course 3[/TD]
[TD]01/01/2016[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]78901[/TD]
[TD]Jane[/TD]
[TD]Smith[/TD]
[TD]Course 2[/TD]
[TD]01/10/2017[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]78901[/TD]
[TD]Jane[/TD]
[TD]Smith[/TD]
[TD]Course 1[/TD]
[TD]01/05/2015[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]John[/TD]
[TD]Doe[/TD]
[TD]Course 2[/TD]
[TD]29/03/2015[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]John[/TD]
[TD]Doe[/TD]
[TD]Course 1[/TD]
[TD]23/10/2017[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]John[/TD]
[TD]Doe[/TD]
[TD]Course 3[/TD]
[TD]16/03/2016[/TD]
[TD]7[/TD]
[/TR]
</tbody>[/TABLE]
Table pulling data into
[TABLE="width: 500"]
<tbody>[TR]
[TD]Last Name[/TD]
[TD]First Name[/TD]
[TD]Unique Identifier[/TD]
[TD]Course 1[/TD]
[TD]Course 2[/TD]
[TD]Course 3[/TD]
[/TR]
[TR]
[TD]VLOOKUP from another table[/TD]
[TD]VLOOKUP from another table[/TD]
[TD]VLOOKUP from another table[/TD]
[TD]to include the formula[/TD]
[TD]to include the formula[/TD]
[TD]to include the formula[/TD]
[/TR]
</tbody>[/TABLE]
The formula I have so far is:
{=IF(C2="","",IF(OR(Data_Report[Grade]="3",Data_Report[Grade]="4"),INDEX(Data_Report[Date],MATCH(1,(Data_Report[Unique Identifier]=C2)*(Data_Report[Course]="1"),0)),"Not Applicable"))}
Basically I'd like the formula to show if there's nothing in the "unique Identifier" column then to leave the cell empty,
If there is a "unique Identifier" in cell 'C2' then to lookup the unique identifier to the data table ensuring to match the grade to either a grade 3 or 4 and additionally match the the course name and pulling through the date the course was completed.
If the grade is different to 3 or 4 then to return 'not applicable'
e.g. = Jane Doe, Course 2 should show as '17/05/2017'
John Smith, Course 3 should show as 'Not Applicable'
Jane Smith, Course 1 should show as '01/05/2015'
John Doe, Course 1 should show as a blank cell
Hoping the above makes sense and welcome any feedback and advise. I've spen forever trying to get it to work and am so close but haven't quite got it.
Many thanks in advance for reading
Wintye
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">[TABLE="width: 500"]
<tbody>[TR]
[TD]17/05/2017[/TD]
[/TR]
</tbody>[/TABLE]
</body>