Comparing (>2) values, ignoring blanks

mr-tom

New Member
Joined
Apr 25, 2007
Messages
18
I've got an interesting problem, where 5 systems contain lists of companies with IDs, and the companies are supposed to be consistent across companies, but I believe they're not, i.e:
Company ID 123 may be "Tom Ltd" in the first system, "Adam Ltd" in the second system, etc for 5 systems, but the company ID may not appear in all systems

That gives a data table that could look like:

ID. Sys1. Sys2. Sys3. Sys4. Sys5. Outcome
123. Tom. Tom. Match
234. Adam. Adam. Ben. Mismatch
345. John. Match (i.e. the populated cells don't disagree)


It's the outcome that I'm trying to calculate, so what I think it needs to do is to compare non blank cells in the row and flag where inconsistent results are seen

I've had a google, and a search here, but haven't seen the light. As always, sorry if I've missed an existing answer to this issue.

Any bright ideas? :-)
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi, here is one possible option:


Excel 2013/2016
ABCDEFG
1ID.Sys1.Sys2.Sys3.Sys4.Sys5.Outcome
2123Tom.Tom.Match
3234Adam.Adam.Ben.Mismatch
4345John.Match
Sheet1
Cell Formulas
RangeFormula
G2=IF(COUNTIF(B2:F2,B2)=COUNTA(B2:F2),"Match","Mismatch")
 
Upvote 0
Darn, sorry, when I submitted that question, I'd spaced out the entries in the table - hadn't realise the forum stripped out all my alignment!

It's far from certain that the first system has the company in it, so the count if would need to identify the first populated system rather than running from B2.

I'll edit the post to include a table.

Sorry again

(edit) - I can't work out how to insert a table without writing it in raw HTML.
 
Last edited:
Upvote 0
It's far from certain that the first system has the company in it, so the count if would need to identify the first populated system rather than running from B2.

Hi, like this maybe:


Excel 2013/2016
ABCDEFG
1ID.Sys1.Sys2.Sys3.Sys4.Sys5.Outcome
2123Tom.Tom.Match
3234Adam.Ben.Adam.Mismatch
4345John.Match
Sheet1
Cell Formulas
RangeFormula
G2=IF(COUNTIF(B2:F2,INDEX(B2:F2,MATCH(REPT("z",255),B2:F2)))=COUNTA(B2:F2),"Match","Mismatch")



I can't work out how to insert a table without writing it in raw HTML.

See here for a few different ways to tables directly in your replies:

Attachments
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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