Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2016, 07:41 AM
Dgrissom Dgrissom is offline Pivot table v Advance filtering v Macro v VLookup Windows 7 64bit Pivot table v Advance filtering v Macro v VLookup Office 2013
Novice
Pivot table v Advance filtering v Macro v VLookup
 
Join Date: Apr 2016
Posts: 3
Dgrissom is on a distinguished road
Default Pivot table v Advance filtering v Macro v VLookup

I have an extensive worksheet where I want to bring over specific data to a new worksheet. What I am trying to do is determine the best approach.



There are 18 columns with data, number of rows just depends.
Out of the 18 columns, there are 3 columns that I use to determine as to what data needs to be brought over to the new worksheet.

I need all columns to the left and right for each row that contains my specific parameters to be brought over, keeping totals as well.

All data that does not meet the parameters in not necessary.

On the attached document the RAW Data tab is what is brought over, the row/s columns are the parameters I use to filter.

The Result tab is what I need for the final worksheet to look like.

What would be the best approach - Pivot Table, Advanced Filter, Macro OR VLookup
Attached Files
File Type: xlsx SAMPLE PIVOT TABLE.xlsx (36.6 KB, 11 views)
Reply With Quote
  #2  
Old 04-15-2016, 11:24 AM
xor xor is offline Pivot table v Advance filtering v Macro v VLookup Windows 10 Pivot table v Advance filtering v Macro v VLookup Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

I would prefer Advanced Filter and have tried to do just that in the attached in sheet RESULT cell U9:AL100 with Criteria range in U1:W5.

It seems to work reasonably well but there are some problems that I can't explain.
As you can see I try to compare your results in A9:R101 with those generated by Advanced Filter in U9:AL100 in AN9:BE100. Please note that these formulas return 7 FALSE's in row 18 and row 92.

Edit
I now realize that the above problem is due to the fact that there are duplicates of the headings in row 8 in sheet RAW DATA (two instances of FY12, FY13 etc. I tried to change L8 to FY12_2, M8 to FY13_2 etc. and it worked fine).
Attached Files
File Type: xlsx AdvFilter.xlsx (70.8 KB, 11 views)

Last edited by xor; 04-15-2016 at 05:08 PM.
Reply With Quote
  #3  
Old 04-18-2016, 07:23 AM
Dgrissom Dgrissom is offline Pivot table v Advance filtering v Macro v VLookup Windows 7 64bit Pivot table v Advance filtering v Macro v VLookup Office 2013
Novice
Pivot table v Advance filtering v Macro v VLookup
 
Join Date: Apr 2016
Posts: 3
Dgrissom is on a distinguished road
Thumbs up

Perfect! I will take a look. Might need to ping you regarding the specifics of how you set up the advanced filter.

Appreciate your time. I will get back with you after reviewing.
Reply With Quote
  #4  
Old 04-19-2016, 05:13 AM
Dgrissom Dgrissom is offline Pivot table v Advance filtering v Macro v VLookup Windows 7 64bit Pivot table v Advance filtering v Macro v VLookup Office 2013
Novice
Pivot table v Advance filtering v Macro v VLookup
 
Join Date: Apr 2016
Posts: 3
Dgrissom is on a distinguished road
Default

This worked perfectly and seamlessly.

With this work around you have saved me many hours of searching and formatting.

Thanks much!!
Reply With Quote
Reply

Tags
advance filtering, macro, pivot table



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot table v Advance filtering v Macro v VLookup Create PIVOT chart using few rows in pivot table Santhosh_84 Excel 1 08-31-2015 06:22 AM
Pivot table v Advance filtering v Macro v VLookup Filtering (advanced?) in Pivot Table canajun Excel 6 01-17-2015 05:01 AM
Excel Macro to "Select All" in Pivot Table Field galkej Excel 0 02-03-2014 11:59 AM
Help with pivot table macro ejima Excel Programming 2 02-16-2012 03:45 PM
VBA: Recording a macro to insert a PIVOT table e093223 Excel Programming 0 10-09-2011 01:55 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:00 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft