Forum Discussion
need help to come up with a formula
- Jan 02, 2019
Hi Matthew,
you can use INDEX/MATCH for this purposes.
Let's assume you have Sheet1 and Sheet2. Both sheets have 'Title', Banana' and 'Apples' entered in A1:A3. Sheet1 has got 'Yes' and 'No' in B2:B3. You can use the following formula in Sheet2!B2 to lookup for a value matching 'Banana':
=INDEX(Sheet1!$B$2:$B$3,MATCH(Sheet2!$A2,Sheet1!$A$2:$A$3,0))
If you copy this formula one cell down, it will show a lookup result for 'Apples'.
Please see attached for an example
Thanks
Yury
Hi Matthew,
you can use INDEX/MATCH for this purposes.
Let's assume you have Sheet1 and Sheet2. Both sheets have 'Title', Banana' and 'Apples' entered in A1:A3. Sheet1 has got 'Yes' and 'No' in B2:B3. You can use the following formula in Sheet2!B2 to lookup for a value matching 'Banana':
=INDEX(Sheet1!$B$2:$B$3,MATCH(Sheet2!$A2,Sheet1!$A$2:$A$3,0))
If you copy this formula one cell down, it will show a lookup result for 'Apples'.
Please see attached for an example
Thanks
Yury
=INDEX(Sheet1!$B$2:$B$400,MATCH(Sheet2!$A2,Sheet1!$A$2:$A$400,0))
Or, is there a way to create a formula for unlimited rows? Since there will be ongoing more foods.
Thanks,
Matthew