Excel - lookup array based on cell value

adpatel

New Member
Joined
May 30, 2019
Messages
42
Office Version
  1. 2016
Platform
  1. Windows
I have workbook, containing 4 major worksheets named as
  1. BNF WEEK
  2. BNF NEXT WEEK
  3. BNF MONTH
  4. MAIN
Now I am working in sheet named as MAIN and I want formula where, if cell R6 = 1 than fetch data from 1st sheet i.e. BNF WEEK if R6 = 2 than fetch data from 2nd sheet i.e. BNF NEXT WEEK, and so on
Kindly help with this issue,
Currently using below formula
=INDEX('BNF WEEK'!$E$2:$E$500,MATCH($J10+L$5&L$7,'BNF WEEK'!$XER$2:$XER$543,0))*-L$6
Any help highly appriciated
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,252
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=INDEX(CHOOSE(R6,'BNF WEEK'!$E$2:$E$500,'BNF NEXT WEEK'!$E$2:$E$500,'BNF MONTH'!$E$2:$E$500,Main!$E$2:$E$500),MATCH($J10+L$5&L$7,CHOOSE(R6,'BNF WEEK'!$XER$2:$XER$543,'BNF NXT WEEK'!$XER$2:$XER$543,'BNF MONTH'!$XER$2:$XER$543,Main!$XER$2:$XER$543),0))*-L$6
 

Forum statistics

Threads
1,141,073
Messages
5,704,138
Members
421,328
Latest member
mippy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top