+ Reply to Thread
Results 1 to 5 of 5

Want multiple results from Vlookup

  1. #1
    Registered User
    Join Date
    02-12-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Want multiple results from Vlookup

    Hi all

    I would like to obtain multiple results from a lookup of some sort. Please see attached.

    Company A-G has multiple sales. When I change the company in the query outlined area i'd like to list all their sales by customer name and the amount. Not sure how to go about this as each comany will have different amounts of sales.

    Thanks
    Attached Files Attached Files
    Last edited by Gallinski; 02-09-2012 at 08:18 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Want multiple results from Vlookup

    Hi Gallinski,

    I think a Pivot Table is what you need with a company filter. See attached.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    02-12-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Want multiple results from Vlookup

    your right, pivot table is ideal, but this is just a demo. the formula will actually be put into an invoice layout.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Want multiple results from Vlookup

    OK - and does the Pivot Table help then?

    Create the invoice and grab cells from the Pivot Table to populate the invoice?

    I guess I need to see the invoice layout to get the next step, if you still need help with it.?

  5. #5
    Registered User
    Join Date
    02-12-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Want multiple results from Vlookup

    Ok, I'm trying to automate the invoice, so as when I change the TO field on the invoice to the company name, it will auto populate the invoice below with the sales and amounts.

    IE TO: Company A, Description and amount auto fill in with sales.

    See new attachment.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-12-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Want multiple results from Vlookup

    i'm debating if an advanced filter might work?

    ok this does not work as the advanced filter does not auto update.
    Last edited by Gallinski; 02-09-2012 at 06:39 PM.

  7. #7
    Registered User
    Join Date
    02-12-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Want multiple results from Vlookup

    Never mind. Found another thread with a base formula and modified to my needs.

    {=IFERROR(INDEX($A$1:$F$30,SMALL(IF($C$2:$C$30=$H$2,ROW($A$2:$A$30),""),ROW($A1)),4),"")}

+ 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