Is it possible to name filtered criteria in Advanced Filter?

ie1002

New Member
Joined
Sep 21, 2018
Messages
2
If you have a table of data, say:

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Age[/TD]
[TD]Gender[/TD]
[/TR]
[TR]
[TD]John Smith[/TD]
[TD]45[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Jane Smith[/TD]
[TD]44[/TD]
[TD]Female[/TD]
[/TR]
</tbody>[/TABLE]

To which you apply an advanced filter which returns cells with ‘Male’ in the Gender field, is it then possible to assign a name to that filter i.e. return a separate column which will say ‘Men’ for all rows containing ‘Male’?

That would essentially give you mapping for the various filters so that Males would be Men and Females would be Women in this scenario. Is it possible to do that without having that specific mapped column in your source data?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Have a look at Custom View (see View tab)

It allows you to save many different views of your data
- save a view with male filter
- save a view with female filter
 
Upvote 0
guys, ineed help how to separate male and female result with high to low sorting?




NAME SCORE
max 5
william 3
susan 7
john 7
cindy 9
lucy 2
thomas 4
jacob 11
lily 9


male score (high to low) score female score (high to low) score
 
Upvote 0
Do you have a gender column somewhere?
 
Upvote 0
Just include that column in the sort then. ;)

Also, for future reference, please note the forum rule on cross-posting and comply with it. Thanks.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

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