dougmarkham
Active Member
- Joined
- Jul 19, 2016
- Messages
- 252
- Office Version
- 365
- Platform
- Windows
Hi Guys,
I have a task I've not done before involving referring to an active cell within an index match formula.
Goal: to be able to click on any cell in the 'Job number' column (table 2 in sheet 2) and have that Job number used to match the job number column table 1 in the sheet 1.
Situation:
Worksheet 1 - Contains a table showing all current jobs: There are three named ranges corresponding to JobNumber, JobName and Detail.
Table 1
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]JOB NUMBER (a2)[/TD]
[TD]TASK STATUS (b2)[/TD]
[TD]JOB TYPE (c2)[/TD]
[TD]DATE (d2)[/TD]
[TD]TIME (e2)[/TD]
[TD]JOB NAME (f2)[/TD]
[TD]JOB DETAIL (g2)[/TD]
[TD]PRIORITY (h2)[/TD]
[TD]JOB DEADLINE (i2)[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]Admin[/TD]
[TD]01/12/17[/TD]
[TD]09:00[/TD]
[TD]JOB A[/TD]
[TD]LAJDFLKJDLFJSDJFLJDLJKFLDJFLKDJFLKJD[/TD]
[TD]1[/TD]
[TD]15/12/17[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]0[/TD]
[TD]Lookup[/TD]
[TD]01/12/17[/TD]
[TD]09:00[/TD]
[TD]JOB B[/TD]
[TD]AKAKLGHHAFGKLJLEGJLKAJKDGLJALKGJ[/TD]
[TD]2[/TD]
[TD]15/12/17[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1[/TD]
[TD]Other[/TD]
[TD]01/12/17[/TD]
[TD]09:00[/TD]
[TD]JOB C[/TD]
[TD]AGLAJKLFJLKJKDGLJALRKDJLSAJDK[/TD]
[TD]3[/TD]
[TD]15/12/17[/TD]
[/TR]
</tbody>[/TABLE]
Worksheet 2 - Contains table 2 which allows me to type in a job number into column 2, and an index match formula pulls the job name from table 1.
Table 2
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]PRIORITY (B4)[/TD]
[TD]JOB NUMBER (C4)[/TD]
[TD]JOB NAME(D4)[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]JOB A[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2[/TD]
[TD]JOB B[/TD]
[/TR]
[TR]
[TD]3 etc...[/TD]
[TD]3[/TD]
[TD]JOB C[/TD]
[/TR]
</tbody>[/TABLE]
What I want to do is create a fairly big cell to the right of table 2, and put an index match formula in it that will pull the JOB DETAILS corresponding to an active cell which the user will select one of the job number cells in table 2. So the idea is that the user will click on a job number in table 2 and the corresponding Job Details from table 1 will show in the big cell.
So far
Formula in C5 of table 2: =IF(C5:C294="","",INDEX(JobName,MATCH($C$5:$C$294,JobNumber,0)))
Formula in Big cell: =INDEX(Details,MATCH(Active Cell,JobNumber,0))
How do I refer to the selected cell (active cell) in table 2 column C within the index match formula in the big cell?
Kind regards,
Doug
I have a task I've not done before involving referring to an active cell within an index match formula.
Goal: to be able to click on any cell in the 'Job number' column (table 2 in sheet 2) and have that Job number used to match the job number column table 1 in the sheet 1.
Situation:
Worksheet 1 - Contains a table showing all current jobs: There are three named ranges corresponding to JobNumber, JobName and Detail.
Table 1
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]JOB NUMBER (a2)[/TD]
[TD]TASK STATUS (b2)[/TD]
[TD]JOB TYPE (c2)[/TD]
[TD]DATE (d2)[/TD]
[TD]TIME (e2)[/TD]
[TD]JOB NAME (f2)[/TD]
[TD]JOB DETAIL (g2)[/TD]
[TD]PRIORITY (h2)[/TD]
[TD]JOB DEADLINE (i2)[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]Admin[/TD]
[TD]01/12/17[/TD]
[TD]09:00[/TD]
[TD]JOB A[/TD]
[TD]LAJDFLKJDLFJSDJFLJDLJKFLDJFLKDJFLKJD[/TD]
[TD]1[/TD]
[TD]15/12/17[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]0[/TD]
[TD]Lookup[/TD]
[TD]01/12/17[/TD]
[TD]09:00[/TD]
[TD]JOB B[/TD]
[TD]AKAKLGHHAFGKLJLEGJLKAJKDGLJALKGJ[/TD]
[TD]2[/TD]
[TD]15/12/17[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1[/TD]
[TD]Other[/TD]
[TD]01/12/17[/TD]
[TD]09:00[/TD]
[TD]JOB C[/TD]
[TD]AGLAJKLFJLKJKDGLJALRKDJLSAJDK[/TD]
[TD]3[/TD]
[TD]15/12/17[/TD]
[/TR]
</tbody>[/TABLE]
Worksheet 2 - Contains table 2 which allows me to type in a job number into column 2, and an index match formula pulls the job name from table 1.
Table 2
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]PRIORITY (B4)[/TD]
[TD]JOB NUMBER (C4)[/TD]
[TD]JOB NAME(D4)[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]JOB A[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2[/TD]
[TD]JOB B[/TD]
[/TR]
[TR]
[TD]3 etc...[/TD]
[TD]3[/TD]
[TD]JOB C[/TD]
[/TR]
</tbody>[/TABLE]
What I want to do is create a fairly big cell to the right of table 2, and put an index match formula in it that will pull the JOB DETAILS corresponding to an active cell which the user will select one of the job number cells in table 2. So the idea is that the user will click on a job number in table 2 and the corresponding Job Details from table 1 will show in the big cell.
So far
Formula in C5 of table 2: =IF(C5:C294="","",INDEX(JobName,MATCH($C$5:$C$294,JobNumber,0)))
Formula in Big cell: =INDEX(Details,MATCH(Active Cell,JobNumber,0))
How do I refer to the selected cell (active cell) in table 2 column C within the index match formula in the big cell?
Kind regards,
Doug
Last edited: