Filter horizontal ignore empty cells and zero values

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
289
Office Version
  1. 365
Platform
  1. Windows
i have this table

Name-List-for-Practice.xlsm
ABCDEF
1
2NameDeptPENPAPERPENCILBOOK
3Name1A28
4Name2B024
5Name3C21
6Name4D2031
7
8
9
10
11
12
13
14
15EXPECTED RESULT
16NameDeptPAPERBOOK
17Name2B24
18
19
20
21
22
23
24
Sheet14


when i search for name and dept. I would like it to filter the column header ( pen,paper,pencil and book) with the respective figures below. and will ignore zero values and empty cells. see expected result.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Try this.

23 08 20.xlsm
ABCDEF
1
2NameDeptPENPAPERPENCILBOOK
3Name1A28
4Name2B024
5Name3C21
6Name4D2031
7
14
15EXPECTED RESULT
16NameDeptPAPERBOOK
17Name2B24
18
Filter
Cell Formulas
RangeFormula
C16:D17C16=LET(f,FILTER(C2:F6,ISNUMBER(MATCH(A2:A6,A16:A17,0))),FILTER(f,TAKE(f,-1)<>0))
Dynamic array formulas.
 
Upvote 0
Try this.

23 08 20.xlsm
ABCDEF
1
2NameDeptPENPAPERPENCILBOOK
3Name1A28
4Name2B024
5Name3C21
6Name4D2031
7
14
15EXPECTED RESULT
16NameDeptPAPERBOOK
17Name2B24
18
Filter
Cell Formulas
RangeFormula
C16:D17C16=LET(f,FILTER(C2:F6,ISNUMBER(MATCH(A2:A6,A16:A17,0))),FILTER(f,TAKE(f,-1)<>0))
Dynamic array formulas.
thank you sir for the immediate reply, could you please add the dept as another criteria?.. thanks again
 
Upvote 0
Is this what you mean?

23 08 20.xlsm
ABCDEF
1
2NameDeptPENPAPERPENCILBOOK
3Name1A28
4Name2B024
5Name2C21
6Name4D2031
7
14
15RESULT
16NameDeptPENBOOK
17Name2C21
18
Filter
Cell Formulas
RangeFormula
C16:D17C16=LET(f,FILTER(C2:F6,ISNUMBER(MATCH(A2:A6,A16:A17,0)*MATCH(B2:B6,B16:B17,0))),FILTER(f,TAKE(f,-1)<>0))
Dynamic array formulas.
 
Upvote 0
Solution
Is this what you mean?

23 08 20.xlsm
ABCDEF
1
2NameDeptPENPAPERPENCILBOOK
3Name1A28
4Name2B024
5Name2C21
6Name4D2031
7
14
15RESULT
16NameDeptPENBOOK
17Name2C21
18
Filter
Cell Formulas
RangeFormula
C16:D17C16=LET(f,FILTER(C2:F6,ISNUMBER(MATCH(A2:A6,A16:A17,0)*MATCH(B2:B6,B16:B17,0))),FILTER(f,TAKE(f,-1)<>0))
Dynamic array formulas.
Indeed.. thank you very much sir..
 
Upvote 0

Forum statistics

Threads
1,215,106
Messages
6,123,122
Members
449,096
Latest member
provoking

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