Nicobisgaard
New Member
- Joined
- Feb 17, 2017
- Messages
- 7
Hey Forum,
i want to try and find a smarter way than i use currently to lookup in a table based on 4 different checks.
The table looks like the one below:
https://photos.app.goo.gl/8N4FLdKwzBOzIqMo2
The first thing want is to check cell B3 - If the cell value is 3200 i want to lookup in column E:L. If the cell is 3700 i want to look up in M:T.
After that check i want to look in cell B4. If the value is "K12", and L was 3200, i want to look in columns E:F.
Third check is to look in cell B2, if the value is "Ma" i want to look at column F. Finally i want to look up h to find the correct value.
In the above example the correct value would be the one marked with green.
Does anyone have a good idea on how to achieve the above?
At the moment i am using a ton of If/And/Or sentences in a very very long code to do it - But i assume there must be some smarter way of doing the search?.
Thanks.
i want to try and find a smarter way than i use currently to lookup in a table based on 4 different checks.
The table looks like the one below:
https://photos.app.goo.gl/8N4FLdKwzBOzIqMo2
The first thing want is to check cell B3 - If the cell value is 3200 i want to lookup in column E:L. If the cell is 3700 i want to look up in M:T.
After that check i want to look in cell B4. If the value is "K12", and L was 3200, i want to look in columns E:F.
Third check is to look in cell B2, if the value is "Ma" i want to look at column F. Finally i want to look up h to find the correct value.
In the above example the correct value would be the one marked with green.
Does anyone have a good idea on how to achieve the above?
At the moment i am using a ton of If/And/Or sentences in a very very long code to do it - But i assume there must be some smarter way of doing the search?.
Thanks.
Last edited: