How to Compare Two Columns in Google Sheets Using the COUNTIF Function
In this video, we will show you how to compare two columns in Google Sheets.
We will be using formulas to find exact matches and duplicates within two columns of the Google Sheet. So for example, we have two columns with product codes here assigned to different employees. We want to identify if the same product is assigned to multiple employees and whether pricing for the both is the same or not. For that, we will be using two different methods, starting with the exact row by row match and checking both columns for any duplicate entries.
So let’s click on this cell here and input the formula. For the row by row comparison, we will simply enter the cell reference followed by the “equals two” sign and referencing the cell in the second column.
What this basically does is if both values in these two cells are the same, it would return True. Otherwise, it will return the value as false.
You can use the auto fill functionality to copy the same formula for all the remaining cells by clicking here.
Over here you can see that the same product code is appearing in two different columns, in the same rows and the value being returned is True.
Now let’s compare two columns and find out which values are repeating irrespective of which row they are in.
For that, we will use the “Count IF” function.
Let’s enter the “equals to” sign followed by Count If and brackets open. Now we will select the range. Since we will be copying the formula on other cells, make sure the cell reference is absolute by adding a dollar sign before the column and row coordinates.
Next, we will enter a comma followed by selecting the cell reference.
This function counts the number of times the value in this cell occurs in the selected cell range.
Let’s close the bracket. Now, If this count is more than 0, it means a duplicate value exists in the range. So let’s add “greater than sign” followed by Zero.
As long as the count is more than 0, the function returns a TRUE.
When the function returns a TRUE value, like in this cell over here, this means that the value is being duplicated in the range we had included in the formula.
That’s all!
❓? Would you like to know about any particular Google Sheets feature? Let us know in the comments below.
#HowTech #GoogleSheets
--------------------------------------------------------------------------------------------------------------
✅ All our announcements are available here https://t.me/howtechtv
✅ Commercial questions [email protected]
✅ Facebook https://www.facebook.com/howtechtv
✅ Instagram https://www.instagram.com/howtechprojects
✅ Twitter https://twitter.com/howtechprojects
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «How to Compare Two Columns in Google Sheets Using the COUNTIF Function», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.