help with a IF formula I think

bbrimberry

New Member
Joined
Mar 23, 2016
Messages
34
hey gang,

Im looking to compare multiple columns with a formula.

Im trying to put a formula in column K that would tell me if the cell values in column B thru column J are the same.
if B thru J are the same value or blank the formula should return Yes
if B thru J are different the formula should return No
I would like to ignore blanks.




Book1.xlsx
ABCDEFGHIJK
1StoreTeam 1Team 2Team 3Team 4Team 5Team 6Team 7Team 8Team 9Match
21JamesJamesJamesJamesJamesY
32JohnJohnJohnJohnJohnMichaelMichaelN
43RobertRobertMichaelN
54MichaelMichaelMichaelMichaelMichaelY
65RichardRichardMichaelMichaelN
76MatthewMatthewMatthewAnthonyAnthonyAnthonyN
Sheet1
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
If you have Microsoft 365

Book1
ABCDEFGHIJKLM
1Team 1Team 2Team 3Team 4Team 5Team 6Team 7Team 8Team 9Match
221JamesJamesJamesJamesJamesYY
332JohnJohnJohnJohnJohnMichaelMichaelNN
443RobertRobertMichaelNN
554MichaelMichaelMichaelMichaelMichaelYY
665RichardRichardMichaelMichaelNN
776MatthewMatthewMatthewAnthonyAnthonyAnthonyNN
Sheet1
Cell Formulas
RangeFormula
M2:M7M2=IF(COUNTA(UNIQUE(TRANSPOSE(FILTER(C2:K2,C2:K2<>""))))=1,"Y","N")
 
Upvote 0
You can never have too many formulas.

20-08-18 if Rev A.xlsx
ABCDEFGHIJK
1StoreTeam 1Team 2Team 3Team 4Team 5Team 6Team 7Team 8Team 9Match
21JamesJamesJamesJamesJamesY
32JohnJohnJohnJohnJohnMichaelMichaelN
43RobertRobertMichaelN
54MichaelMichaelMichaelMichaelMichaelY
65RichardRichardMichaelMichaelN
76MatthewMatthewMatthewAnthonyAnthonyAnthonyN
Match
Cell Formulas
RangeFormula
K2:K7K2=IF(SUMPRODUCT(1/COUNTIF(B2:J2,B2:J2&""),--(B2:J2<>""))=1,"Y","N")
 
Upvote 0
You can never have too many formulas.

20-08-18 if Rev A.xlsx
ABCDEFGHIJK
1StoreTeam 1Team 2Team 3Team 4Team 5Team 6Team 7Team 8Team 9Match
21JamesJamesJamesJamesJamesY
32JohnJohnJohnJohnJohnMichaelMichaelN
43RobertRobertMichaelN
54MichaelMichaelMichaelMichaelMichaelY
65RichardRichardMichaelMichaelN
76MatthewMatthewMatthewAnthonyAnthonyAnthonyN
Match
Cell Formulas
RangeFormula
K2:K7K2=IF(SUMPRODUCT(1/COUNTIF(B2:J2,B2:J2&""),--(B2:J2<>""))=1,"Y","N")

Nice Formula! I honestly had no idea how to accomplish this without the new dynamic array functions...
 
Upvote 0
Just for fun, here's another formula, if you have dynamic arrays.
=IF(COLUMNS(UNIQUE(FILTER(C2:K2,C2:K2<>""),1))=1,"Y","N")
 
Upvote 0
Just for fun, here's another formula, if you have dynamic arrays.
=IF(COLUMNS(UNIQUE(FILTER(C2:K2,C2:K2<>""),1))=1,"Y","N")

Nice Fluff. I like the use of Columns rather than my use of Transpose. Fun with Dynamic Arrays, love it!!!
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top