Kindly Help in Solving this Excel Problem

yousufsaleem

New Member
Joined
Dec 7, 2015
Messages
1
Kindly help me solving searching problem in excel.

I have to copy and past following detail from one sheet to another.

For Example
i have list of 1200 sites with name and description,numbers and other details in next columns
A1 to A1200 Sites IDs
B2 to B1200 other info.......

i have to take out 100 selected sites + there detail along in separate sheet

moreover many sites are repeated in sheet with different detail.
i want all detail against each site.

consider the following excel data.

MEL0976BSSS. Ghazanfar AliVehicle, Labour & Waiting Charges
BER6132BSSS. Ghazanfar AliVehicle, Labour & Waiting Charges
BLN6260BSSS. Ghazanfar AliVehicle, Labour & Waiting Charges
BGI7133BSSS. Ghazanfar AliVehicle, Labour & Waiting Charges
BLN6260BSSS. Ghazanfar AliVehicle, Labour & Waiting Charges
BER6132BSSAbdullah & BrothersIn-Door-3
BER6132BSSAbdullah & BrothersTransportation Shifting RT ZTE Sites to Karachi W/H
MEL0976BSSAhad Installation NetworkFeeder Dismentalling, Including Tax

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>


and i need in this form.


BER6132
BSSS. Ghazanfar AliVehicle, Labour & Waiting Charges
BER6132BSSAbdullah & BrothersIn-Door-3
BER6132BSSAbdullah & BrothersTransportation Shifting RT ZTE Sites to Karachi W/H

<tbody>
</tbody>

<tbody>
</tbody>

<tbody>
</tbody>
 
Last edited:

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Is this what you want?
Code:
Sub getSites()
Dim sh As Worksheet, lr As Long, c As Range
Set sh = ActiveSheet 'Change ActiveSheet to actual sheet, eg. Sheets("Data")
lr = sh.Cells.Find("*", , xlFormulas, xlPart, xlByRows, xlPrevious).Row
sh.Range("A1:A" & lr).AdvancedFilter xlFilterCopy, , sh.Range("A" & lr + 2), True
    For Each c In sh.Range("A" & lr + 2, sh.Cells(Rows.Count, 1).End(xlUp))
        Sheets.Add After:=Sheets(Sheets.Count)
        sh.UsedRange.AutoFilter 1, c.Value
        sh.UsedRange.Offset(1, 0).SpecialCells(xlCellTypeVisible).EntireRow.Copy ActiveSheet.Range("A2")
        sh.AutoFilterMode = False
    Next
End Sub

the code should be copied to the standard code module 1. Be sure your workbook is saved as a macroenabled workbook.
 
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