+ Reply to Thread
Results 1 to 5 of 5

Combining data for a map index

  1. #1
    Registered User
    Join Date
    04-27-2010
    Location
    Minneapolis
    MS-Off Ver
    Excel 2007
    Posts
    3

    Combining data for a map index

    Hey, I've searched through this forum for an answer to my question, the problem is...I don't know how to word it exactly. I'm making a road map, and the kind with a grid and a street reference guide. What I have is a table with two columns: road names and grid cells. It appears like this now:

    Oak St. E2
    Oak St. E3
    Oak St. F3
    Elm St. H5
    Maple St. A1
    Maple St. B1
    etc.

    What I want is this:

    Oak St. E2, E3, F3
    Elm St. H5
    Maple St. A1, B1

    etc.

    Any clue how to do that?
    Last edited by noodles91380; 04-27-2010 at 01:04 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Combining data for a map index

    I assume you have a unique list of streetnames on a different sheet. (let's say col A of sheet2). In Column B try this array formula (can be dragged right and down)

    =IF(COLUMNS($B2:B2)>COUNTIF(Sheet1!$A$2:$A$7,$A10),"",INDEX(Sheet1!$B$2:$B$7,SMALL((Sheet1!$A$2:$A$7=$A10)*ROW($A$1:$A$6),COLUMNS($B$2:B$2)+COUNTIF(Sheet1!$A$2:$A$7,"<>"&$A10))))

    You need to enter this using CNTRL + SHFT + ENTER rather than a simple ENTER. You'll see {} around your formula if you do it right. Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-27-2010
    Location
    Minneapolis
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Combining data for a map index

    Hey, thanks for the reply! I'm a light Excel user, I do most of my mapping work in ArcGIS...so apologies if I don't follow some of the things that would likely be implied.

    Copying that formula in my Column B (in sheet 2 I assumed), and using CTL-SHFT-ENT to ensure the formula was contained within {} didn't seem to quite work, the cell remained blank.

    I attached the file if anybody wants to take a look at it. I'm sure I'm just missing something completely obvious, but again, I'm not the heaviest Excel user... Sheet 3 is just an example of how it needs to look.

    Thanks!
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Combining data for a map index

    You needed to match your cell references to fit your data. Here's the updated sheet.

    Let me know if you have any questions.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-27-2010
    Location
    Minneapolis
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Combining data for a map index

    Fantastic! I will be sure to dig into that formula to understand what you did (I don't want to just freeload off your knowledge). But I truly appreciate it, thanks again!

+ 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