copy rows to another worksheet based on cell value

craig_youngman

New Member
Joined
Feb 14, 2018
Messages
5
I need to copy rows from one worksheet within a workbook to another based on values within one of the cells. The spreadsheet is an assessment data tracker I'm working on for my school but I'd like it to automatically filter the whole set of data based on specific values e.g. one page will contain the data for pupil premium children vs non-pupil premium children, another for boys vs girls from the whole data set on the master data sheet.


My question is whether this is best achieved by VBA macro, VLOOKUP or some kind of automatic filter. As my experience in VBA/macros is limited the solution would need to be something I can do easily. Any help would be greatly appreciated!


In the example file I would need to copy rows 14,16,18,20 & 22 fully to sheet2 "Pupil Premium".




https://drive.google.com/open?id=1xEuUBqXFMxtVWO5MjBURaXMOCTHCV0oh
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
view
view
 
Upvote 0
A few Pivot tables sounds more like the solution? All looking to source data just filtered differently

(P.S is that you Craig? B Perry)
 
Upvote 0
Crikey, it is Ben... small world! When did you become an excel guru?!!! ;)

Ha knew it was you! Comes with the territory being an accountant! Excel is our best friend! I'll send you a message and you can email your model if you want and I'll have a go!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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