V lookup Across Multiple Tabs and Return Multiple values if found on a tab

VBA learner ITG

Active Member
Joined
Apr 18, 2017
Messages
272
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
hi all,

Need your guidance if possible on how to amend the below array formula to do a lookup all tabs listed below?


=IFERROR(INDEX('4.RANGING CONVENIENCE'!$B:$B,SMALL(IF(B$1='4.RANGING CONVENIENCE'!$A:$A,ROW('4.RANGING CONVENIENCE'!$A:$A)- MIN(ROW('4.RANGING CONVENIENCE'!$A:$A))+1,""), ROW()-2)),"")


Tabs that needs to be lookedup:

[TABLE="width: 230"]
<colgroup><col></colgroup><tbody>[TR]
[TD]4.RANGING CONVENIENCE[/TD]
[/TR]
[TR]
[TD]5.RANGING FRESH[/TD]
[/TR]
[TR]
[TD]6.RANGING GROCERY & HOME[/TD]
[/TR]
[TR]
[TD]7.RANGING DRINKS[/TD]
[/TR]
[TR]
[TD]8.RANGING BAKERY SNACKING[/TD]
[/TR]
</tbody>[/TABLE]



I have tried also amending the above formula to a Named Range and removed the ref to a singlular worksheet but it doesnt work.

Any advice and guidance appreciated.
 

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.
Usual reply on something like this would be nested IFERRORS, e.g.

IFERROR(INDEX(...SMALL..),IFERROR(INDEX(...SMALL..),IFERROR(INDEX(...SMALL..),IFERROR(INDEX(...SMALL..),IFERROR(INDEX(...SMALL..),IFERROR(INDEX(...SMALL..))))))

And if it's an array formula change that A:A, B:B to something more sensible to reflect the maximum data you're likely to have, e.g. A1:A100000 B1:B100000
As it stands it will ne slow returning a result, and if you're having to nest IFERRORS it'll be even worse.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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