Indirect function by VBA

Ekac

New Member
Joined
Nov 6, 2023
Messages
1
Office Version
  1. 2021
Platform
  1. Windows
Hi,

This formula is applied at B12

=LET(nn,LET(sortedData,SORTBY(INDIRECT(B1&"!A5:R10998"),MATCH(INDIRECT(B1&"!J5:J10998"),Master!C2:C10,0),1,MATCH(INDIRECT(B1&"!A5:A10998"),Master!B1:B13,0),1),FILTER(sortedData,INDEX(sortedData,0,9)="ABC ROSE","")),IF(nn=0,"",nn))

In B1 which is a dropdown it is worksheet name which one can choose and above formula works very fine.

Here,I want to add one condition that if col M12 & below and S12 & below,if it is blank then zero must be exist and rest as above formula does.

All this I require through VBA so the result I can get in value and not in formula.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,215,086
Messages
6,123,038
Members
449,092
Latest member
ikke

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