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

NumberBranch 1Branch 2Branch 3Branch 4Branch 5Branch 6Check (formula)
ABC123
SPPOBad
ABC234PPPPGood
ABC456OGood

<tbody>
</tbody>
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,215,432
Messages
6,124,857
Members
449,194
Latest member
HellScout

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