'Looking Up' multiple values

Chunky_22

Board Regular
Joined
May 19, 2004
Messages
149
Hi all

Can you help with this?

I have various locations within our company structure, and various company credit cards at each location. Each location could have a different number of card numbers assigned to it. Lets say column A has the locations, and column B has the card numbers. Column A may look like this:

Location 1
Location 1
Location 1
Location 2
Location 3
Location 3

Column B contains a list of 16 digit credit card numbers.

I need to be able to list all cards assigned to Location 3, for example. As Im sure you're aware, VLOOKUP is only giving me the 1st entry for Location 3

Any clever ideas greatly appreciated.

Many thanks


OS Win 98 Excel 2000
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Welcome

It would seem a prefect candidate for filtering:

1. Highlight the area you need (ie columns A-B).
2. From the "data" menu, click on "filter", then "autofilter".
3. From the drop-down, choose "Location 3"

Hope that this helps.
 
Upvote 0
Is it accaptable to just filter column A with Tools-->AutoFilter, or do you need to return it to a seprate column?

Edit: You beat me to it
tactps said:
It would seem a prefect candidate for filtering
 
Upvote 0
Many thanks for the quick response guys.

tactps - That would indeed do it (sorry - I should have said that Ive already used that method. My apologies)

Travis - As you say, I need to return the data to a different column / sheet etc, and also do it in bulk ie write a formula to quickly do all 670 locations.

Ive played around with Filters and SubTotal etc, but thought a fancy formula would be 'cleaner'

Best regards

C
 
Upvote 0
Thanks firefytr

I'll have a read thru the link U suggested, and see if my poor tired brain can sort thru it.
:oops:
 
Upvote 0
Check out the post that Zack gave you and re-post if it doesn't help you.

He didn't get two stars for nothing!!!! lol
 
Upvote 0
Im working thru method 1 on the link you suggest, and Im not sure about this bit:

Select B1.
Activate Data|Validation.
Choose List for Allow.
Enter the following in the Source box:

=INDEX(LTable,0,1)

Click OK.

In A2 enter: Pos [ just a label, abbreviated from Position ]




What is it exactly that Im supposed to enter into A2?

I think Im doing something wrong, as am just getting errors - #NAME?

Ive created sheets identicle to the ones in the example.
 
Upvote 0
A-ha

Ive got it. I wasn't defining the "BigStr" thingummy.

It works like a drea, although I have absolutely no idea how, which I hate.

I may work thru it on Monday.

As usual: You guys saved the day

Many thanks, and have a great weekend one and all
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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