+ Reply to Thread
Results 1 to 5 of 5

How to "assign" a cell to other values in a column?

  1. #1
    Registered User
    Join Date
    01-04-2018
    Location
    US
    MS-Off Ver
    1705
    Posts
    2

    How to "assign" a cell to other values in a column?

    Hi everyone, apologies if the title is unclear. I'm not really sure what the right terminology is for what I'm trying to accomplish.

    Let's say I have multiple values in a column, like some colors:

    Red
    Blue
    Green

    And some objects:

    Car
    House
    Mailbox

    Basically, I'm looking for a solution that will give me the combination of each of these in two separate columns, like this:

    2018-01-04_10-53-32.png

    Thanks everyone!
    Last edited by jj93; 01-04-2018 at 02:54 PM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to "assign" a cell to other values in a column?

    colors and objects in the same column?
    any pattern how many colors and how many objects?
    colors and objects could be in two columns?
    are you allowed to use PowerQuery?

  3. #3
    Registered User
    Join Date
    01-04-2018
    Location
    US
    MS-Off Ver
    1705
    Posts
    2

    Re: How to "assign" a cell to other values in a column?

    Hi sandy,

    Preferable to keep them in two separate columns.
    Not sure what you mean by pattern, but they don't need to be in any specific order and I would need to use the solution for varying list sizes.
    Yes, two columns.
    Yes, I have PowerQuery but haven't used it before.

    Thank you for the reply!

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,844

    Re: How to "assign" a cell to other values in a column?

    It looks like you are simply generating combinations.
    1 -- 1 -- color(1) -- item(1)
    1 -- 2 -- color(1) -- item(2)
    and so on.

    I have a post here with a spreadsheet that can do this: https://www.excelforum.com/tips-and-...thout-vba.html My goal was to not use VBA/macros, though the post also includes a basic nested For..Next loop that can also generate combinations like this. I don't know if you are worried about whether to use VBA or not, but I think that should help with the basic process of generating combinations.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: How to "assign" a cell to other values in a column?

    With PowerQuery

    Here is a code (first option):
    Please Login or Register  to view this content.
    or second option:
    Please Login or Register  to view this content.
    EDIT:
    I forgot you don't know PQ, so here is:
    Getting Started with Get & Transform (truly PowerQuery) in Excel 2016
    Microsoft Power Query for Excel

    and here is a file
    Attached Files Attached Files
    Last edited by sandy666; 01-05-2018 at 12:50 AM. Reason: another way in v2 file - second option

+ 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] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  2. if cell = "" then get values from another column until ""
    By junaidmqureshi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-08-2014, 09:02 PM
  3. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  4. [SOLVED] Assign Categories for Time of Day: "Morning", "Afternoon", "Evening"
    By long_shanks in forum Excel General
    Replies: 3
    Last Post: 06-11-2013, 02:59 AM
  5. Replies: 3
    Last Post: 04-14-2013, 11:53 PM
  6. [SOLVED] Formula needed to display "Pass" or "Fail" if a column contains any values other than "yes
    By andreindy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2013, 05:49 PM
  7. Help Needed to get Filters Using "Include" and "Exclude" multiple values on one column.
    By alfykunable in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2012, 04:03 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