Excel Multi-conditional filter, formula fill

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.