+ Reply to Thread
Results 1 to 9 of 9

Function to Group Like Rows???

  1. #1
    Registered User
    Join Date
    01-29-2007
    Posts
    16

    Question Function to Group Like Rows???

    Hi All - Any help is greatly appreciated!

    I have a database where each row is a segment of a pipeline. I want to insert a column that will allow me to indicated which rows belong to the same continuous line.

    I have the starting point and ending point for each segment, so I am able to match a segment's ending point to the corresponding starting point of the next segment, but can not figure out how to repeat this multiple times for ~17,000 rows. Is this possible???

    I have attached a small sample of what I'm trying to do.

    THANKS!!!
    Attached Files Attached Files
    Last edited by QuestMatt; 08-20-2009 at 10:49 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Complicated Excel Function - Help!!

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Function to Group Like Rows???

    Like:
    =C2=B3?

  4. #4
    Registered User
    Join Date
    01-29-2007
    Posts
    16

    Re: Function to Group Like Rows???

    Not really - Basically I'm trying to piece together a chain. I have the start point and the end point, and I'm trying to connect those in a way that will allow me to mark which "chain" a row belongs to.

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

    Re: Function to Group Like Rows???

    So in your example, C2 should point to B9?
    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

  6. #6
    Registered User
    Join Date
    01-29-2007
    Posts
    16

    Re: Function to Group Like Rows???

    Chemist - That's right.

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

    Re: Function to Group Like Rows???

    In Cell D2 dragged down
    Please Login or Register  to view this content.
    Does that do what you are wanting (change "NA" to whatever text is appropriate)?

  8. #8
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Function to Group Like Rows???

    they go both ways (wink wink) which makes it impossible to track in a single direction - if we reordered the O&D pairs so they're alphabetical then it would be easy to build a chain - is that OK?

    EDIT

    More to the point - lots of your points go to more than one other point, with the given solution (no offence CB) you're going to lose a great deal of information
    Last edited by Cheeky Charlie; 08-20-2009 at 11:36 AM. Reason: information loss

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

    Re: Function to Group Like Rows???

    Charlie
    No offense taken. I hadn't noticed that fact. Truth is truth.

+ 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