Hello excel gurus!
I will try to be be as comprehensible as possible.
I have a calculation of data where I have to fill 3 cells from drop down menus to get a result.
1st cell indicates the table I have to use for the other data (lets name them table1, table2, table3)
2nd cell indicates row headline parameters (lets name them a, b, c, d, e, f)
3rd cell indicates column headline parameters (lets name them 1, 2, 3, 4, 5, 6)
Lets say we put Table2, C and 4, now the result has to come from the 2nd table and searched in the cell located where the row and column names are C and 4, the value of c4t2.
Assumptions before formulas:
*name respective table data to Table1Data, Table2Data, Table3Data
**name respective table row name Table1Row, Table2Row, Table3Row
***name respective table column name Table1Column, Table2Column, Table3Column
**** I have to give out a result of "No data!" if the located value is 0.
Formula for selecting data from 1 table:
=IF(INDEX(Table1Data;MATCH(D7;Table1Column;0);MATCH(D5;Table1Row;0))=0;"No data!";INDEX(Table1Data;MATCH(D7;Table1Column;0);MATCH(D5;Table1Row;0)))
Now I had to implement the 1st variable - table name into formula. I tried to do it with If function like this:
=IF(D3=”Table1”;IF(INDEX(Table1Data;MATCH(D7;Table1Column;0);MATCH(D5;Table1Row;0))=0;"No data!";INDEX(Table1Data;MATCH(D7;Table1Column;0);MATCH(D5;Table1Row;0)));IF(D3=”Table2”; IF(INDEX(Table2Data;MATCH(D7;Table2Column;0);MATCH(D5;Table2Row;0))=0;"No data!";INDEX(Table2Data;MATCH(D7;Table2Column;0);MATCH(D5;Table2Row;0)));IF(D3=”Table3”; IF(INDEX(Table3Data;MATCH(D7;Table3Column;0);MATCH(D5;Table3Row;0))=0;"No data!";INDEX(Table3Data;MATCH(D7;Table3Column;0);MATCH(D5;Table3Row;0))))))
It now only gives #Name error.
Any help would be really appreciated. Since I can't upload an attachment please tell me if you understand the problem.
I will try to be be as comprehensible as possible.
I have a calculation of data where I have to fill 3 cells from drop down menus to get a result.
1st cell indicates the table I have to use for the other data (lets name them table1, table2, table3)
2nd cell indicates row headline parameters (lets name them a, b, c, d, e, f)
3rd cell indicates column headline parameters (lets name them 1, 2, 3, 4, 5, 6)
Lets say we put Table2, C and 4, now the result has to come from the 2nd table and searched in the cell located where the row and column names are C and 4, the value of c4t2.
Assumptions before formulas:
*name respective table data to Table1Data, Table2Data, Table3Data
**name respective table row name Table1Row, Table2Row, Table3Row
***name respective table column name Table1Column, Table2Column, Table3Column
**** I have to give out a result of "No data!" if the located value is 0.
Formula for selecting data from 1 table:
=IF(INDEX(Table1Data;MATCH(D7;Table1Column;0);MATCH(D5;Table1Row;0))=0;"No data!";INDEX(Table1Data;MATCH(D7;Table1Column;0);MATCH(D5;Table1Row;0)))
Now I had to implement the 1st variable - table name into formula. I tried to do it with If function like this:
=IF(D3=”Table1”;IF(INDEX(Table1Data;MATCH(D7;Table1Column;0);MATCH(D5;Table1Row;0))=0;"No data!";INDEX(Table1Data;MATCH(D7;Table1Column;0);MATCH(D5;Table1Row;0)));IF(D3=”Table2”; IF(INDEX(Table2Data;MATCH(D7;Table2Column;0);MATCH(D5;Table2Row;0))=0;"No data!";INDEX(Table2Data;MATCH(D7;Table2Column;0);MATCH(D5;Table2Row;0)));IF(D3=”Table3”; IF(INDEX(Table3Data;MATCH(D7;Table3Column;0);MATCH(D5;Table3Row;0))=0;"No data!";INDEX(Table3Data;MATCH(D7;Table3Column;0);MATCH(D5;Table3Row;0))))))
It now only gives #Name error.
Any help would be really appreciated. Since I can't upload an attachment please tell me if you understand the problem.