+ Reply to Thread
Results 1 to 13 of 13

Filter and transfer fixed number to created sheet

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Filter and transfer fixed number to created sheet

    Hello everyone
    I have Sheet1 with my data in four columns (Column 4 would be "P" or "N")
    and there is a template sheet ..

    I need a way to filter column 4 at first with "P" and copy Template sheet for each five records and so on
    Then filter column 4 with "N" and repeat the same action .. to copy template sheet for each five records

    For example:
    If we filtered column 4 with "P" we got 21 records : so I need to create five copied sheets and transfer each five records to a sheet >> so four sheets will contain five records completely but the fifth sheet created will contain just one record in that case

    Now if we filtered column 4 by "N" we got 13 records ...so three sheets would be created : two of them will be completely of five records and the last created sheet will contain only three records ..
    Hope it is clear
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filter and transfer fixed number to created sheet

    Can I ask what you then do with those additional sheets?

    I'm always reluctant to spread one database across many sheets when the end result may be obtained in a more efficient way. I'm not saying that your requirement doesn't absolutely require additional sheets but the question should be asked.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Filter and transfer fixed number to created sheet

    It is desired output .. I have data and my boss need the data to be populated each five records in a sheet ..That's all

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filter and transfer fixed number to created sheet

    Hi,

    Sometimes bosses need re-training!

    Let me re-phrase. How does your boss use the information? i.e. does he really want extra sheet tabs as well as the information they contain or is he just interested in seeing the information?

    If the latter then I suggest that the attached which uses a Pivot Table to give the same information is more elegant and being a PT offers a lot more flexibility to boot.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Filter and transfer fixed number to created sheet

    Thanks a lot Mr. Richard for this good solution ..
    But the idea is not that he needs extra sheet tabs ... It is a kind of preparing these sheets for print process ..

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filter and transfer fixed number to created sheet

    That's exactly why a Pivot Table is so useful.

    Just add another Slicer for the Group Field that I added to the database and remove the Group Field from the PT. You then have the same three items that you show on your template and all your boss needs to do is use the slicers to Filter the Pivot Table for Group and Status and then Print the PT.

    One thing you could do to help him do this is add a simple Print Macro that would print the PT.

    Sometimes a bit of lateral thought is needed

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Filter and transfer fixed number to created sheet

    Thanks but I can't figure it out . I am completely ignore how to deal with pivot tables..

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filter and transfer fixed number to created sheet

    Quote Originally Posted by YasserKhalil View Post
    Thanks but I can't figure it out . I am completely ignore how to deal with pivot tables..
    See the attached.

    The Pivot Table is currently filtered to show Group 1, i.e. the first of the 1-5 rows and Status P. Just click on other values to change the report.
    I've added a macro so that the after you've entered new data on the Data Sheet the PT will automatically refresh so that the whole of the data will be used.

    After you've added new data you'll need to copy the formula in column E of the Data sheet.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Filter and transfer fixed number to created sheet

    Thanks a lot for this wonderful solution ..
    How can I create such a great pivot table myself?
    What are the steps in detail please?
    Thank you very much for great and wonderful solution

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filter and transfer fixed number to created sheet

    Hi,

    To create any Pivot Table first make sure you have a regular table with column labels at the top of each column. Make sure there are no blank rows, i.e. there is a data record on every row. Now

    1. Select any cell in the Data
    2. From the menu choose Insert...then choose Pivot Table. I suggest you accept the default location of a new sheet.
    3. From the Pivot table Field List over on the right drag and drop the filed names into one of the four areas.
    4. To insert a Slicer frame allowing you to filter data, with a cell in the Pivot Table selected, click the PivotTable Tools item at the very top of the screen and then click the Insert Slicer menu item and choose the field that you want to use.

    Whilst they take seconds to create you'd be advised to spend a little time getting to grips with the rich functionality they offer so that you can take full advantage. Try this site to give you some ideas
    http://www.contextures.com/CreatePivotTable.html

  11. #11
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Filter and transfer fixed number to created sheet

    Thank you very very much for this wonderful steps .. I learned something new
    When applying the steps everything is ok and I could make similar pivot table as your ... Just one point what about these marks rounded in red ..how can I get rid of them and what are they?
    Untitled.png

  12. #12
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filter and transfer fixed number to created sheet

    Hi,

    Right click anywhere in the PT and choose Pivot Table Options
    Select the Display tab and untick the show expand/collapse buttons

    The Expand + button will show every instance of the values in the column to the right which is associated with the + button you're usingw. When you click the - sign this collapses the data and won't show anything in the column to the right. With your data it's not really relevant since you have a one to one match between Name and Marks, but if you had more than one mark for a name then you'd either see a Name and nothing in the Mark column, or a name and all the marks associated with the name depending on how you've toggled the +/- button.

  13. #13
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Filter and transfer fixed number to created sheet

    Thank you very much for great help
    Best Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to transfer the data and assign the page number in the sheet?
    By heihei in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2013, 11:47 PM
  2. [SOLVED] Fixed Cell Reference Minus a Fixed Number
    By juddykong in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-03-2013, 03:25 PM
  3. Transfer single column input data to fixed table in a separate Sheet
    By Prokis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-07-2012, 05:37 AM
  4. Macro to search ID number in sheet 1 and transfer quantity into sheet 2
    By obgle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2012, 11:27 AM
  5. How do I transfer User-Defined filter parameters to then filter another column?
    By fiqulupo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2012, 07:05 PM
  6. Replies: 0
    Last Post: 06-21-2011, 10:40 PM
  7. [SOLVED] How do I keep fixed and Non-fixed decimals on a sheet together?
    By kpike in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-21-2006, 07:35 PM
  8. How do I assign a unique ID number to an invoice sheet I created?
    By Matt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2006, 01:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1