How can I write an excel formula to count the number of times values in two separate columns are the same on the same row

Andrew Curto

I have two separate columns in an excel spreadsheet calculating gambling profits

when a free bet is placed, the total payout column and the total won column will be the same

i want to write an excel formula that will count how many times these two columns have the same value within the same row

I was able to use COUNTIF and COUNTIFS formulas for everything else I was trying to accomplish, but I can not figure this one out

thank you

BigBen

Using SUMPRODUCT and the double unary --:

=SUMPRODUCT(--(B2:B5=D2:D5))

enter image description here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I replace values in one Excel column with values concatenated from a variable number of columns in the same row?

Count number of times 2 values appear at the same time in two columns

Count how many times two values occur in the same row

Pandas Dataframe: how can i compare values in two columns of a row are equal to the ones in the same columns of a subsequent row?

Count how many times two separate values in two separate columns there are

How can I count the number of keys with same values in a map, and store it?

How do I count the number of times any two given values occur together in a row in R?

How to copy a row N number of times in the same column in Excel?

How can i count same text cell values count for multiple values in excel sheet

How can I count the values in the same column

How can I write an excel formula to do row based calculations?

How can I have Bootstrap 4 progress bars side by side within two separate columns in the same container?

How can I compare the row values of select columns with the same columns in another dataframe?

Excel formula to count a number in first column and output in corresponding column in same row?

How to count rows that have the same values in two columns in Dataframe

How can I groupby a DataFrame at the same time I count the values and put in different columns?

How can I separate two columns of count by group by?

How can I get connected values of two times the same foreign key?

How can I have the same index for two different columns where the columns do not have unqiue values?

groupby count same values in two columns in pandas?

How can I generate same row multiple times?

How can I use select count (distinct x) in order to count two values in the same table and get the the two distinct values in my output?

How can I get matches in columns (even if they are not in the same row number) in r?

sql: How can I count(*) same values and put an additional flag to each row?

Excel 2007 Compare two columns in same row

Implement Blacklist with values in two columns in same row

EXCEL: I want to count how many times a certain word appears in a column if it's in the same row if another word appears

How can I append the same byte to a file a specified number of times?

How to find and replace two multiple values in the same row by excel?