search
HomeSoftware TutorialOffice SoftwareHow to select the same data in different columns in EXCEL

How to select the same data in different columns in EXCEL

How to select the same data in different columns in EXCEL

Enter the formula in E1: =INDEX($A$1:$A$100,SMALL(ISNUMBER(MATCH($A$1:$A$100,$C$1:$C$200,0))*ROW($A$1 :$A$100),ROW(A1) ROW(INDIRECT("A"&SUM(ISNA(MATCH($A$1:$A$100,$C$1:$C$200,0))*1))))

Press Ctrl Shift Enter to confirm the input.

Enter the formula in F1: =IF(ISERR(E1),""",VLOOKUP(E1,$A$1:$B$100,2,0))

Enter the formula in G1: =IF(ISERR(E1),""",VLOOKUP(E1,$C$1:$D$200,2,0))

illustrate:

1. $A$1:$A$100 is the assumed data area of ​​columns A and B, and $C$1:$C$200 is the data area of ​​columns C and D. Be careful to use absolute references.

2. When copying the formula downwards, an error occurred (#NUM!) when copying to column E. This error could have been blocked by using the IF function like the F and G formulas, but in that case, the formula would be too long.

---------------------------------

Welcome to the Excel Home forum to learn and communicate

How to use completion condition selection in EXCEL

Take the following data table as an example. Regarding the setting of conditional areas, there are the following aspects that need to be paid attention to:

1. The condition area contains at least two lines. By default, the first line serves as the field title and the second line serves as the condition parameter. In some cases (discussed later), field titles can be left blank; condition parameters can also be left blank to indicate arbitrary conditions.

2. In order to avoid errors, the condition area should be placed separately from the data area as much as possible. The condition area can even be placed in different worksheets.

3. The same column contains multiple conditional parameters, which represents a logical "OR" of parallelism. If any one of the conditions is met, it can be included in the function statistics.

For example: The condition area indicates that the "salesperson" field can be "Chen Sheng" or "Lin Musen" or "Qiu Ying".

4. The same line contains multiple conditional parameters, indicating the logical "AND" of cross-overlay. At the same time, records that meet these conditions can be included in the statistical category by the function.

For example: the condition area represents records in which the "salesperson" field is "Chen Sheng" and the "supermarket" field value is "RT-Mart".

5. If the condition area contains multiple rows and columns, refer to the above two rules for logical combination.

For example: The condition area indicates that the record needs to satisfy the "Chen Sheng" salesperson of "RT-Mart" supermarket or any salesperson of "Wal-Mart" supermarket.

6, conditional parameters are not case-sensitive. If you need to be case sensitive, you can build a condition using a function formula that supports case sensitivity.

7, for text fields, you can use wildcard characters, including "*", "?" and "~".

For example: the condition area represents all records whose salesperson field starts with the word "Lin".

8. In the condition parameters, in addition to directly filling in text and values, you can also use comparison operators to directly connect text or values ​​to express comparison conditions.

For example: the lower condition area indicates that the salesperson is "not equal to" Chen Sheng and the quantity is "greater than" 4000, and the function statistics result is 6.

9, in addition to filling in the conditions directly, you can also use the equal sign to guide the conditions, where the condition part needs to be surrounded by half-width double quotes.

For example: the condition area shows the conditions that can be entered.

10, conditional parameters can also use formulas (the above one cannot be counted as a real formula). When using a formula as a condition, the field title must be left blank or use a title that does not exist in other data tables. The conditional formula must be a formula for logical judgment.

11. The field title cannot be directly referenced in the formula of the condition parameter. When the entire field needs to be referenced, the cell where the first record is located can be used as a reference, and relative reference must be used.

The above is the detailed content of How to select the same data in different columns in EXCEL. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:Excel办公网. If there is any infringement, please contact admin@php.cn delete
Your Calculator App Can Be Replaced By Microsoft ExcelYour Calculator App Can Be Replaced By Microsoft ExcelMar 06, 2025 am 06:01 AM

Ditch the Calculator: Why and How to Use Excel for All Your Calculations I haven't touched a calculator in ages. Why? Because Microsoft Excel handles all my calculations with ease, and it can do the same for you. Why Excel Trumps a Calculator While

Don't Create Tables in Word: Use Excel InsteadDon't Create Tables in Word: Use Excel InsteadMar 06, 2025 am 03:04 AM

Creating tables in Word, although improved, is still cumbersome and sometimes brings more problems. This is why you should always create tables in Microsoft Excel. Why is it better to create tables in Excel? In short, Word is a word processor, while Excel is a data processor. So Word is not built for the best table creation, but its similar product, Excel. Here are just some of the reasons why creating tables in Excel is better than using Microsoft Word: Although it is surprising that you can use many Excel-like features in Microsoft Word tables, in Excel you

How to Reduce the Gaps Between Bars and Columns in Excel Charts (And Why You Should)How to Reduce the Gaps Between Bars and Columns in Excel Charts (And Why You Should)Mar 08, 2025 am 03:01 AM

Enhance Your Excel Charts: Reducing Gaps Between Bars and Columns Presenting data visually in charts significantly improves spreadsheet readability. Excel excels at chart creation, but its extensive menus can obscure simple yet powerful features, suc

5 Things You Can Do in Excel for the Web Today That You Couldn't 12 Months Ago5 Things You Can Do in Excel for the Web Today That You Couldn't 12 Months AgoMar 22, 2025 am 03:03 AM

Excel web version features enhancements to improve efficiency! While Excel desktop version is more powerful, the web version has also been significantly improved over the past year. This article will focus on five key improvements: Easily insert rows and columns: In Excel web, just hover over the row or column header and click the " " sign that appears to insert a new row or column. There is no need to use the confusing right-click menu "insert" function anymore. This method is faster, and newly inserted rows or columns inherit the format of adjacent cells. Export as CSV files: Excel now supports exporting worksheets as CSV files for easy data transfer and compatibility with other software. Click "File" > "Export"

How to Use the AVERAGEIF and AVERAGEIFS Functions in ExcelHow to Use the AVERAGEIF and AVERAGEIFS Functions in ExcelMar 07, 2025 am 06:03 AM

Quick View of AVERAGEIF and AVERAGEIFS Functions in Excel Excel's AVERAGEIF and AVERAGEIFS functions can be used to calculate the average value of a dataset. However, unlike simpler AVERAGE functions, they are able to include or exclude specific values ​​in the calculation. How to use the AVERAGEIF function in Excel Excel's AVERAGEIF function allows you to calculate the average value of a filtered dataset based on a single condition set. AVERAGEIF function syntax The AVERAGEIF function contains three parameters: =AVERAGEIF(x,y,z)

Microsoft Excel Keyboard Shortcuts: Printable Cheat SheetMicrosoft Excel Keyboard Shortcuts: Printable Cheat SheetMar 14, 2025 am 12:06 AM

Master Microsoft Excel with these essential keyboard shortcuts! This cheat sheet provides quick access to the most frequently used commands, saving you valuable time and effort. It covers essential key combinations, Paste Special functions, workboo

How to Use LAMBDA in Excel to Create Your Own FunctionsHow to Use LAMBDA in Excel to Create Your Own FunctionsMar 21, 2025 am 03:08 AM

Excel's LAMBDA Functions: An easy guide to creating custom functions Before Excel introduced the LAMBDA function, creating a custom function requires VBA or macro. Now, with LAMBDA, you can easily implement it using the familiar Excel syntax. This guide will guide you step by step how to use the LAMBDA function. It is recommended that you read the parts of this guide in order, first understand the grammar and simple examples, and then learn practical applications. The LAMBDA function is available for Microsoft 365 (Windows and Mac), Excel 2024 (Windows and Mac), and Excel for the web. E

If You Don't Use Excel's Hidden Camera Tool, You're Missing a TrickIf You Don't Use Excel's Hidden Camera Tool, You're Missing a TrickMar 25, 2025 am 02:48 AM

Quick Links Why Use the Camera Tool?

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment