+ Reply to Thread
Results 1 to 7 of 7

Compare & List.....

  1. #1
    Registered User
    Join Date
    09-29-2010
    Location
    Dunstable, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Compare & List.....

    Hi,

    OK, the title may not be 100% accurate, but it's the simplest thing I could think of.....

    I have a list of 10 colours that I need to compare against a primary colour.

    However, the colour only needs to be listed in another cell if it is different to the primary colour.

    For example:

    Primary Colour: Green (in Cell B2)
    Colours: Red Blue Green Orange Purple Pink Yellow Black White Grey (in Cells D8:M8)

    Each colour has been given a value (Default / Yes / No / Maybe), which can be selected from a Drop Down list and can therefore change.

    If the value is different to the value of the Primary colour then display colour that is different, but if its the same, display the next colour that is different.

    I could use the simple version of IF(D8=B2,"",D8), but I want to get it so no duplicates are shown and the list isn't spread over 10 columns. It needs to be condensed to only show the differences, without blanks.

    Hopefully someone can help.....

    Many thanks,
    Simon

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Compare & List.....

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    09-29-2010
    Location
    Dunstable, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Compare & List.....

    Here you go.....this is a very simplistic version as the original had 'other information'.......
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Compare & List.....

    seems to be missing a sheet data! which has your named range on
    Last edited by martindwilson; 07-16-2013 at 07:17 AM.

  5. #5
    Registered User
    Join Date
    09-29-2010
    Location
    Dunstable, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Compare & List.....

    With data sheet.....
    Attached Files Attached Files

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Compare & List.....

    heres one way
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-29-2010
    Location
    Dunstable, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Compare & List.....

    Is it really that simple???

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Require code that will compare new list to old list
    By knighty2002uk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-28-2013, 09:04 AM
  2. Replies: 1
    Last Post: 09-11-2010, 05:38 PM
  3. Compare List A to List B and Return Duplicates to C
    By nexttech in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-02-2009, 11:58 PM
  4. Compare name in one list then
    By speedcat445 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2008, 05:14 AM
  5. [SOLVED] Compare a List
    By David Barnhart in forum Excel General
    Replies: 1
    Last Post: 05-16-2006, 08:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1