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

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
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
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,314
Members
449,081
Latest member
tanurai

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
Back
Top