+ Reply to Thread
Results 1 to 10 of 10

Ability to sort by Sheet, Columns, Within those columns, and Operations on Info

  1. #1
    Registered User
    Join Date
    11-16-2010
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    9

    Ability to sort by Sheet, Columns, Within those columns, and Operations on Info

    Sorry ahead of time if the title wasn't able to convey exactly what i'm going for, but in further detail...

    I have 8 sheets, 1 i'm wanting desired information to be displayed on, the other 7 are for data to be entered. What i need is the ability to get the desired information (which changes) from the other 7 sheets (whcih are updated continiously) and after determining which sheets its looking at, to determine which columns in those sheets, and then what restrcitions its using to grab information from within those columns..

    example, i need information from sheets 3 and 5, but only between x and y dates.

    Now that information has been sorted to the appropriate ones, perform calculations on said information, average, deviation, as well as create a graph...

    Uploaded current file for visual of what im trying to accomplish. The 'search' form is the visual framework for the search filters which is Sheet, and column w/in said sheets.


    possible?


    Thanks in advance for any assistance on where to even start with this!
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Ability to sort by Sheet, Columns, Within those columns, and Operations on Info

    A sample sheet with no sample data and a sample "results" sheet with no sample "results" is of minimal use.

    Without doing it for you, on the DISPLAY sheet you should have same TO/FROM date cells, a way to indicate which sheets to use (perhaps by name and "x") and the standard headers used on the other sheets.

    Then you can use an AUTOFILTER macro to cycle through each selected sheet, apply an AUTOFILTER on column A using the dates given, copy the visible data into the report, then repeat with each worksheet.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-16-2010
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Ability to sort by Sheet, Columns, Within those columns, and Operations on Info

    A sample sheet with no sample data and a sample "results" sheet with no sample "results" is of minimal use.

    All of the data being entered is numerical or a date

    Without doing it for you, on the DISPLAY sheet you should have same TO/FROM date cells, a way to indicate which sheets to use (perhaps by name and "x") and the standard headers used on the other sheets.

    There is a form already created (no code of course) that has selection options for filtering, it is titled search. Check boxes to select sheet, Start date and End date to get a range of dates. Also a Bit # option which is a numerical value that will be in column 3 of every sheet.

    Then you can use an AUTOFILTER macro to cycle through each selected sheet, apply an AUTOFILTER on column A using the dates given, copy the visible data into the report, then repeat with each worksheet.

    Yes, i'm able to reach the desired end result with just macros and have already made a temp file for the time being sorting it that way, but i was really interested in seeing if there was a way to perform the actions using a form instead of just using cells on the spreadsheet itself?

  4. #4
    Registered User
    Join Date
    11-16-2010
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Ability to sort by Sheet, Columns, Within those columns, and Operations on Info

    Should i post one with sample data in it? or is no help for the problem?

  5. #5
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Ability to sort by Sheet, Columns, Within those columns, and Operations on Info

    A good sample workbook always helps.

  6. #6
    Registered User
    Join Date
    11-16-2010
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Ability to sort by Sheet, Columns, Within those columns, and Operations on Info

    Ok instead of doing multiple sheets, opted to just sort by producer number so all data will just be entered on 1 sheet to make it easier to filter... i can get filters set up, i just dont know how to get VB to use filters. As well as getting a form set up for the search parameters
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Ability to sort by Sheet, Columns, Within those columns, and Operations on Info

    I don't really understand why you need VBA. If you want to query bits of data much easier to use AutoFilter, or even Advanced Filter.

    Why do you need a form?

  8. #8
    Registered User
    Join Date
    11-16-2010
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Ability to sort by Sheet, Columns, Within those columns, and Operations on Info

    I don't NEED to use a form, but i'd really like to since i feel it looks nicer when its all said adn done. As well as I'd really like to learn how to do it

  9. #9
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Ability to sort by Sheet, Columns, Within those columns, and Operations on Info

    Maybe this will get you started. It only checks the Bit # field. I don't know what the others relate to. Assign this to the search button.
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    11-16-2010
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Ability to sort by Sheet, Columns, Within those columns, and Operations on Info

    Thanks for getting me started!! Sorry i forgot to explain the options in the form >.< silly me! The check boxes on the left side are the producers and each has a corresponding producer number. And just wanna be able to sort the date column dates between xx/xx/xx> entries > xx/xx/xx

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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