Filter formula to return select columns if selection is not zero

kmsprague

New Member
Joined
Nov 14, 2022
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Hi friends,
I've been spinning my wheels trying to figure out how to build a filter formula to return info for only people who do not have a zero value in one of 5 columns of a giant spreadsheet and pull them into another spreadsheet. In my example attached, I want to pull all the columns highlighted in green as long as at least one of the columns I-M has a value greater than zero. My current formula (and every version of it I've tried) keeps coming back with #VALUE. I'm sure it's something small I'm overlooking, but I've stared at it too much to see the error. =FILTER(FILTER(A2:N4,I2:M4>0),{1,2,3,9,10,11,12,13,14}) Can you please tell me where I'm going wrong? All help is greatly appreciated! Thank you!
 

Attachments

  • Mr Excel Example.png
    Mr Excel Example.png
    13.3 KB · Views: 7

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
How about
Excel Formula:
=FILTER(CHOOSECOLS(A2:N4,1,2,3,9,10,11,12,13,14),BYROW(I2:M4,LAMBDA(br,SUM(br)))>0)
 
Upvote 1
Solution

Forum statistics

Threads
1,215,110
Messages
6,123,146
Members
449,098
Latest member
Doanvanhieu

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