Searching Duplicate Data in Different Column Fields

  • Last update:  2023-07-03
  • Overview

    Problem

    Sometimes you may need to find the same data in different column fields (duplicate values appearing in different columns) when processing and cleaning data.

    For example, to find out the lost users on a website, you can assume that if Registration Time and Last Access Time are the same, the users are considered as Lost User, otherwise, they are considered as Normal User.

     

    Solution

    Use the EXACT function to check if two sets of text are the same.

    Use the IF function to return the desired value.

    Procedures

    Example data: User Login and Registration Information.xlsx

    1. Create an analysis subject and upload the downloaded example data table User Login and Registration Information (default to selecting all fields).

    2. Add Formula Column, name the new column User Type, and enter the formula IF(EXACT(Registration Time, Last Access Time), "Lost User", "Normal User").

    Formula description:

    FormulaDescription

    EXACT(Registration Time, Last Access 

    Time)

    If two times are exactly the same, the system will return 

    TRUE, otherwise return FALSE.

    IF(EXACT(Registration Time,Last Access Time),"Lost User","Normal User")

    You need to use the IF function together, the system will 

    return Lost User if TRUE, otherwise return Normal User.

    The result of the operation is shown in the figure below.

    Notes

    The EXACT function is case-sensitive.

    附件列表


    主题: Advanced Data Analysis
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy