Received a task, because the data operator will not use the editing formula and then cannot be related to filtering, so I want to help. Don't touch Excel for a long time, then try it.
The requirement is this (the simplification is maximized here): The requirement to judge the condition, the male is over 50 years old, the female is over 40 years old to fill the corresponding column, in order to facilitate subsequent multi-criteria filtering.
Formula: =if (g2= "Male", if (text (now (), "yyyy")-text (F2, "yyyy") >=50, "difficulty", "" "), if (Text (now ()," yyyy ")-text (F2," yyyy ") >= 40, "difficulty", "" "))
You can then drag the formula:
But one problem is that if this column is too large, such as tens of thousands of rows, then dragging is definitely not going to work. So what should we do? (Make an entire column fill the formula)
Steps:
1. After editing the formula of the 2nd line, press the F5 key
2, the reference position fill h2:h56 (column H 2 rows to H column 56 line), determine
3, select the formula of line 2nd, press CTRL + C to copy, press Ctrl+enter, complete the fill
It's much easier to do multi-conditional filtering, just select the multiple columns you want to filter (such as the date of birth, gender, or difficulty), and click menu item Data-Filter.
Excel Multi-conditional filter, formula fill