+ Reply to Thread
Results 1 to 6 of 6

10% of the audit

  1. #1
    Forum Contributor
    Join Date
    05-04-2016
    Location
    London
    MS-Off Ver
    MS Office Excel 2010/2013
    Posts
    354

    10% of the audit

    Hi all,

    Is there a way we can randomly and uniquely select or pick 10% data from 1000 of records ?

    Example : i have lets for example 100 records out of which i want to select randomly 10% of the data and do the analysis i.e 10 records from each Month and each country .

    attach is the example for your reference.
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: 10% of the audit

    Can you explain what you mean by "uniquely"?

    BSB

  3. #3
    Forum Contributor
    Join Date
    05-04-2016
    Location
    London
    MS-Off Ver
    MS Office Excel 2010/2013
    Posts
    354

    Re: 10% of the audit

    Hey BSB, you can ignore that .. that does not really matters .

    thanks.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: 10% of the audit

    One simple way would be a helper column.
    Put this formula in F2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Put this formula in G2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Copy down down as necessary.

    Now in column F there will be 10% of entries with the word Audit picked at random (well as random as Excel can be).

    Note that making any cell changes will refresh the randomise so you may want to either switch off auto-calculation or paste values over column F after you've generated your random values.

    BSB

  5. #5
    Forum Contributor
    Join Date
    05-04-2016
    Location
    London
    MS-Off Ver
    MS Office Excel 2010/2013
    Posts
    354

    Re: 10% of the audit

    This is great , but does the 10% evenly from all the regions and months ?.

    I want parameters to be taken care like (region and month ) , make sense ?.

    Am i expecting too much ?. i know for 100 records it is very simple but i will be have more than 10,000 records ..
    Last edited by hudson andrew; 01-15-2018 at 10:36 AM. Reason: more details

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: 10% of the audit

    The following proposed solution employs two helper columns.
    The first helper column (H) is populated using: =RAND()
    The second helper column (I) is populated using: =1+SUMPRODUCT((D$2:D$100=D2)*(E$2:E$100=E2)*(H$2:H$100>H2))
    Column F is populated using: =IF(I2<=ROUNDUP(COUNTIFS(D$2:D$100,D2,E$2:E$100,E2)/10,0),"Audit","")
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] Audit Trail with VBA!
    By Keibri in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-22-2016, 04:11 AM
  2. Audit Trail
    By Moggzzz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-29-2016, 06:48 AM
  3. Inventory Audit
    By Psycho_uk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-06-2013, 09:33 AM
  4. Audit Trail
    By jenziepie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2013, 01:56 PM
  5. threshold and audit
    By step_one in forum Excel General
    Replies: 2
    Last Post: 10-14-2011, 11:10 AM
  6. Audit 2 lists
    By gordonrmac in forum Excel General
    Replies: 1
    Last Post: 03-17-2011, 04:16 PM
  7. change audit
    By Gary's Student in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2005, 11: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