Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-22-2025, 09:45 PM
14spar15 14spar15 is offline FILTER Function with multiple criteria and possible empty cells Windows 7 64bit FILTER Function with multiple criteria and possible empty cells Office 2010 64bit
Competent Performer
FILTER Function with multiple criteria and possible empty cells
 
Join Date: Mar 2011
Posts: 100
14spar15 is on a distinguished road
Default FILTER Function with multiple criteria and possible empty cells

Hello, I’m using this Filter Function.



=FILTER(F26:AD500,((ISNUMBER(SEARCH(G2,V26:V500))) +(ISNUMBER(SEARCH(G2,Y26:Y500))))*(ISNUMBER(SEARCH (J2,R26:R500)))*(ISNUMBER(SEARCH(M2,L26:L500))),"N o Results")

This works well as long as there is data in cell “V” or “Y” and cell “L” and cell “R”. The problem is I want to have rows selected where cell “V” and “Y” may not have data and/or cell “L” may not have data and/or cell “R” may not have data. Also, I don’t want any rows selected if all the search cells (G2,J2 and M2) are blank and where cell V,Y,L and R have no data. Thanks
Reply With Quote
  #2  
Old 06-28-2025, 12:54 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline FILTER Function with multiple criteria and possible empty cells Windows 11 FILTER Function with multiple criteria and possible empty cells Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,943
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Posting a sample sheet with some data and manually mocked up results would be useful ( no pics please). Thx
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 08-08-2025, 01:00 PM
14spar15 14spar15 is offline FILTER Function with multiple criteria and possible empty cells Windows 7 64bit FILTER Function with multiple criteria and possible empty cells Office 2010 64bit
Competent Performer
FILTER Function with multiple criteria and possible empty cells
 
Join Date: Mar 2011
Posts: 100
14spar15 is on a distinguished road
Default Sample sheet

Hello, Here is a sample sheet of the problem I am attempting to solve. The formula is in cell A4. Row 22,23 and 24 each have a missing Color/Shape/Weight element. The problem is, if I conduct a search using just 1 or 2 of the 3 search elements and line 22,23 or 24 meet the criteria they do not get not show up in the results. Also, if row 21 meets the search criteria, the results for column D and E show zero rather than an empty cell. It would be nice to resolve this issue but it is not near as critical as at least the row is in the results. Thank you
Reply With Quote
  #4  
Old 08-08-2025, 01:14 PM
14spar15 14spar15 is offline FILTER Function with multiple criteria and possible empty cells Windows 7 64bit FILTER Function with multiple criteria and possible empty cells Office 2010 64bit
Competent Performer
FILTER Function with multiple criteria and possible empty cells
 
Join Date: Mar 2011
Posts: 100
14spar15 is on a distinguished road
Default

IΒ’m not sure what is going on here. I log into my MSOffice Forum account and try and respond to my thread. I am again asked to sign in and I do. I try and attach sheet and again am asked to sign in to account which I do. I try and send attachment and asked am asked to sign in. The attachment never seems to get sent.
Reply With Quote
  #5  
Old 08-09-2025, 02:31 AM
p45cal's Avatar
p45cal p45cal is offline FILTER Function with multiple criteria and possible empty cells Windows 10 FILTER Function with multiple criteria and possible empty cells Office 2021
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Quote:
Originally Posted by 14spar15 View Post
I’m not sure what is going on here.
Keep trying!
In the meantime, I think you'll need to be adding the likes of
Code:
(V26:V500="")
to your include element of the FILTER function.
Where exactly and whether you use multiply or add depends on which results you want to see.




For
Quote:
where cell V,Y,L and R have no data
you could use
Code:
*((Y26:Y500 & V26:V500 & L26:L500 & R26:R500)<>"")
although if there are errant spaces in those cells the liberal use of TRIM should help.




For
Quote:
don’t want any rows selected if all the search cells (G2,J2 and M2) are blank
you could wrap the whole formula in
Code:
=IF(G2 & J2 & M2 ="","Empty Criteria",yourFilterFormula)
All in all, quite convoluted.


Edit:
I note in your formula in msg#1 you have:
ISNUMBER(SEARCH (J2,R26:R500))
where there's a space between the H of SEARCH and the open parentheses. I hope it's the website's mangling of your formula because when I pasted the formula into a cell it didn't throw any error but the result was wrong.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Index and Match function with multiple criteria not searching the next record mushtaqkadar Excel 3 06-17-2017 12:20 AM
FILTER Function with multiple criteria and possible empty cells Filter Mail Merge based on a list of filter criteria AusSteelMan Mail Merge 2 05-09-2016 03:35 PM
Filter tasks with multiple criteria markhad Outlook 0 03-15-2016 02:48 AM
Counting cells with multiple complex criteria TishyMouse Excel 12 12-06-2012 05:05 AM
FILTER Function with multiple criteria and possible empty cells filling multiple cells whislt using Filter VinceO Excel 1 05-09-2011 06:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:16 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft