+ Reply to Thread
Results 1 to 5 of 5

Lookup to return all possibilities horizontally

  1. #1
    Registered User
    Join Date
    02-24-2011
    Location
    New Hampshire, USA
    MS-Off Ver
    Excel 2007
    Posts
    36

    Lookup to return all possibilities horizontally

    Good Afternoon,
    I am looking for a code (formula or vba) that will recognize there is an account number assigned to different people. Then return just 1 of the account numbers but all of the people assigned to that account number horizontally. Short example below of what I mean with account number and people but I have attached an example of my dataset and the desired outcome.

    Acct # People
    1-123456 Jane
    1-123456 Joe
    3-854678 George
    3-854678 Andrea

    Thank you for your time,
    Snikrs11
    Attached Files Attached Files

  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: Lookup to return all possibilities horizontally

    As long as you keep the first sheet sorted by column A so the rows that go together are adjacent, this can be done with some mostly simply formulas on the second sheet.
    Attached Files Attached Files
    _________________
    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
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Lookup to return all possibilities horizontally

    And here's a VBA solution:

    Please Login or Register  to view this content.
    Last edited by xladept; 10-16-2015 at 07:45 PM.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Registered User
    Join Date
    02-24-2011
    Location
    New Hampshire, USA
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Lookup to return all possibilities horizontally

    Thank you very much to both of you. They both worked great.

    To anyone reading this solved post as an FYI JBeaucaire's file works great you'll just have to change the formula in Region and Auditor 3 from +1 to +2. And if you go on to Region 4 you would do +3, +4, and so on.

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Lookup to return all possibilities horizontally

    You're welcome!

    Thanks for the follow up on JB's formulae

+ 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. [SOLVED] How to INDEX-MATCH/LOOKUP and display multiple possibilities?
    By guillm in forum Excel General
    Replies: 3
    Last Post: 06-19-2015, 02:44 PM
  2. [SOLVED] Lookup Values which meet two or more criteria and return multiple matches horizontally
    By josetmg in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-03-2015, 01:16 AM
  3. Replies: 4
    Last Post: 11-20-2014, 10:57 PM
  4. [SOLVED] Lookup Horizontally & Vertically
    By djfatboyfats in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-03-2014, 12:07 PM
  5. [SOLVED] Formula to lookup and return multiple results horizontally sheet 1 and 2
    By Chris1234567 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-04-2014, 11:17 AM
  6. Lookup to return multiple values horizontally
    By ROBMP in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-06-2014, 01:32 PM
  7. Looking to return a value from a range of possibilities.
    By steven314 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-04-2007, 06:29 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