Home  >  Article  >  Topics  >  Excel automatically identifies provinces based on cities

Excel automatically identifies provinces based on cities

王林
王林Original
2020-05-13 13:41:3337809browse

Excel automatically identifies provinces based on cities

First prepare the cell structure in Excel.

Excel automatically identifies provinces based on cities

Enter the function formula for querying provinces based on cities.

1. In cell A7, enter the function formula for querying provinces based on city "=INDEX($1:$1,MAX(IF($A$2:$D$4=A7,COLUMN(A:D))) ))", please note that all characters in the formula are English characters, and errors will occur when entering Chinese characters;

2. Press the three keys "Ctrl", "Shift" and "Enter" at the same time.

Excel automatically identifies provinces based on cities

The results are as follows:

Excel automatically identifies provinces based on cities

Recommended tutorial: excel tutorial

The above is the detailed content of Excel automatically identifies provinces based on cities. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn