Nesting Index and Match Function

dubez

New Member
Joined
Feb 26, 2015
Messages
5
Hi friends,

I have a formula that works, however I am not able to nest this formula to get more conditions. This could be very easy or a bit tricky.
I have the following formula that looks up all the records for an ID belonging to a particular territory:

=(INDEX('[IA Territory Dashboard WORKSHEET.xlsx]Ontario'!$A$3:$A$11,SMALL(IF(Dashboard!$B$7='[IA Territory Dashboard WORKSHEET.xlsx]Ontario'!$H$3:$H$11,ROW('[IA Territory Dashboard WORKSHEET.xlsx]Ontario'!$A$3:$A$11)-MIN(ROW('[IA Territory Dashboard WORKSHEET.xlsx]Ontario'!$A$3:$A$11))+1,""),ROW(A1))))

I would like to nest this so that I can dynamically lookup values in other territories (i.e. when "Dashboard!$B$7='[IA Territory Dashboard WORKSHEET.xlsx]Quebec" it will show data in the Quebec worksheet).

Any help is greatly appreciated.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hello,

it is not very well clear, but from what i understand you need to do, you would need to use INDIRECT and concatenate functions which you would be able to build a string and then change it to a reference based on what logic you need

if you can provide me with workbook it will be easier to fix this for you, but i think you would be able to solve it on your own with the above suggestions...

Hope this helps

Regards
 
Upvote 0
Thanks saeedkk, so sorry for the late reply and sorry if I wasnt that clear.

It turns out the formula I mentioned above has all the credentials to dynamically look up values in other territories (I must've been overthinking it).
The "IF(Dashboard!$B$7='[IA Territory Dashboard WORKSHEET.xlsx" part of the formula is where it essentially becomes dynamic based on the value in the Dashboard tab.

Thanks for all the help and sorry for the confusion.
 
Upvote 0

Forum statistics

Threads
1,215,047
Messages
6,122,858
Members
449,096
Latest member
Erald

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