Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | ?? Ethernet Crossover or Patch Cable

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion

Yet another Excel formula question for the experts!!
Reply
 
Thread Tools
Old 23-01-2007, 13:49   #1
absthechatter
Inactive
 
Join Date: Dec 2004
Posts: 310
absthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really nice
Yet another Excel formula question for the experts!!

Just when I thought I'd got my head around this formula business!!!!

Is it possible to write a formula (or better still, what is the formula) to check that any entries in column A that are identical, all have the same entries in columns B,C and D (although these entries are different from column A)?
i.e
A1 = one, B1 should = Dog, C1 should = Cat, D1 should = Fish.

A2 = two, B2 shoul = Elephant, C2 should = Giraffe, D2 should =Bird.

Now if A3 = one, instead of B3, C3 and D3 being Dog, Cat and Fish, it is Dog, Elephant and Fish, I want the formula to show me that the two are not equal.

There will be quite a few entries, so will probably need an array as well!!

Many thanks for all your help (and patience!)

Abs
absthechatter is offline   Reply With Quote
Advertisement
Old 23-01-2007, 13:53   #2
TheNorm
Inactive
 
TheNorm's Avatar
 
Join Date: Jun 2006
Location: Cambridge
Services: Sky TV, VM TV, 20meg bb, tel, and a lobster (but the lobster died).
Posts: 4,349
TheNorm has a nice shiny star
TheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny star
Re: Yet another Excel formula question for the experts!!

Interesting. Another way of looking at this is to say that the content of every row should be unique. Agreed?

Have a look at Method 2: http://www.mrexcel.com/tip138.shtml

In your case, you would need to add E, which concatenated cells A to D to make a long string. You would then test the uniqueness of it.
TheNorm is offline   Reply With Quote
Old 23-01-2007, 16:43   #3
absthechatter
Inactive
 
Join Date: Dec 2004
Posts: 310
absthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really nice
Re: Yet another Excel formula question for the experts!!

Quote:
Originally Posted by TheNorm View Post
Interesting. Another way of looking at this is to say that the content of every row should be unique. Agreed?

Have a look at Method 2: http://www.mrexcel.com/tip138.shtml

In your case, you would need to add E, which concatenated cells A to D to make a long string. You would then test the uniqueness of it.
Thanks TheNorm

Does not do quite what I want as the contents of every row would not need to be unique. All of the one's should be unique, all of the two's unique, etc.

I could look at this by filtering. The problem is, that the ones, twos etc, will amount to thousands, and that's a lot of filtering!

Many thanks

Abs
absthechatter is offline   Reply With Quote
Old 23-01-2007, 17:06   #4
TheNorm
Inactive
 
TheNorm's Avatar
 
Join Date: Jun 2006
Location: Cambridge
Services: Sky TV, VM TV, 20meg bb, tel, and a lobster (but the lobster died).
Posts: 4,349
TheNorm has a nice shiny star
TheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny star
Re: Yet another Excel formula question for the experts!!

Quote:
Originally Posted by absthechatter View Post
...Does not do quite what I want as the contents of every row would not need to be unique. All of the one's should be unique, all of the two's unique, etc....
They would be if you included them in the string. To use your example:

E1 = A1 & B1 & C1 & D1 = oneDogCatFish
E2 = A2 & B2 & C2 & D2 = twoElephantGiraffeBird
E3 = A3 & B3 & C3 & D3 = oneDogElephantFish

You want every E to be unique. No?
TheNorm is offline   Reply With Quote
Old 23-01-2007, 17:19   #5
Aragorn
Inactive
 
Aragorn's Avatar
 
Join Date: Apr 2004
Location: Minas Tirith, Gondor
Age: 60
Posts: 3,458
Aragorn has a nice shiny star
Aragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny star
Re: Yet another Excel formula question for the experts!!

I guess you could have a separate vlookup table with the A values and the expected concatenation (or sum) of the other values.

eg, Vlookup sheet contains
one DogCatFish
two ElephantGiraffeBird

Then you formula would be something like

=If(concatenate(B1,C1,D1)=vlookup(A1,table),"True" ,"False")

HTH
Aragorn is offline   Reply With Quote
Old 23-01-2007, 17:32   #6
absthechatter
Inactive
 
Join Date: Dec 2004
Posts: 310
absthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really nice
Re: Yet another Excel formula question for the experts!!

Quote:
Originally Posted by TheNorm View Post
They would be if you included them in the string. To use your example:

E1 = A1 & B1 & C1 & D1 = oneDogCatFish
E2 = A2 & B2 & C2 & D2 = twoElephantGiraffeBird
E3 = A3 & B3 & C3 & D3 = oneDogElephantFish

