Pulling Data from Vlookups & finding matches

jeremy.

New Member
Joined
Aug 27, 2011
Messages
4
Hi,

I'm fairly new to VBA, and programming in general, so i apologize in advance.

Right now i have two columns. One is a list of abbreviations and the other is a corresponding number next to it depending on the abbreviation. In another worksheet I have a input cell that corresponds with a Vlookup so if you write the abbreviation in the cell you get the matching number next to it.

This is where i need help. Once the matching number appears, i want excel to go back to the columns and search for the abbreviations with that same number next to them then posted them below the original abbreviation that i have in the input cell.

I would assume i need to be using some kind of Find & Match code but I'm not sure how to make this work. Any help would be greatly appreciated.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
thank you. here is an example of what i'm trying to achieve in a more basic format.


Excel Workbook
ABCDEFGHIJKL
1************
2************
3************
4****Number*******
5Input cell:*ab*2*******
6************
7************
8*********abbreviationNumber*
9*********aa1*
10*********ab2*
11*********ac2*
12*********ad2*
13*********ae3*
14*********af4*
15*********ag4*
16************
17*show other corresponding abbreviations that match number "2" in cell E5**********
18************
19************
20************
Sheet1
 
Upvote 0
thank you. here is an example of what i'm trying to achieve in a more basic format.

...
C4, just enter:
Code:
=COUNTIF($K$9:$K$15,E5)
where E5 houses 2.

C5, control+shift+enter, not just enter, and copy down:
Code:
=IF(ROWS(C$5:C5)<=C$4,INDEX($J$9:$J$15,SMALL(IF($K$9:$K$15=E$5,
    ROW($J$9:$J$15)-ROW($J$9)+1),ROWS(C$5:C5))),"")
 
Upvote 0
thank you. here is an example of what i'm trying to achieve in a more basic format.


Excel Workbook
ABCDEFGHIJKL
1************
2************
3************
4****Number*******
5Input cell:*ab*2*******
6************
7************
8*********abbreviationNumber*
9*********aa1*
10*********ab2*
11*********ac2*
12*********ad2*
13*********ae3*
14*********af4*
15*********ag4*
16************
17*show other corresponding abbreviations that match number "2" in cell E5**********
18************
19************
20************
Sheet1
Is this what you had in mind:

http://www.mrexcel.com/forum/showpost.php?p=2696961&postcount=3
 
Upvote 0

Forum statistics

Threads
1,224,557
Messages
6,179,510
Members
452,918
Latest member
Davion615

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