Extract selected data in a new sheet based on a cell text

vij

Board Regular
Joined
Feb 13, 2011
Messages
215
Hi,

I am looking for extracting selected data in a new sheet based on entering "Completed" in a different cell.

My table is as attached.
Site1. Progress (top 3 accomplishments from this week).2. Problems (Top 03)3. Plans for next week4. EX - Org, Hiring/Attrition. [Changes to our team: development opportunities, internal mobility, new hires (include country/region)]5. Recognition. [Is there someone on the team you would like to recognize? Share their name and a brief explanation]06. Upcoming Travel07. WFH IT Assets / Exit Employee Material/ Existing employee critical items/ Chairs handed over.Completad
N132• Two-day vaccination drive completed. • Monthly fire extinguisher audit completed on 25th Jun. • Tyco- Maintenance of CCTV and Access control at 3rd floor.NilWater body project to be started next week.Completed
N25AEmployees provided with lifesaving equipment in emergency.  Delivering wellness care kit for employees.  Maintenance team laying water pipeline for watering the plants near boundary wall.  Tyco- FAS PPM activity at 7th floor completed and 6th floor started today.  Monthly fire extinguisher audit completed on 26th Jun. .NilMonthly audit of register.Completed
PTP/PTCPhysical Security  Completed sites monthly fire extinguishers audit & replaced defective one. Systems • N25 – New SSL certificates uploaded in RFID portal (testing WIP)NilPhysical Security • Launching of Inspect & Track pilot project. • Collaborating with GSO for vaccination at PTP site. • Monthly ops meeting with Securitas branch team Systems • All Sites (except PTP) – PPM (WIP), regular breakdown calls.Completed
ERGO6/30 – Virtual ergo session was conducted on “Exercise snaking for stiff neck” attended by 32 participants7/14 – Virtual ergo session would be conducted on “Syndromes of the computer era” • 7/17 – An ergo workshop would be conducted for kids “Weekend with ergonomistCompleted
ISOCPlanning shutdown activities. • Monitoring COVID case trendsTraining, Drills and Audits. • Monitoring COVID case trends, India GSS team will be notified if there is any case surge in the tier one cities, specially where Adobe has a presenceTraining, Drills and Audits. • Monitoring COVID case trends, India GSS team will be notified if there is any case surge in the tier one cities, specially where Adobe has a presenceCompleted
KAM
N132• Two-day vaccination drive completed. • Monthly fire extinguisher audit completed on 25th Jun. • Tyco- Maintenance of CCTV and Access control at 3rd floor.NilWater body project to be started next week.Completed
N25AEmployees provided with lifesaving equipment in emergency.  Delivering wellness care kit for employees.  Maintenance team laying water pipeline for watering the plants near boundary wall.  Tyco- FAS PPM activity at 7th floor completed and 6th floor started today.  Monthly fire extinguisher audit completed on 26th Jun. .NilMonthly audit of register.Completed
PTP/PTCPhysical Security  Completed sites monthly fire extinguishers audit & replaced defective one. Systems • N25 – New SSL certificates uploaded in RFID portal (testing WIP)NilPhysical Security • Launching of Inspect & Track pilot project. • Collaborating with GSO for vaccination at PTP site. • Monthly ops meeting with Securitas branch team Systems • All Sites (except PTP) – PPM (WIP), regular breakdown calls.Completed
ERGO6/30 – Virtual ergo session was conducted on “Exercise snaking for stiff neck” attended by 32 participants7/14 – Virtual ergo session would be conducted on “Syndromes of the computer era” • 7/17 – An ergo workshop would be conducted for kids “Weekend with ergonomistCompleted
ISOCPlanning shutdown activities. • Monitoring COVID case trendsTraining, Drills and Audits. • Monitoring COVID case trends, India GSS team will be notified if there is any case surge in the tier one cities, specially where Adobe has a presenceTraining, Drills and Audits. • Monitoring COVID case trends, India GSS team will be notified if there is any case surge in the tier one cities, specially where Adobe has a presenceCompleted
KAM


Thanks
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi Vij
I Don't know exactly what you want. Could you please gave a lot more detail, like: what data do you want, where do you want it, in yout data everything is completed, what do you mean by "Completed" in a different cell"
 
