Comparing Data from Two Columns
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi...I'm trying to compare data from two columns in one dataset. In other words, I need to understand if the data in BA45=BC45 and then filter out the data that matches to only view the non-matching data. In Excel I created a new column and wrote the following formula:
=IF(BA45=BC45,"True","False")
I would then filter out all the "True" data.
I know there is a better way to do this! Big thanks in advance to any help!
Solved! Go to Solution.
- Labels:
- Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Use a filter tool with the following formula where [Field1] and [Field2] are the columns of interest.
[Field1]==[Field2]
The filter tool will return the results where this condition is true to the "T" output and false to the "F" output. Note that the fields will need to be the same type to be compared (numeric to numeric, string to string, etc.). If necessary, you can force both fields to be strings using this formula:
tostring([Field1])==tostring([Field2])
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you! This worked perfectly!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Is there a way to print the results separating the "true" from the "false" in two .csv file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Attach two output tools linking .csv files each next to true and false.
