+ Reply to Thread
Results 1 to 4 of 4

list cells in range that include:

  1. #1
    Registered User
    Join Date
    10-29-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Enterprise 2007
    Posts
    51

    list cells in range that include:

    Hi all! I have a problem that has been doing my head in! possibly someone here might be able to shed some light for me!?

    I am working with a spreadsheet of products, all of which are only allowed to be sold in specific countries. each row is a different product.
    Each row has a list of territory codes in Column K.
    An example of what they look like is something like this: AU/NZ/BE/NL/LU
    The cells can have anywhere from 10 to 60 different 2 letter codes, always separated by a forward slash.
    What I am looking for, are the 'most common' 2 letter codes, to decide which products can be bundled together for sale.

    EG,
    Cell A1 contains: AU/NZ/BE/NL/LU
    Cell A2 contains: NZ/AU/BE/OM/KW/PS/RU/
    Cell A3 contains: OM/KW/PS/RU/AU/NZ/BE
    Cell A4 contains: RU/OM/KW
    Cell A5 contains: AU/NZ/BE/NL/LU/RU/OM/KW

    So the most common codes are
    AU/NZ/BE which all occur in Cells A1, A2, A3, and A5. So I could bundle a product with rows 1, 2, 3, and 5 for sale in Australia, New Zealand and Belgium. (product is digital)
    OM/KW/RU also occurs 4 times, in cells A2, A3, A4, and A5.

    SO that was difficult to figure out by eye with the above example.
    I have 425 rows, and hundreds of different 2 letter codes. You can imgaine its pretty overwhelming!
    Each row only has 1 cell with these codes in it, lets say column K.

    I need way to learn something like the following, Rows 101 thru 117, 194, 298 thru 303 all have AU/NZ/BE/NL/LU/RU/OM/KW.
    Then I can take all the data from those rows, and use them together.

    I hope this makes sense?

  2. #2
    Registered User
    Join Date
    10-29-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Enterprise 2007
    Posts
    51

    Re: list cells in range that include:

    any help would be amazing!!!

  3. #3
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: list cells in range that include:

    I think your question is a lot more complicated than you may realize. Even with just 10 possible country codes there are millions of different possible combinations. Then you must count the occurrence of each one based on 400 input rows and rank them. This is no simple task.

    If you had certain product market groups you had in mind to start it would make it a lot simpler, although it would still require a lot of helper columns and/or vba to accomplish.
    Despite the high cost of living, it remains very popular.

    Don't forget to mark threads SOLVED when you get an answer and rep all the geniouses that helped you today!

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: list cells in range that include:

    Quote Originally Posted by Hawkeye16 View Post
    I think your question is a lot more complicated than you may realize
    You expressed the situation perfectly

    I thought to give a try... but after digging it further I am afraid to touch this post since it involves lot of permutation combinations!


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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. Autofiler Based on a List of Values in a Range (Include not Exact Match)
    By dan.zrust in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2014, 01:09 PM
  2. Print only range of cells that include data, even if all cells formatted
    By liam_bettinson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2012, 09:41 AM
  3. How do I include only visible cells in a range?
    By Frequent User in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-28-2005, 12:35 PM
  4. [SOLVED] sum a range of cells that include an error
    By HeatherC in forum Excel General
    Replies: 2
    Last Post: 01-28-2005, 07:06 AM

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