+ Reply to Thread
Results 1 to 9 of 9

Macros: how to make a chart over how many..

  1. #1
    Registered User
    Join Date
    12-14-2017
    Location
    London
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    4

    Lightbulb Macros: how to make a chart over how many..

    Hi. Sorry for the SUPER BAD title, but this is my problem:
    I just started working with macros, and I have a problem i would like to solve.
    I work at a lab and want to make a chart over how many people who can run an analysis.
    We have two differet UV and IR.

    This is just an example of my excel-sheet, the real one is much bigger, but you get the drift:
    list_analysis.jpg

    So I want to make a over view of how many status 3 I have in my group, how many status 2 and so on.
    Status 3 = Run
    Status 2 = In training
    Status 1 = Cant run

    So the people with 3 can do the task at hand (UV/IR). I also have two different names; the type of analysis, and the acutal analysis.

    How do i, using micros, make a chart / over view over who can do what in my group?

    I would like to be able to select UV 425 and see who can run the analysis, who is in training, and who cant run it.

    Like a search box or something?

    All help is greatly appreciated!!

  2. #2
    Forum Contributor
    Join Date
    07-11-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    144

    Re: Macros: how to make a chart over how many..

    Hi Sanex,

    Can you post the sample file so that we can help you better.
    Ravikumar,

    * Please Add Reputation if solved.

  3. #3
    Registered User
    Join Date
    12-14-2017
    Location
    London
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    4

    Re: Macros: how to make a chart over how many..

    yes, of course! here it is!
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Macros: how to make a chart over how many..

    Is it necessary to use a macro? My first thought is to use a simple autofilter: https://www.wikihow.com/Use-AutoFilter-in-MS-Excel Once you have set up the autofilter, then it should be as simple as clicking on the dropdown arrow on the desired column, select the desired filter options, and Excel will display only the rows that meet the filter criteria that you specify. You can even filter on multiple columns. For example, you could specify to filter on the Output column value UV 339 and Status column value 2 to show only those who are in training for the UV 339 analysis.

    If that will work, that seems easier than writing your own "filter" macro/code/procedure to accomplish this task.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    12-14-2017
    Location
    London
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    4

    Re: Macros: how to make a chart over how many..

    That could work, but we are many people that are gonna use it. And what I really would want is:
    A search button and a search feel where i can search a analysis ex: IR A, and then get a chart/list/what ever over the people in my group that can run that analysis.
    And also be able to search name and see which analysis that person can do. like when i hit the search button, i get up a new window (userform) that tells me which people can do the analysis i searched for..

    And i really need it to be view very simply, so its easy to see.. not to scroll through a list of 40 names..
    and also there are about 60 analysis that are gonna go into this sheet, and 40 people (and counting), so i kinda need it to be simple and quick to understand and to draw information out of it..

  6. #6
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Macros: how to make a chart over how many..

    I would recommend a pivot table with slicers (since you have 365) - there are two issues.
    1. The file is in XLS format. It would have to be updated to 2010 or better.
    2. There are embedded blank rows in the data. This makes auto-detection of the range to convert to a pivot table impossible, so you will have to select the range manually.

    In the attached, I converted the spreadsheet to a current version. I converted the data range into a Table (so when you add data, the pivot table will pick it up automatically. I made a pivot table of the data and added a slicer.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Macros: how to make a chart over how many..

    like when i hit the search button, i get up a new window (userform) that tells me which people can do the analysis i searched for..
    I don't know if you are familiar with autofilter, but this sounds exactly like what you get from the Text Filter-> menu options in the autofilter dropdown menu (this is how I almost always use autofilter). A user selects the autofilter dropdown, clicks on text filter, selects the desired option (or just click on custom), then enters the name (or number or other text) in the dialog fields to search for.

    Is that more complex than your colleagues can handle with a little bit of training?

    If I decided that I had to simplify even further, I would probably start by using the macro recorder to record me filtering on a criteria, then decide how to proceed from there. Here's what I got from the macro recorder for a simple filter operation:
    Please Login or Register  to view this content.
    From there, I would need to decide how to easily get value for the "Field" and "Criteria1" arguments and put them into this statement.

  8. #8
    Registered User
    Join Date
    12-14-2017
    Location
    London
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    4

    Re: Macros: how to make a chart over how many..

    Thank you for alot of help! I have now created both filtered sheet and a table..

    In the filtered sheet (auto filter), i have made (recorded macros) and attaced them to buttons. Different buttons for UV, IR, and the different names, and buttons for status.

    This is starting to look like i want it too, but when i search for ex. IR A, and status 3, i get a lot of duplicate rows downwards because of each name has its own row with that analysis.

    Is there any way i could, when i press the buttons "IR A" and "Status 3", get up a user form or something that neatly summarize the information?
    Something like:

    Analysis: UV A
    Techical Personell: Vic, Chen
    Personell in training: Ali

    any takers?

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Macros: how to make a chart over how many..

    And i really need it to be view very simply, so its easy to see.. not to scroll through a list of 40 names..
    and also there are about 60 analysis that are gonna go into this sheet, and 40 people (and counting), so i kinda need it to be simple and quick to understand and to draw information out of it..
    1.) 60 analyses/60 buttons. Would a drop down also be acceptable?

    2.) 40 people and counting ...

    Analysis: UV A
    Technical Personnel: Vic, Chen
    Personnel in training: Ali
    Piggybacking on dflak's Table idea I have a formula/UDF solution in mind for your proposed layout.
    But how well would that work if there were 20 or more qualifying Technical Personnel?
    That's a long concatenated list which I am guessing wouldn't be practical to read.

    Having said all that the attached uses dflak's table, a UDF by tigeravatar, a formula that returns a list of unique Output, a dynamic named range and a drop down.

    The UDF is 'Concatall'. It does what it says.

    In L2 is an array formula filled down to L105. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The dynamic named formula defines the data validation list. It is in Name Manager as UV_IR
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then in G2 is a drop down. The Source:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then the formula in G3 and filled down to G4 is array entered.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

+ 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 do I double click a bar in a bar chart and make another bar chart?
    By bishoposiris in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-08-2016, 11:43 AM
  2. I have a spreadsheet that I want copies for different sheets
    By Atle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-05-2015, 07:14 AM
  3. Replies: 3
    Last Post: 05-05-2015, 12:43 PM
  4. Macros color cells to make something as gantt chart
    By karbidas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-22-2014, 09:22 AM
  5. Replies: 2
    Last Post: 08-30-2012, 07:12 AM
  6. make macros usable! make instructions in plain english !!!!
    By Brainless_in_Boston in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-02-2006, 11:30 AM
  7. [SOLVED] macros to make macros
    By Papa Jonah in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2005, 12:06 PM

Tags for this Thread

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