Creating a new list containg paarticular text for a current large list

ceb

New Member
Joined
May 5, 2011
Messages
14
Hi All,

I have a worksheet containing a list of names and other info. I need to create a new list from it but only selecting items with "XYZ" in column A and associated items from it othe columns.
I have tried VLOOKUP("*XYZ*",'VG Latest'!B2:B2619,1,0) and it finds the first, but when I drag it down the column it find the same item in each new cell.

Any ideas

Cheer Clive
 
Last edited:

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
A1: XYZ

A2, just enter:
Code:
=COUNTIF('VG Latest'!B2:B2619,"*"&A1&"*")

A4, control+shift+enter, not just enter, and copy down:
Code:
=IF(ROWS($A$4:A4)<=$A$2,INDEX('VG Latest'!$B$2:$B$2619,
    SMALL(IF(ISNUMBER(SEARCH(A1,'VG Latest'!$B$2:$B$2619)),
      ROW('VG Latest'!$B$2:$B$2619)-ROW('VG Latest'!$B$2)+1),
        ROWS($A$4:A4))),"")
 
Upvote 0
Aladin Akyurek

Thanks for that I had to change A1 to $A$1 and it worked fine.

Cheers Clive
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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