Avoid Blanks On Filter Formula

uk747

Well-known Member
Joined
Jul 20, 2011
Messages
832
Office Version
  1. 365
Platform
  1. Windows
In a Previous Post I had a formula below which Scanned Columns C:Q in Row 3 Which is the Header Row and Showed the 2 column with the Headers Country and Population
Formula Entered in A2 =FILTER($C$3:$Q$100,($C$2:$Q$2 ="country")+($C$2:$Q$2="population"))

However as I don't know how far down the Rows will appear if Data ends at Row 80 it shows 0's in the Array formula
Array highlights the 0's

I changed to below to change 0's to "" but still shows in the array
=FILTER($C$3:$Q$100,($C$2:$Q$2 ="country")+($C$2:$Q$2="population")) & ""
Array highlights the blanks

I know in normal filters you can have this to avoid Blanks, but not sure how to add to formula above
=FILTER($B$1:$J$1, $B$1:$J$1<>"")
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
How about
Excel Formula:
=FILTER(FILTER($C$3:$Q$100,C3:C100<>""),($C$2:$Q$2 ="country")+($C$2:$Q$2="population"))
 
Upvote 0
Solution
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,461
Members
449,085
Latest member
ExcelError

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