szakharov7723
Board Regular
- Joined
- Jun 22, 2018
- Messages
- 85
- Office Version
- 2019
- Platform
- Windows
Source table
[TABLE="width: 508"]
<colgroup><col><col span="5"><col></colgroup><tbody>[TR]
[TD] [/TD]
[TD]tine 2[/TD]
[TD]tine 2[/TD]
[TD]tine 2[/TD]
[TD]Hitte 3[/TD]
[TD]Hitte 3[/TD]
[TD]Hitte 3[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]PM assigned[/TD]
[TD]WO assigned[/TD]
[TD]Task assigned[/TD]
[TD]PM assigned[/TD]
[TD]WO assigned[/TD]
[TD]Task assigned[/TD]
[/TR]
[TR]
[TD]18-May[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]48[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]19-May[/TD]
[TD="align: right"]6.5[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]48[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]96[/TD]
[/TR]
[TR]
[TD]20-May[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]48[/TD]
[TD="align: right"]48[/TD]
[TD="align: right"]64[/TD]
[/TR]
[TR]
[TD]21-May[/TD]
[TD="align: right"]7.5[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]2.56[/TD]
[/TR]
[TR]
[TD]22-May[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]64[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]23-May[/TD]
[TD="align: right"]4.5[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]72[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]5.76[/TD]
[/TR]
[TR]
[TD]24-May[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]3.2[/TD]
[TD="align: right"]6.4[/TD]
[/TR]
</tbody>[/TABLE]
Table to implement lookup
[TABLE="width: 682"]
<colgroup><col><col><col span="2"><col><col span="3"><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]18-May[/TD]
[TD]19-May[/TD]
[TD]20-May[/TD]
[TD]21-May[/TD]
[TD]22-May[/TD]
[TD]23-May[/TD]
[TD]24-May[/TD]
[/TR]
[TR]
[TD]tine 2[/TD]
[TD]PM assigned[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]tine 2[/TD]
[TD]WO assigned[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]tine 2[/TD]
[TD]Task assigned[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Hitte 3[/TD]
[TD]PM assigned[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Hitte 3[/TD]
[TD]WO assigned[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Hitte 3[/TD]
[TD]Task assigned[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
This is only an example of a large database I have with bunch of other formulas. So I cannot change the structure of tables, especially 2nd one.
I need to find a way to create a look up for 2nd table. Both tables are not static, as new locations can added meaning 1st table can extend in columns, while 2nd table will be extended in rows. When this happens I would like a casual user to have no problem extending the formula for new locations.
So far I tried Sumproduct and IndexMatch : both didn't work out, however I could make a mistake somewhere. I tried to Concatenate location and assigned, but still didn't get any good result.
VBA might be a solution, but I would still prefer a formula approach.
[TABLE="width: 508"]
<colgroup><col><col span="5"><col></colgroup><tbody>[TR]
[TD] [/TD]
[TD]tine 2[/TD]
[TD]tine 2[/TD]
[TD]tine 2[/TD]
[TD]Hitte 3[/TD]
[TD]Hitte 3[/TD]
[TD]Hitte 3[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]PM assigned[/TD]
[TD]WO assigned[/TD]
[TD]Task assigned[/TD]
[TD]PM assigned[/TD]
[TD]WO assigned[/TD]
[TD]Task assigned[/TD]
[/TR]
[TR]
[TD]18-May[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]48[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]19-May[/TD]
[TD="align: right"]6.5[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]48[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]96[/TD]
[/TR]
[TR]
[TD]20-May[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]48[/TD]
[TD="align: right"]48[/TD]
[TD="align: right"]64[/TD]
[/TR]
[TR]
[TD]21-May[/TD]
[TD="align: right"]7.5[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]2.56[/TD]
[/TR]
[TR]
[TD]22-May[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]64[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]23-May[/TD]
[TD="align: right"]4.5[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]72[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]5.76[/TD]
[/TR]
[TR]
[TD]24-May[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]3.2[/TD]
[TD="align: right"]6.4[/TD]
[/TR]
</tbody>[/TABLE]
Table to implement lookup
[TABLE="width: 682"]
<colgroup><col><col><col span="2"><col><col span="3"><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]18-May[/TD]
[TD]19-May[/TD]
[TD]20-May[/TD]
[TD]21-May[/TD]
[TD]22-May[/TD]
[TD]23-May[/TD]
[TD]24-May[/TD]
[/TR]
[TR]
[TD]tine 2[/TD]
[TD]PM assigned[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]tine 2[/TD]
[TD]WO assigned[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]tine 2[/TD]
[TD]Task assigned[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Hitte 3[/TD]
[TD]PM assigned[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Hitte 3[/TD]
[TD]WO assigned[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Hitte 3[/TD]
[TD]Task assigned[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
This is only an example of a large database I have with bunch of other formulas. So I cannot change the structure of tables, especially 2nd one.
I need to find a way to create a look up for 2nd table. Both tables are not static, as new locations can added meaning 1st table can extend in columns, while 2nd table will be extended in rows. When this happens I would like a casual user to have no problem extending the formula for new locations.
So far I tried Sumproduct and IndexMatch : both didn't work out, however I could make a mistake somewhere. I tried to Concatenate location and assigned, but still didn't get any good result.
VBA might be a solution, but I would still prefer a formula approach.