+ Reply to Thread
Results 1 to 7 of 7

Formula to combine 2 results

  1. #1
    Registered User
    Join Date
    06-09-2009
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2003
    Posts
    91

    Formula to combine 2 results

    I have a spreadsheet with 2 worksheets. First worksheet is "data" and the second sheet is "zone".

    The Main sheet has listed unique property id's represented by a number. There is only ever 1 property id number listed.

    On the 2nd sheet, "zone" I have the same property number listed in column A, but the property number may appear 2 or three times. I need to obtain the value from worksheet "zone" in column C and move each value for the property number it to Column AH in the worksheet "data" but making it so that it lists the value by a semi colan.
    Last edited by ssdsibes; 11-17-2010 at 06:50 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula to combine 2 results

    prob quite easy but a sample work book would be handy !
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    06-09-2009
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2003
    Posts
    91

    Re: Formula to combine 2 results

    See attached file.
    thanks
    Ang
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-13-2010
    Location
    St. Paul
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Formula to combine 2 results

    I attached my interpretation of what you needed. I used a Index/Match to find the value from the Data Sheet on the Zone sheet.

    You are going to have issues with this data however. I noticed you dont have any unique data on your Zone sheet. With out a unique key, finding the right column "C" field is going to be impossible. The current formula just finds the first value that matches:

    Basic "AH" Column Formula:

    Please Login or Register  to view this content.
    You said you wanted a semi-colon to separate data. This formula just concatenates Column A with the result of the formula above, separated with a semi colon. The & is your concatenation

    Please Login or Register  to view this content.
    Lastly, your data is sometimes not on your Zone sheet, i put in an Iferror to say "not found" if the PCL number doesn't exist

    Please Login or Register  to view this content.

    Cheers,

    Don
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-09-2009
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2003
    Posts
    91

    Re: Formula to combine 2 results

    Thank you Don
    My issue is that the data on the Zone sheet has duplicate parcel numbers. So i need a smart way to find where the parcel number in the Data sheet matches both the parcel numbers in the Zone sheet, then return the two values into one cell, separated by a semi colan.

    Is this possible or am I asking for too much?

    Ang

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula to combine 2 results

    well i manage to do it with functions but it took ages to calculate due to the number of index/matches going on. then i forgot to save the finished thing! probably a vba solution is the way to go
    ok i had another go this works better
    making 2 assumptions
    1 the pcl_num on sheet zone! is always consecutive in singles pairs or triplets
    2. you'll never have more than 3 identical pcl_num's
    Attached Files Attached Files
    Last edited by martindwilson; 11-17-2010 at 09:35 AM.

  7. #7
    Registered User
    Join Date
    06-09-2009
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2003
    Posts
    91

    Wink Re: Formula to combine 2 results

    Thank you sooo much.
    This has worked exactly how i wanted it, and fast too

+ 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