Filter Formula Adjustment required pls

Arts

Well-known Member
Joined
Sep 28, 2007
Messages
770
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi all

I have the below formula which works fine with just one minor adjustment required, is it possible to not display the 0 values under R&D results?

=FILTER(C4:D22,ISNUMBER(SEARCH(E4,C4:C22))+ISNUMBER(SEARCH(E4,D4:D22)),"no")

Currentnew
Project 1R&D 1Project 1R&D 1
Project 2R&D 2Project 2R&D 2
Project 3R&D 3Project 3R&D 3
Project 4R&D 4Project 4R&D 4
Project 5R&D 5Project 5R&D 5
Project 6R&D 6Project 6R&D 6
Project 7R&D 7Project 7R&D 7
Project 8R&D 8Project 8R&D 8
Project 9R&D 9Project 9R&D 9
Project 10Project 10
0​
Project 11Project 11
0​
Project 12Project 12
0​
Project 13Project 13
0​
Project 14Project 14
0​
Project 15Project 15
0​
Project 16Project 16
0​
Project 17Project 17
0​
Project 18Project 18
0​
Project 19Project 19
0​
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
How about
Excel Formula:
=FILTER(C4:D22&"",ISNUMBER(SEARCH(E4,C4:C22))+ISNUMBER(SEARCH(E4,D4:D22)),"no")
 
Upvote 0
Solution
How about
Excel Formula:
=FILTER(C4:D22&"",ISNUMBER(SEARCH(E4,C4:C22))+ISNUMBER(SEARCH(E4,D4:D22)),"no")

That is exactly what I wanted! Thank you !!

I was trying all sorts to wrap the Filter in a Filter (my attempt below) and not include blanks (as was taught online) by including <>"".

=FILTER(FILTER(C4:D22,ISNUMBER(SEARCH(E4,C4:C22))+ISNUMBER(SEARCH(E4,D4:D22)),"no"),FILTER(C4:D22,ISNUMBER(SEARCH(E4,C4:C22))+ISNUMBER(SEARCH(E4,D4:D22))<>""))

Why would that work? You are asking to filter that range and blanks but why would that then drop the 0's (the blanks) would really appreciate if you could explain.
 
Upvote 0
The &"" adds a nullstring to the values, which prevents Xl from displaying empty cells as 0
 
Upvote 0
Am I taking the Filter function too literally here? (The Filter function mirrors the Filter selection when in a spreadsheet is how I am seeing it)

When you use the Filter function in excel you naturally select the values you want.

This isn't the same as selecting blanks in a Filter within a spredsheet then? This would then include the blanks if this was the case..
 
Upvote 0
You can filter out blank cells, but that would mean Project 10 onwards would not appear in the list.
 
Upvote 0
You mean R&D9 onwards would not appear as they are blank (they are two separate columns) I don't think I'm explaining how I'm seeing it.

What you have done is add "" to the filter criteria. Adding a blank in a filter would select blanks or is that you have added a blank so it now picks up the text and the blank. Where there is no text in the blank therefore this is now showing just values with the blank after it.

I'm travelling home from work now and my phone battery is dying incase I don't respond or like comment pls don't think I am ignoring.
 
Upvote 0
I have not added a "" to the criteria, I added it to the cells being filtered. Which is a totally different thing.
 
Upvote 0
So is there a space after each value now or am I still completely missing it?

I'll log onto work machine tomorrow and check this.

Thoroughly appreciate the out of hours responses Fluff, thank you.
 
Upvote 0
No there is no space, it's a nullstring (zero length string) that turns everything to text & thereby prevents an empty cell from showing as 0
 
Upvote 0

Forum statistics

Threads
1,216,100
Messages
6,128,825
Members
449,470
Latest member
Subhash Chand

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