How do I compare three columns in Google Sheets? 2

How do I compare three columns in Google Sheets?

Comparing three columns in Google Sheets can be done by using the “IF” function. This function allows you to set a condition to check if the values in each column are equal or not. You can also use the “AND” function to compare multiple conditions at once. Additionally, you can use the “COUNTIF” function to count the number of times a certain value appears in each column and then compare the results. This can help you identify any similarities or differences between the three columns and make data analysis easier.

Compare Three Columns in Google Sheets


You can use the following basic formula to compare three columns in Google Sheets:

=IF(AND(B2=C2,C2=D2),"Equal","Not Equal")

This particular formula compares the values in cells B2, C2, and D2.

If all of the values are equal, the formula returns Equal. Otherwise, it returns Not Equal.

The following example shows how to use this formula in practice.

Example: Compare Three Columns in Google Sheets

Suppose we have the following dataset that shows the highest scorer on various basketball teams during three different games:

We can type the following formula into cell E2 to test if the three values in the first row are all equal:

=IF(AND(B2=C2,C2=D2),"Equal","Not Equal")

We can then drag this formula in cell E2 down to the remaining cells in column E to test for matches in each row:

Notice that the formula only returns Equal for the rows where the cell values are equal across each of the three columns.

For example:

  • The first row displays Equal since each value in columns B through D is equal to Doug.
  • The second row displays Equal since each value in columns B through D is equal to Mike.
  • The third row displays Not Equal since the values in columns B through D are not all equal.

And so on.

Cite this article

stats writer (2024). How do I compare three columns in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-do-i-compare-three-columns-in-google-sheets/

stats writer. "How do I compare three columns in Google Sheets?." PSYCHOLOGICAL SCALES, 25 Jun. 2024, https://scales.arabpsychology.com/stats/how-do-i-compare-three-columns-in-google-sheets/.

stats writer. "How do I compare three columns in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-do-i-compare-three-columns-in-google-sheets/.

stats writer (2024) 'How do I compare three columns in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-do-i-compare-three-columns-in-google-sheets/.

[1] stats writer, "How do I compare three columns in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.

stats writer. How do I compare three columns in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top