+ Reply to Thread
Results 1 to 5 of 5

Placing multiple values in cells of a row based on value of cell in a column

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Placing multiple values in cells of a row based on value of cell in a column

    Screen Shot 2015-07-10 at 10.52.03 AM.png

    Can anyone tell me how to move these values from multiple cells in a column (Column B) to a single row based on one cells value (Column A)?
    Thank you in advance
    Last edited by Huskersippi; 07-10-2015 at 12:04 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Placing multiple values in cells of a row based on value of cell in a column

    The formula answer:

    1) Highlight column A
    2) Use Data > Advanced Filter
    - Unique Values Only
    - Copy To Another Location (Select D1)

    This gives you an extracted list of all your street names.

    3) Enter this formula in E2, then copy across and down as far as needed:

    =IF(COLUMN(A1)>COUNTIF($A:$A, $D2), "", INDEX($B:$B, MATCH($D2,$A:$A, 0) + COLUMN(A1)-1))
    Last edited by JBeaucaire; 07-10-2015 at 06:43 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-21-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Placing multiple values in cells of a row based on value of cell in a column

    Not sure those cells you're saying to copy to and write the formula in are correct ? I'm receiving a circular reference warning

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Placing multiple values in cells of a row based on value of cell in a column

    A straight formula method that may help you:
    These are ARRAY formulae that are entered with Ctrl + Shift + Enter

    To get a unique listing of the streets in column D enter the following formula in D2 and fill down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    To get the entries for each street, enter this formula in E2 and fill Across and Down:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Remember: These are ARRAY formulae to be entered with Ctrl + Shift + Enter.

    Result:
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    1
    Street Grid Street Grid1 Grid2 Grid3 Grid4 Grid5 Grid6 Grid7
    2
    Pike St
    201
    Pike St
    201
    205
    3
    Pike St
    205
    Johns St
    201
    204
    207
    4
    Johns St
    201
    Smith St
    200
    5
    Johns St
    204
    Main St
    102
    106
    107
    108
    110
    111
    6
    Johns St
    207
    7
    Smith St
    200
    8
    Main St
    102
    9
    Main St
    106
    10
    Main St
    107
    11
    Main St
    108
    12
    Main St
    110
    13
    Main St
    111
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Placing multiple values in cells of a row based on value of cell in a column

    Yes, you're correct, the formula should have been entered in E2, next to the first street name. My apologies.

+ 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. Set multiple values of one cell based on other multiple cells
    By slix86 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-20-2013, 06:30 AM
  2. creating and placing multiple charts based on row values in a new sheet.
    By MarMo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2012, 09:32 AM
  3. Placing values from query to multiple cells
    By vbanubie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2012, 04:28 PM
  4. Replies: 5
    Last Post: 07-17-2005, 06:05 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