Dynamic lookup formula

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,860
Office Version
  1. 365
Platform
  1. Windows
I am using this following formula,

=LOOKUP(9.99999999999999E+307,SEARCH(N2,Activity!$D$2:$D$163),Activity!$E$2:$E$163)

I frequently add some items in the master list, and therefore, I have to update the formula on every sheet. How can I make this a dynamic formula.

Thanks
 
Yes it does do the same thing, but again, if I add something in the master list, I have to change the formula in all sheet, so, if I use say row 1000 in lookup or Index formula, would it work fine, even though the master list will have only 200 or so rows?

Thanks

Right.

Define Lrow by means of Insert | Name | Define (or Formulas | Name Manager) as referring to:

=MATCH(9.99999999999999E+307,Activity!$D:$D)

Define ActList as referring to:

=Activity!$D$2:INDEX(Activity!$D:$D,Lrow)

and DescList as referring to:

=Activity!$E$2:INDEX(Activity!$E:$E,Lrow)

Now you can invoke on any sheet...

=INDEX(DescList,MATCH(N2,ActList,0))

If you don't want #N/A and you are on 2007 or later, try:

=IFERROR(INDEX(DescList,MATCH(N2,ActList,0)),"Not Found")

On an earlier Excel version, try:

=LOOKUP(REPT("z",255),CHOOSE({1,2},"Not Found",INDEX(DescList,MATCH(N2,ActList,0))))
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Thank you very much,

My another problem is that I need to creat a pivot table using all the tables, i.e. 9 sheets. each sheet containg averating 15000 rows and 36 columns.

Thanks you again.
I will see how can I do this, I am using 2003 version.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,711
Members
452,939
Latest member
WCrawford

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