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.

    Attachment List


    Theme: 高度なデータ分析学習
    前の記事
    次の記事
    • いいね
    • 良くない
    • 閲覧しただけ

    フィードバック

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    10s后关闭

    反馈已提交

    网络繁忙