Formula to Verify values in multiple columns match, excluding Blanks

clhuggins

New Member
Joined
May 6, 2014
Messages
2
hey,

I'm getting lost in a sea of "If" statements. I'm not even sure that this is the best way to proceed.

I'm looking for a formula that can analyze whether or not all Values (Stocking types in this case) match in all columns (Branch). However, it is allowable that there are Blank values (or some other value like #N/A that denotes that no value exists), so i need a way to exclude those from the comparison.

See the chart below

[TABLE="width: 800"]
<tbody>[TR]
[TD]Number[/TD]
[TD]Branch 1[/TD]
[TD]Branch 2[/TD]
[TD]Branch 3[/TD]
[TD]Branch 4[/TD]
[TD]Branch 5[/TD]
[TD]Branch 6[/TD]
[TD]Check (formula)[/TD]
[/TR]
[TR]
[TD]ABC123
[/TD]
[TD]S[/TD]
[TD]P[/TD]
[TD][/TD]
[TD]P[/TD]
[TD]O[/TD]
[TD][/TD]
[TD]Bad[/TD]
[/TR]
[TR]
[TD]ABC234[/TD]
[TD]P[/TD]
[TD]P[/TD]
[TD]P[/TD]
[TD][/TD]
[TD][/TD]
[TD]P[/TD]
[TD]Good[/TD]
[/TR]
[TR]
[TD]ABC456[/TD]
[TD]O[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Good[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Here's what I've come up with so far, anyone have any better suggestions?

=AND(IF(C2="","TRUE",EXACT(C2,$B2)),IF(D2="","TRUE",EXACT(D2,$B2)),IF(E2="","TRUE",EXACT(E2,$F2))


 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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