Upvote 0
I have data from column A to J and in column I, complete is entered if the Projects in column d are finished.
The data with the date, Site and project details as mentioned in column D are automatically entered in a new sheet with the Site name (N132, N25A and so on.

I am basically trying to capture the start and completion of projects mentioned in column D for each site in a different sheet.

I am using the following VBA code with which all data is being captured from Column A to K site wise in a new sheet.

I am unable to select specific columns.

Sub test()
Dim i As Long, d, e, dic As Object
Application.ScreenUpdating = False
Set dic = CreateObject("Scripting.Dictionary")
dic.CompareMode = 1
With Sheets("master").Range("a12").CurrentRegion
For i = 3 To .Rows.Count
If .Cells(i, 11).Value = "Completed" Then
For Each e In Split(.Cells(i, 3).Value, "/")
If Not dic.exists(e) Then
Set dic(e) = Union(.Rows(1), .Rows(d))
Else
Set dic(e) = Union(dic(e), .Rows(d))
End If
Next
End If
Next
End With
For Each e In dic
If Not IsSheetExists(e) Then Sheets.Add(after:=Sheets(Sheets.Count)).Name = e
With Sheets(e)
.Cells.Delete
dic(e).Copy
.Cells(1).PasteSpecial xlPasteColumnWidths
.Cells(1).PasteSpecial
End With
Next
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub

Function IsSheetExists(ByVal txt As String) As Boolean
On Error Resume Next
IsSheetExists = Len(Sheets(txt).Name)
On Error GoTo 0
End Function
 
Upvote 0
GSS Weekly Report Aug 2021 with input sheet.xlsm
ABCDEFGHIJK
12S NoDateSite1. Progress (top 3 accomplishments from this week).2. Problems (Top 03)3. Plans for next week4. EX - Org, Hiring/Attrition. [Changes to our team: development opportunities, internal mobility, new hires (include country/region)]5. Recognition. [Is there someone on the team you would like to recognize? Share their name and a brief explanation]06. Upcoming Travel07. WFH IT Assets / Exit Employee Material/ Existing employee critical items/ Chairs handed over.Completed
13N25AAAAA• WFH Handover. o Total as on date - o Current week -Completed
14N25A2• Exit employee material handed over. o Total as on date - o Current week -Completed
15N25A3• Existing employee critical items handed over. o Total as on date – o Current week -
16N25A4• Office Chairs collected. o Total as on date – o Current week -Completed
17N1325• WFH Handover. o Total as on date - o Current week -Completed
18N1326• Exit employee material handed over. o Total as on date - o Current week -Completed
19N1327• Existing employee critical items handed over. o Total as on date – o Current week -Completed
20N1328• Office Chairs collected. o Total as on date – o Current week -Completed
21PTP9• WFH Handover. o Total as on date - o Current week -Completed
22PTP0• Exit employee material handed over. o Total as on date - o Current week -Completed
23PTP11• Existing employee critical items handed over. o Total as on date – o Current week -
24PTP12• Office Chairs collected. o Total as on date – o Current week -Completed
25PTC13• WFH Handover. o Total as on date - o Current week -Completed
26PTC14• Exit employee material handed over. o Total as on date - o Current week -
27PTC15• Existing employee critical items handed over. o Total as on date – o Current week -Completed
28PTC16• Office Chairs collected. o Total as on date – o Current week -Completed
29Systems17Completed
30Systems18
31Systems19Completed
32Systems20Completed
33ISOC21Completed
34ISOC22
35ISOC23Completed
36ISOC24Completed
37KAM25Completed
38KAM26Completed
39KAM27
40KAM28
41ERGO29Completed
42ERGO30Completed
43ERGO31
44ERGO32Completed
Master
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H42Cell Valuecontains "Almost done"textNO
H42Cell Valuecontains "Progress"textNO
H42Cell Valuecontains "Risk"textNO
H42Cell Valuecontains "Completed"textNO
H41Cell Valuecontains "Almost done"textNO
H41Cell Valuecontains "Progress"textNO
H41Cell Valuecontains "Risk"textNO
H41Cell Valuecontains "Completed"textNO
H40Cell Valuecontains "Almost done"textNO
H40Cell Valuecontains "Progress"textNO
H40Cell Valuecontains "Risk"textNO
H40Cell Valuecontains "Completed"textNO
H39Cell Valuecontains "Completed"textNO
H39Cell Valuecontains "Almost done"textNO
H39Cell Valuecontains "Progress"textNO
H39Cell Valuecontains "Risk"textNO
H39Cell Valuecontains "Completed"textNO
H37Cell Valuecontains "Almost done"textNO
H37Cell Valuecontains "Progress"textNO
H37Cell Valuecontains "Risk"textNO
H37Cell Valuecontains "Completed"textNO
H34Cell Valuecontains "Completed"textNO
H34Cell Valuecontains "Almost done"textNO
H34Cell Valuecontains "Progress"textNO
H34Cell Valuecontains "Risk"textNO
H34Cell Valuecontains "Completed"textNO
H33Cell Valuecontains "Completed"textNO
H33Cell Valuecontains "Almost done"textNO
H33Cell Valuecontains "Progress"textNO
H33Cell Valuecontains "Risk"textNO
H33Cell Valuecontains "Completed"textNO
H30Cell Valuecontains "Almost done"textNO
H30Cell Valuecontains "Progress"textNO
H30Cell Valuecontains "Risk"textNO
H30Cell Valuecontains "Completed"textNO
H29Cell Valuecontains "Almost done"textNO
H29Cell Valuecontains "Progress"textNO
H29Cell Valuecontains "Risk"textNO
H29Cell Valuecontains "Completed"textNO
H28Cell Valuecontains "Almost done"textNO
H28Cell Valuecontains "Progress"textNO
H28Cell Valuecontains "Risk"textNO
H28Cell Valuecontains "Completed"textNO
H16Cell Valuecontains "Completed"textNO
H16Cell Valuecontains "Almost done"textNO
H16Cell Valuecontains "Progress"textNO
H16Cell Valuecontains "Risk"textNO
H16Cell Valuecontains "Completed"textNO
H32Cell Valuecontains "Completed"textNO
H32Cell Valuecontains "Almost done"textNO
H32Cell Valuecontains "Progress"textNO
H32Cell Valuecontains "Risk"textNO
H32Cell Valuecontains "Completed"textNO
I24Cell Valuecontains "Almost done"textNO
I24Cell Valuecontains "Progress"textNO
I24Cell Valuecontains "Risk"textNO
I24Cell Valuecontains "Completed"textNO
I24Cell Valuecontains "Completed"textNO
H25Cell Valuecontains "Almost done"textNO
H25Cell Valuecontains "Progress"textNO
H25Cell Valuecontains "Risk"textNO
H25Cell Valuecontains "Completed"textNO
H24Cell Valuecontains "Almost done"textNO
H24Cell Valuecontains "Progress"textNO
H24Cell Valuecontains "Risk"textNO
H24Cell Valuecontains "Completed"textNO
H80:H96,I32Cell Valuecontains "Almost done"textNO
H80:H96,I32Cell Valuecontains "Progress"textNO
H80:H96,I32Cell Valuecontains "Risk"textNO
H80:H96,I32Cell Valuecontains "Completed"textNO
H67,I66,H61:H65,H13:H15Cell Valuecontains "Completed"textNO
H67:H77,I66,H35:H36,H26:H27,H31,H38,H13:H15,H43:H44,H49:H51Cell Valuecontains "Almost done"textNO
H67:H77,I66,H35:H36,H26:H27,H31,H38,H13:H15,H43:H44,H49:H51Cell Valuecontains "Progress"textNO
H67:H77,I66,H35:H36,H26:H27,H31,H38,H13:H15,H43:H44,H49:H51Cell Valuecontains "Risk"textNO
H67:H77,I66,H35:H36,H26:H27,H31,H38,H13:H15,H43:H44,H49:H51Cell Valuecontains "Completed"textNO
H17:H23,H53:H65Cell Valuecontains "Almost done"textNO
H17:H23,H53:H65Cell Valuecontains "Progress"textNO
H17:H23,H53:H65Cell Valuecontains "Risk"textNO
H17:H23,H53:H65Cell Valuecontains "Completed"textNO
H17:H23Cell Valuecontains "Completed"textNO
Cells with Data Validation
CellAllowCriteria
C13:C44List=$X$13:$X$19
 
Last edited:
Upvote 0
Once I enter Completed in the last column "K" then the data for the site (Column C) is copied into a new sheet.
After the data is copied I want only data in column "1. Progress (top 3 accomplishments from this week). " to remain and the balance to be deleted.
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,042
Members
449,063
Latest member
ak94

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