+ Reply to Thread
Results 1 to 4 of 4

Counting items by attributes

  1. #1
    Registered User
    Join Date
    09-03-2013
    Location
    poland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Counting items by attributes

    Hi,
    I've got some problems to solve one case, to be honest I'm struggling with this issue since few days and have no more ideas, maybee because of the fact that I'm excel beginer.

    Anyway, maybe somebody will have any ideas about that.

    Problem description:
    I've got staff list. Each particular person has some priviliges (marked from A to J) or no priviliges. There is no any rule how many priviliges one person may have maximally or minimally, so it means that e.g. Person AA may have 4 different priviliges, person BD 2 priviliges, person CC no priviliges.

    I would like to create a calculator which will show defficiencies or surpluses of personnel basing on staff list analyze. The problem is that there are 89 persons availible and 9 types of priviliges. How to count defficiencis or surpluses in this case? Especially when e.g. person AA who has priviliges A,B,C,F can be used only to cover demand for one of privilige he has, for example A and I cannot use this person to cover demand for B,C,F.

    I tried to set some conditions in order to get an optimum solution, however it's not so easy, that's why I decided to open a new topic. I think that setting the priorites for priviliges types is a must, otherwise there will be few solutions.

    If anybody has any idea how to solve my problem or can give me any tips, I would like to thank You in advance. Maybe Solver mabye some macros, I don't know.

    I'm attaching simplified sheet showing the problem.
    Unfortunately, I'm not a native speaker, however I hope that I described my problem in understandable way.
    Brgds, Peter
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Counting items by attributes

    Im not exactly sure how you intend to determine surplus/deffic, but this, in C2, copied down, will count how many in each category....
    =COUNTA(OFFSET('Personnel and priviliges'!$C$2,1,MATCH(Calculator!A2,'Personnel and priviliges'!$C$2:$M$2,0),91,1))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-03-2013
    Location
    poland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Counting items by attributes

    Quote Originally Posted by FDibbins View Post
    Im not exactly sure how you intend to determine surplus/deffic, but this, in C2, copied down, will count how many in each category....
    =COUNTA(OFFSET('Personnel and priviliges'!$C$2,1,MATCH(Calculator!A2,'Personnel and priviliges'!$C$2:$M$2,0),91,1))
    It's not what I would like to achive. The thing is that as written down in first post, there is an amount of persons (in this case 89) who have some priviliges. I've got some demands regarding amount of people required for particular priviliges (in this case A-48, C-25, H-5, No priviliges - 43). When You summarize demand values (121 persons required in this case), there is an evidence of some deficiencies (-32). There is a problem how to calculate the data in order to distribute deficiency between priviliges categories in optimum. I think that there are many solutions, so each privilige type must have priority. Let's say that Cat. A is prio 1, cat C - prio 2, cat. H - prio 3, rest does not require any prioritizing because there is no dmenad. No priviliges cat. is the simple substraction.

    I tried to solve this problem by creating conditions, however there are a lot of them and I belive that it must be simpler solution.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Counting items by attributes

    OK, so if you were doing this by hand, what would you do, and what would an answer look like?

+ 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. Counting items.
    By Chris TRN in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-04-2013, 01:29 PM
  2. Counting items
    By AMYA in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-18-2009, 01:27 PM
  3. Counting Items
    By andrewthorp in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-22-2007, 08:21 AM
  4. Counting the items
    By Tyrone Lopez in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-25-2006, 02:51 AM
  5. [SOLVED] Help counting items please
    By Dave \Doc\ Corio in forum Excel General
    Replies: 5
    Last Post: 08-20-2005, 09:05 AM

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