Data Extraction in Groups

thespardian

Board Regular
Joined
Aug 31, 2012
Messages
119
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
Hi there!
You may download excel file relates to this question Qestion.xlsx
I have two sheets "VR" and "D DATA". Basically, I want to copy every row (from A to I) if the column I (Type) have word "D" in "VR" sheet and Paste it in "D DATA" sheet as per format shown below. But there are two conditions.
Q1.png


Condition 1
Its first month of the year therefore the following sheet (D DATA) have not any data. From Sheet "VR" I want to copy all the rows that word "D" in the column i (type) and paste it in the "D DATE" sheet as per format shown. And the results will be as under:-
Q2.png



Condition 2

Its the second month of the year, the data in the same sheet "VR" has been changed. I want to copy all the data that have word "d" in column i (type) and past it in "D Data" sheet with following conditions

IF
The Centre Name Already Exist In The D Data Sheet, Then Paste It Under The Relevant Centre

OTHER WISE
Create the new center name in the end, and paste the data under it.

EXAMPLE GIVEN FROM VR(2) SHEET

We Have Two New Centers And Two Old Centre In The "Vr" Sheet (New Centre Means, These Centers Does Not Exist In "D Date Sheet" And Old Centre Means That Already Exist In The "D Data" Sheet)

As The Centre A And B, Already Exists, Therefore The Highlighted Rows Have Been Pasted Under The Relevant Centers.

Centre E & F has been created and the relevant date has been pasted under it.

Q3.png


Q4.png


Any help will be highly appreciated. Thanks
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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