+ Reply to Thread
Results 1 to 10 of 10

Is this Concatenate/vlookup formula possible?

  1. #1
    Registered User
    Join Date
    01-18-2009
    Location
    Baltimore
    MS-Off Ver
    Excel 2010
    Posts
    16

    Is this Concatenate/vlookup formula possible?

    I'm trying to get excel to display a strong of text from a table.

    In Sheet 1, Cell A1, I have a drop down menu that lists years 2012-2015.
    In Sheet 1, Cell B1, I have a list of Major League Baseball teams (Arizona Diamondbacks, Atlanta Braves, etc...)
    In Sheet 2, Cell Z2:Z8, I have a list of baseball teams that were the minor affiliates of a certain Major League Club for 2012. In AA2:AA8, I have the list for 2013, AB2:AB8, 2014, etc...

    And the pattern in z2:ab8 repeats itself 30 times down Sheet2 for each of the 30 major league baesball clubs (Arizona, Atlanta, Baltimore, Boston, etc...)

    Now, what I'm looking to accomplish is this:

    As I said on Sheet 1, A1, I have a drop down menu that lists years 2012-2015.

    I want to be able to pick a year, say 2014 and a team, say Boston, and have a cell like B3 display their minor league teams listed in Sheet 2, Column AB.

    The part I can not figure out, and this might not be possible, is that I also want the cell in Sheet 1, B3 to display the years that the team shows up as an affiliate.

    For example, in Sheet 2, under the Boston Red Sox, the first minor league affiliate would be the "Pawtucket Red Sox". The text should read the header of the column, which is the years 2012, 2013, 2014, and find that Pawtucket is listed under each column, and it should display Pawtucket (2012-2015).

    Is this possible, or am I crazy?

    Thanks in advance.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: Is this Concatenate/vlookup formula possible?

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

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

    Re: Is this Concatenate/vlookup formula possible?

    Most likely possible. If you post a workbook with some sample data and pointers to what you want then half the job is done.
    <----- 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.

  4. #4
    Registered User
    Join Date
    01-18-2009
    Location
    Baltimore
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Is this Concatenate/vlookup formula possible?

    Attached is my file.

    Book1.xlsx

  5. #5
    Registered User
    Join Date
    01-18-2009
    Location
    Baltimore
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Is this Concatenate/vlookup formula possible?

    Any chance someone has had time to look at this?

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,651

    Re: Is this Concatenate/vlookup formula possible?

    What do you think of this attempt
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  7. #7
    Registered User
    Join Date
    01-18-2009
    Location
    Baltimore
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Is this Concatenate/vlookup formula possible?

    Quote Originally Posted by popipipo View Post
    What do you think of this attempt
    That works great.

    Can we try taking it one step further.

    When you select say Arizona and 2012, it shows "Reno Aces." Could it show "Reno Aces (2012-2012)", so when you select Arizona and 2013, it says "Reno Aces (2012-2013)", etc... ?

  8. #8
    Registered User
    Join Date
    01-18-2009
    Location
    Baltimore
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Is this Concatenate/vlookup formula possible?

    Quote Originally Posted by WWSL14 View Post
    That works great.

    Can we try taking it one step further.

    When you select say Arizona and 2012, it shows "Reno Aces." Could it show "Reno Aces (2012-2012)", so when you select Arizona and 2013, it says "Reno Aces (2012-2013)", etc... ?
    Any remote chance that this is possible?

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Is this Concatenate/vlookup formula possible?

    something like this?

    =OFFSET(INDIRECT("Affiliates!"&ADDRESS(MATCH(Sheet2!$C$1,Affiliates!$D$1:$D$300,0),2)),ROW()-3,23+MATCH(Sheet2!$D$1,Affiliates!$Z$1:$AB$1,0),1,1)&" "&D1
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  10. #10
    Registered User
    Join Date
    01-18-2009
    Location
    Baltimore
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Is this Concatenate/vlookup formula possible?

    Quote Originally Posted by FDibbins View Post
    something like this?

    =OFFSET(INDIRECT("Affiliates!"&ADDRESS(MATCH(Sheet2!$C$1,Affiliates!$D$1:$D$300,0),2)),ROW()-3,23+MATCH(Sheet2!$D$1,Affiliates!$Z$1:$AB$1,0),1,1)&" "&D1
    Kind of getting int he direction I was thinking.

    Instead of saying "Reno Aces (8-7)", it would say "Reno Aces (2012-2012)", or if I selected 2013 from the dropdown, it would say "Reno Aces (2012-2013)".
    But, it would have to take in account that the affiliations change, so 2012 would not always be the start year. Say, in 2014, Arizona no longer uses Reno, but instead uses Las Vegas, it would then say "Las Vegas 51's (2014-2014)", but, the second team, "Mobile Bay Bears (2012-2014)" would stay the same.

+ 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