You want every E to be unique. No?
Not exactly, I want every E to be unique for all the different catagories in column A, and for the formula to tell me if they are not unique.

Many thanks

Abs
absthechatter is offline   Reply With Quote
Old 23-01-2007, 17:50   #7
TheNorm
Inactive
 
TheNorm's Avatar
 
Join Date: Jun 2006
Location: Cambridge
Services: Sky TV, VM TV, 20meg bb, tel, and a lobster (but the lobster died).
Posts: 4,349
TheNorm has a nice shiny star
TheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny star
Re: Yet another Excel formula question for the experts!!

Quote:
Originally Posted by absthechatter View Post
Not exactly, ...
Uhmmmm....

Do you mean:

For every value of A, the combined values in B, C and D should be unique; let me know if this is not the case.

What if:

A1 = one, B1 = Dog, C1 = Cat, D1 = Fish.

A3 = one, B3 = Dog, C3 = Elephant, D3 = Fish

A4 = one, B4 = Fish, C4 = Elephant, D4 = Dog << Would this be allowed?
TheNorm is offline   Reply With Quote
Old 23-01-2007, 18:01   #8
absthechatter
Inactive
 
Join Date: Dec 2004
Posts: 310
absthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really nice
Re: Yet another Excel formula question for the experts!!

Quote:
Originally Posted by TheNorm View Post
Uhmmmm....

Do you mean:

For every value of A, the combined values in B, C and D should be unique; let me know if this is not the case.

What if:

A1 = one, B1 = Dog, C1 = Cat, D1 = Fish.

A3 = one, B3 = Dog, C3 = Elephant, D3 = Fish

A4 = one, B4 = Fish, C4 = Elephant, D4 = Dog << Would this be allowed?
I think that's it, for every value of A, the combined values of B,C and D should be unique! My bad explaining

So therefore the example would not be allowed.

Abs
absthechatter is offline   Reply With Quote
Old 24-01-2007, 13:50   #9
absthechatter
Inactive
 
Join Date: Dec 2004
Posts: 310
absthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really nice
Re: Yet another Excel formula question for the experts!!

Is anyone able to help on this last part I need, I am after a formula that can check that for every value of Column A, the combined values in Columns B, C and D should be unique and to report back any that are not.

Many thanks

Abs
absthechatter is offline   Reply With Quote
Old 24-01-2007, 13:57   #10
TheNorm
Inactive
 
TheNorm's Avatar
 
Join Date: Jun 2006
Location: Cambridge
Services: Sky TV, VM TV, 20meg bb, tel, and a lobster (but the lobster died).
Posts: 4,349
TheNorm has a nice shiny star
TheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny star
Re: Yet another Excel formula question for the experts!!

Quote:
Originally Posted by absthechatter View Post
Is anyone able to help on this ...
As far as I can see this cannot be done using a worksheet formula. I'm sure a VBA macro could do it - would you be happy running code?

Alternatively, if this is a "one-off", there might be a workaround using copy, sort, paste, and a simple formula.

Over to you...
TheNorm is offline   Reply With Quote
Old 24-01-2007, 14:08   #11
absthechatter
Inactive
 
Join Date: Dec 2004
Posts: 310
absthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really nice
Re: Yet another Excel formula question for the experts!!

Macros are fine.

Unfortunately not a one off. Will be used by a variety of people for quite some time. There will be around 30,000 entries, so the sorting, filtering and cutting/pasting is a no no really.

Many thanks

Abs
absthechatter is offline   Reply With Quote
Old 24-01-2007, 14:20   #12
TheNorm
Inactive
 
TheNorm's Avatar
 
Join Date: Jun 2006
Location: Cambridge
Services: Sky TV, VM TV, 20meg bb, tel, and a lobster (but the lobster died).
Posts: 4,349
TheNorm has a nice shiny star
TheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny star
Re: Yet another Excel formula question for the experts!!

Ahhh...

This is where I bow and exit stage right. Macros are not really my forte.
TheNorm is offline   Reply With Quote
Old 24-01-2007, 14:22   #13
absthechatter
Inactive
 
Join Date: Dec 2004
Posts: 310
absthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really niceabsthechatter is just really nice
Re: Yet another Excel formula question for the experts!!

Quote:
Originally Posted by TheNorm View Post
Ahhh...

This is where I bow and exit stage right. Macros are not really my forte.
Not mine either really. Easy enough to record them, but writting from scratch!! At least I get a bump out of it though, and someone may know...

Abs
absthechatter is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:48.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum