Vlookup with multiple results

robertsgw

New Member
Joined
Aug 30, 2011
Messages
31
Office Version
  1. 365
I'm trying to write of formula to that will allow me lookup a customer property and tell me their invoices outstanding from another excel tab. I have been using a vlookup, but it only comes up with the first occurrence. Below is an example. So on another tab I would enter ABC ST and the formula would pull all the invoices for ABC ST. Thanks.

COLUMN A COLUMN B COLUMN C
customer pro invoice # Amount
ABC ST 1234 5000
ABC ST 5678 60000
CBDG 91878 7000
PEFGR 87890 8000
GJERS 7856 9000
 
It worked, thank you. Another question. Is the away for in the customer column to create a drop down like you created to not list a customer name more than once. The sheet I'm working on is over 200 lines and the customer name could be listed 3 or 4 times. So the drop down that I have lists the customer name 3 or 4 times, but really I would like it to be listed just once.
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
It worked, thank you. Another question. Is the away for in the customer column to create a drop down like you created to not list a customer name more than once. The sheet I'm working on is over 200 lines and the customer name could be listed 3 or 4 times. So the drop down that I have lists the customer name 3 or 4 times, but really I would like it to be listed just once.
Create a separate list the contains the unique customer names and use that list as the source for the drop down list.

You can create this list using the advanced filter to extract unqiue records only.
 
Upvote 0
The sheet I"m creating is meant to be used by other users. Is there formula I could write that will give me a list of unique customers instead of using filters?
 
Upvote 0
The sheet I"m creating is meant to be used by other users. Is there formula I could write that will give me a list of unique customers instead of using filters?
Yeah, you could do that.

What version of Excel are you using?
 
Upvote 0
Eh, disregard that reply.

That's for extracting uniques that meet a condition.

You want the uniques but there is no condition.

Standby...
OK, try this...

Book1
AB
2BobBob
3BobEric
4EricJill
5JillLisa
6LisaMary
7LisaTom
8MaryTony
9Mary_
10Tom_
11Tom_
12Tom_
13Tom_
14Tony_
15Tony_
Sheet1

To extract the unique names from column A to column B...

Enter this formula in B2:

=A2

Enter this array formula** in B3:

=IFERROR(INDEX(A$2:A$15,MATCH(0,COUNTIF(B$2:B2,A$2:A$15),0)),"")

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.

Copy down until you get blanks.

Then, as the source for the drop down list you'd use:

=OFFSET(B$2,,,COUNTIF(B$2:B$15,"?*"))
 
Upvote 0
One other question for you. How do you copy a macro from one workbook to a new workbook. I tried right clicking on tab of old workbook and did a move/copy to new workbook. Doesn't seem to be working.
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,151
Members
452,891
Latest member
JUSTOUTOFMYREACH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top