lookup formuale with condition
Hi,
I need help with the lookup formulae. Basically, I am trying to populate the Metric1 and 2 from Shee1 onto Sheet2 considering that Metric values sit in the row of A1 and B1 & ...
Can you please help.
Answers
-
Hey @Gaurav Chauhan
When doing a lookup with multiple criteria, the combination of INDEX/COLLECT are the functions to use. A COLLECT has the syntax (COLLECT(information you want to collect, range 1, criteria 1, range 2, criteria 2, etc). The number 1 at the end of the formulas are the row index required in the INDEX function.
Metric #1
=INDEX(COLLECT({Sheet 1 Metric 1 column}, {Sheet 1 Project column}, Project@row, {Sheet 1 Period column}, Period@row),1)
Metric #2
=INDEX(COLLECT({Sheet 1 Metric 2 column}, {Sheet 1 Project column}, Project@row, {Sheet 1 Period column}, Period@row),1)
Because the ranges are cross sheet references you will need to manually insert them through the Formula window - you cannot simply copy paste the formula into your sheet. Your ranges will have different names (you can rename them at will). I wanted you to be clear on what the ranges referred to.
Let me know if you have any questions
Kelly
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!