filter formula if the criteria is not included in the filtered info

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
343
Office Version
  1. 365
Platform
  1. Windows
How can I use the filtered formula if the criteria is not included on the info to be filtered. Please see below;
I would like to filter the name,emp.#,date and dept., if "number" column is 1. the "number" column is not included on the info to be filtered. Hope I explain it well.. many thanks

Name​
Emp.#​
Date​
Dept.​
Number​
RESULT IF FILTER CRITERIA IS "1"​
Name1​
1001​
05-11-22​
A​
1​
Name​
Emp.#​
Date​
Dept.​
Name2​
1002​
06-11-22​
B​
2​
Name1​
1001​
05-11-22​
A​
Name3​
1003​
07-11-22​
C​
1​
Name3​
1003​
07-11-22​
C​
Name4​
1004​
08-11-22​
A​
2​
Name5​
1005​
09-11-22​
B​
Name5​
1005​
09-11-22​
B​
1​
Name7​
1007​
11-11-22​
A​
Name6​
1006​
10-11-22​
C​
2​
Name9​
1009​
13-11-22​
C​
Name7​
1007​
11-11-22​
A​
1​
Name8​
1008​
12-11-22​
B​
2​
Name9​
1009​
13-11-22​
C​
1​
Name10​
1010​
14-11-22​
A​
2​
 
How did you get both minimum and maximum values from using small function in AGGREGATE formula.
Are you posting in the correct thread?


what will be the formula if i want to filter only name, emp# and dept. (skip on date)? thanks
Is this what you mean? Check table name.
Excel Formula:
=FILTER(Table13[[Name]:[Date]],Table13[Number]=1)
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Are you posting in the correct thread?



Is this what you mean? Check table name.
Excel Formula:
=FILTER(Table13[[Name]:[Date]],Table13[Number]=1)

Sir, I mean, after filter, it would be name, emp.# and dept only.. the date which is in between is not included.. thanks
1667641641488.png
 
Upvote 0
Do you have the CHOOSECOLS function?

ExcelNewbie2020_1.xlsm
ABCDEFGHIJ
1NameEmp.#DateDept.NumberNameEmp.#Dept.
2Name1100111/05/2022A1Name11001A
3Name2100211/06/2022B2Name31003C
4Name3100311/07/2022C1Name51005B
5Name4100411/08/2022A2Name71007A
6Name5100511/09/2022B1Name91009C
7Name6100611/10/2022C2
8Name7100711/11/2022A1
9Name8100811/12/2022B2
10Name9100913/11/2022C1
11Name10101014/11/2022A2
FILTER (4)
Cell Formulas
RangeFormula
H2:J6H2=CHOOSECOLS(FILTER(Table134[[Name]:[Dept.]],Table134[Number]=1),1,2,4)
Dynamic array formulas.
 
Upvote 0
Solution
Do you have the CHOOSECOLS function?

ExcelNewbie2020_1.xlsm
ABCDEFGHIJ
1NameEmp.#DateDept.NumberNameEmp.#Dept.
2Name1100111/05/2022A1Name11001A
3Name2100211/06/2022B2Name31003C
4Name3100311/07/2022C1Name51005B
5Name4100411/08/2022A2Name71007A
6Name5100511/09/2022B1Name91009C
7Name6100611/10/2022C2
8Name7100711/11/2022A1
9Name8100811/12/2022B2
10Name9100913/11/2022C1
11Name10101014/11/2022A2
FILTER (4)
Cell Formulas
RangeFormula
H2:J6H2=CHOOSECOLS(FILTER(Table134[[Name]:[Dept.]],Table134[Number]=1),1,2,4)
Dynamic array formulas.
yes i have choosecols and that works, thank you man...
 
Upvote 0
Book1
BCDEFGHIJK
1
2NameEmp.#DateDept.Number
3Name1100144692A1Name11001A
4Name2100244723B2Name31003C
5Name3100344753C1Name51005B
6Name4100444784A2Name71007A
7Name5100544815B1Name91009C
8Name6100644845C2
9Name7100711/11/2022A1
10Name8100844906B2
11Name9100944878C1
12Name10101044879A2
13
Sheet2
Cell Formulas
RangeFormula
I3:K7I3=FILTER(FILTER(Table1[[Name]:[Dept.]],Table1[Number]=1),{1,1,0,1})
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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