Avoid Blanks On Filter Formula

uk747

Well-known Member
Joined
Jul 20, 2011
Messages
828
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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,391
Messages
6,119,244
Members
448,879
Latest member
VanGirl

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