+ Reply to Thread
Results 1 to 7 of 7

Distribute values in columns based on match between two other columns

  1. #1
    Registered User
    Join Date
    03-09-2013
    Location
    SF, CA
    MS-Off Ver
    Excel 2011
    Posts
    3

    Post Distribute values in columns based on match between two other columns

    Hi All,
    This is my first post. I need to figure out how to perform this analysis:

    A has more rows than B-D. I have a subset of values in column B that I want to match with column A containing a master list of values. Based on the match, I want column C values and column D text values to distribute in two new columns according to A.

    In C, there may be multiple values that match to B (and A), in which case I want the value in the new column to be a sum.

    It gets more complicated in D. For this column, if the word is the same per match to B value, I want the same word to return to one column. If there are two or more words associated with the B value, is there a way to distribute the additional word into multiple columns?

    Thanks for your time!ExcelForum_question_20130311.xlsx

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Distribute values in columns based on match between two other columns

    Could you provide a workbook where you manually rearrange a few data the way you want them? This task is rather complicated and it's much easier to understand with an example.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Registered User
    Join Date
    03-09-2013
    Location
    SF, CA
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Distribute values in columns based on match between two other columns

    Hi Jacc,
    I have solved the second half of my problem by parsing the numerical value into multiple columns by the text value, for instance in the attached file IF(AND($C2>0,$D2="Planebed"),$C2,""), where "typeA" is replaced by "typeB" in the next column over.

    But I have not yet figured out how to distribute the results in columns E and F (to columns G and H) to match up with the cell positions of A when A matches B.

    I've attached a new file with the above result and have manually arranged a few data points the way I want the result to turn out, as you suggested. Any ideas?

    Thanks!
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Distribute values in columns based on match between two other columns

    Here is one solution. There are multiple numbers that are the same in column B and up to 2 of them match the criteria so I added another two columns to get those data, just to be on the safe side. Let me know if that works for you.

    Hmm... file posting is acting up...
    Last edited by Jacc; 03-13-2013 at 08:46 AM.

  5. #5
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Distribute values in columns based on match between two other columns

    Trying again...
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-09-2013
    Location
    SF, CA
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Distribute values in columns based on match between two other columns

    Hi Jacc,
    Thanks so much! I've had a quick look at the file and it appears that it will do the trick. Thanks also for showing me two ways to arrive at the solution. I've never used LARGE or MAX, and have never used the column headings in a function. Either way it would have taken me forever to get to this spot myself. I don't have quite enough time to get entirely through your solution until Friday. I will post again then with a final spreadsheet showing results, and will at that time mark my problem as solved, with your help

  7. #7
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Distribute values in columns based on match between two other columns

    You're welcome.
    Looking forward to hear if it worked out for you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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