CHOOSECOLS/FILTER/HSTACK question

Jedi Master

Board Regular
Joined
Jun 10, 2024
Messages
70
Office Version
  1. 365
Platform
  1. Windows
I have one sheet that looks like this:(resource role values are static here and I only want to pull the ones that have corresponding resource count values below) This snip sheet name: Quote Task Master
1719864186483.png

and another I want to pull filtered values into from the first, that would look like this if done correctly: This snip sheet name: 2-Quote Master
1719864216051.png


Is there a version of this formula that would accomplish the above?:

=LET(x,XLOOKUP($G11,'PM Project Tracker'!M4:UM4,'PM Project Tracker'!M9:UM21),IF($G11="","",CHOOSECOLS(FILTER(HSTACK('PM Project Tracker'!B9:C21,x),x>0),2,1,3)))
 

Attachments

  • 1719863853415.png
    1719863853415.png
    8.4 KB · Views: 15
  • 1719863951771.png
    1719863951771.png
    5.3 KB · Views: 12
  • 1719864036382.png
    1719864036382.png
    8.3 KB · Views: 11

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I have one sheet that looks like this:(resource role values are static here and I only want to pull the ones that have corresponding resource count values below) This snip sheet name: Quote Task Master
View attachment 113540
and another I want to pull filtered values into from the first, that would look like this if done correctly: This snip sheet name: 2-Quote Master
View attachment 113541

Is there a version of this formula that would accomplish the above?:

=LET(x,XLOOKUP($G11,'PM Project Tracker'!M4:UM4,'PM Project Tracker'!M9:UM21),IF($G11="","",CHOOSECOLS(FILTER(HSTACK('PM Project Tracker'!B9:C21,x),x>0),2,1,3)))
UPDATE - The below formula works:

=IF($M19="","",CHOOSECOLS(FILTER(HSTACK('Quote Task Master'!A30:B39),'Quote Task Master'!A30:A39>0),1,2))
 
Upvote 0
Solution
FWIW you can simplify that like
Excel Formula:
=IF($M19="","",FILTER('Quote Task Master'!A30:B39,'Quote Task Master'!A30:A39>0))
 
Upvote 1

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