Closed Thread
Results 1 to 5 of 5

Identifying Manual percentage on a control location

  1. #1
    Registered User
    Join Date
    12-13-2015
    Location
    Addis Ababa
    MS-Off Ver
    2010
    Posts
    7

    Identifying Manual percentage on a control location

    Hi Guys
    This is probably easy but I’m a dull when it comes to Excel,
    I would like to identify the percentage of manually priced and auto priced tickets for those sold in a six month period.
    Auto priced tickets are designated by 0 & 2 while 1 & blank represent Manual pricing.

    I would like to identify the percentage of manually priced tickets i.e. 1s & blanks together on a control location level on a single column.
    Is can anyone help me come up with a certain formula for this?
    Below is an example of how I want it to be (I added the last column manually)

    DOCNUM SALDAT ISSLOCCO Control location FARPRCIND Manual percentage
    071-7721717525 2-Jan-16 656229 600 2 50
    071-9394835684 2-Jan-16 1320991 1320000 1 63.15789474
    071-9772465176 2-Jan-16 1320995 1320000 0 63.15789474
    071-9772466403 2-Jan-16 1320995 1320000 63.15789474
    071-9772466407 2-Jan-16 1320995 1320000 1 63.15789474
    071-7740216547 2-Jan-16 966757 600 50
    071-9394835835 2-Jan-16 1320080 1320000 2 63.15789474
    071-9394835857 2-Jan-16 1320080 1320000 0 63.15789474
    071-9394835861 2-Jan-16 1320080 1320000 1 63.15789474
    071-9772465938 2-Jan-16 1320081 1320000 1 63.15789474
    071-7740216539 2-Jan-16 966757 600 0 50
    071-9772466121 2-Jan-16 1320989 1320000 63.15789474
    071-9772466123 2-Jan-16 1320989 1320000 2 63.15789474
    071-7740216542 2-Jan-16 966757 600 1 50
    071-9394835656 2-Jan-16 1320991 1320000 1 63.15789474
    071-9394835684 2-Jan-16 1320991 1320000 1 63.15789474
    071-9772465176 2-Jan-16 1320995 1320000 0 63.15789474
    071-9772466403 2-Jan-16 1320995 1320000 63.15789474
    071-9772466407 2-Jan-16 1320995 1320000 2 63.15789474
    071-7740216545 2-Jan-16 966757 600 0 50
    071-9772466056 2-Jan-16 1321001 1320000 1 63.15789474
    071-9772466242 2-Jan-16 1321001 1320000 1 63.15789474
    071-9772453824 2-Jan-16 1321007 1320000 0 63.15789474
    071-9772453828 2-Jan-16 1321007 1320000 63.15789474
    071-7740216543 2-Jan-16 966757 600 1 50
    Attached Files Attached Files

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

    Re: Identifying Manual percentage on a control location

    It should be a COUNTIF()/COUNT() function. I would probably add a helper column to get rid of the blanks (because blanks will be harder to count) =IF(ISBLANK(E2),1,E2). Then your percentage should be a simple =COUNTIF(F2:F2000,1)/COUNT(F2:F2000)
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    12-13-2015
    Location
    Addis Ababa
    MS-Off Ver
    2010
    Posts
    7

    Re: Identifying Manual percentage on a control location

    Hi Mr. shorty, thanks for the response
    I see that you replaced the blanks with ones & that's working good, but the percentage formula isn't working.
    It is not showing the correct values. What I want is the percentage of ones on a control location level. The attached image is a sample I did manually of how I want it to be.
    I'm also okay if you give me the percentages of all 1s,2s,0s on the additional column.

    Pls help
    Attached Images Attached Images

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

    Re: Identifying Manual percentage on a control location

    If I understand correctly, and I am not sure I do, it sounds like you just need to replace the COUNTIF() and COUNT() functions with COUNTIFS() functions, so you can make a conditional count based on multiple criteria: https://support.office.com/en-us/art...c-aa8c2a866842

    Perhaps something like =COUNTIFS(F2:F2000,1,D2:D2000,600)/COUNTIFS(D2:D2000,600) or some variation on that theme.

  5. #5
    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
    52,946

    Re: Identifying Manual percentage on a control location

    This is a duplicate thread, which looks to have been answered here...
    http://www.excelforum.com/showthread...t=#post4553978

    I am closing this thread now. PM me if you think it needs to be opened again, but if you need more, use your other thread

    Thanks
    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

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Overlaping bar chart percentage data label location help
    By rs1aj in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-14-2014, 09:55 AM
  2. [SOLVED] Class Module: Identifying calling control in MouseMove event
    By tekman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2013, 09:27 AM
  3. [SOLVED] 3D Column Chart: Manual UI Rotation Control via Scrollbars
    By ralphjmedia in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-30-2013, 04:10 PM
  4. Excel 2007 : Control x,y location of a chart
    By SueWithQuestion in forum Excel General
    Replies: 4
    Last Post: 04-20-2011, 06:35 AM
  5. VBA to control filters by manual entry
    By NeoPhyx in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-04-2010, 10:17 AM
  6. Identifying Unique Location in Table from criteria?
    By DAVID1972 in forum Excel General
    Replies: 2
    Last Post: 05-06-2008, 02:36 PM
  7. [SOLVED] Identifying Control type
    By Graham Payne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2006, 04:20 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