Using FILTER Function that ingnores blank Criteria cells if no values in it

albers1291

New Member
Joined
Dec 20, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
PART 1) I have a workbook that we keep track of all help hired along with a bunch of other information. I wanted to create a tab that will use the following criteria (State, Date Range, Used Multiple Times, Rehire Status) to retrieve the names of anyone who fit the criteria that is filled in. I have used the Filter Function to retrieve a list of values using the criteria as long as all criteria are filled in. If i leave one of the cells blank, then it wont retrieve any values. What i want to do (whether its using the FILTER function or something else), is retrieve a list of unique values that meet whatever criteria is entered and to ignore the criteria that is blank. The current equation i am using is as follows: =SORT(UNIQUE(FILTER('Help Slip information'!$A$2:$AD$20000,('Help Slip information'!$A$2:$A$20000=$B$1)*('Help Slip information'!$P$2:$P$20000=$B$5)*('Help Slip information'!$E$2:$E$20000>=$B$2)*('Help Slip information'!E2:E20000<=$B$3),"None Meet Search Criteria")))

Part 2) The second part of this that i have no idea how to even start doing is to create a formula that pulls in only names of people that we have used multiple times over a certain time period in a specific state. In an ideal world, I would like it incorporated into the above formula, but I could live with having a separate tab for just this list.
 

Attachments

  • Capture.JPG
    Capture.JPG
    99.9 KB · Views: 55

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi & welcome to MrExcel.
How about
Excel Formula:
=SORT(UNIQUE(FILTER('Help Slip information'!$A$2:$AD$20000,(IF(B1="",1,'Help Slip information'!$A$2:$A$20000=$B$1))*(IF(B5="",1,'Help Slip information'!$P$2:$P$20000=$B$5))*(IF(B2="",1,'Help Slip information'!$E$2:$E$20000>=$B$2))*(IF(B3="",1,'Help Slip information'!E2:E20000<=$B$3)),"None Meet Search Criteria")))
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=SORT(UNIQUE(FILTER('Help Slip information'!$A$2:$AD$20000,(IF(B1="",1,'Help Slip information'!$A$2:$A$20000=$B$1))*(IF(B5="",1,'Help Slip information'!$P$2:$P$20000=$B$5))*(IF(B2="",1,'Help Slip information'!$E$2:$E$20000>=$B$2))*(IF(B3="",1,'Help Slip information'!E2:E20000<=$B$3)),"None Meet Search Criteria")))
This worked perfectly!! Thank you so much!!!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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