+ Reply to Thread
Results 1 to 4 of 4

Find number of 0's in 0/1 collumn depending on username

Hybrid View

  1. #1
    Registered User
    Join Date
    03-19-2019
    Location
    Denmark
    MS-Off Ver
    Excel for Mac 16.16.7
    Posts
    1

    Find number of 0's in 0/1 collumn depending on username

    Hey excelforum

    I need some help with a formula for a data set I’m working on.
    I’m looking at data from a surgical simulation, and needs to know how many failed simulations a participant has had within the last 3, 5 and 10 simulations.
    So I have a column containing the results (0=fail/1=succes) and another column containing the corresponding usernames used in the simulation.
    My problem is that sometimes the usernames are scrambled/mixed (but they all have date_time stamp) and therefore the formula has to be able to consider all previous results by a specific username (even though they might not be the previous rows) and tell me how many fails a user has had within the last 3, 5 or 10 simulations.
    Part of the problem is that the usernames are stacked on top of each other in the username collumn. This means that for the first entry of a given username the formula needs to take into account that there is no previous results by this username to analyze.

    Hope you guys can help
    Thanks!
    Attached Files Attached Files
    Last edited by thikhai; 03-19-2019 at 05:32 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Find number of 0's in 0/1 collumn depending on username

    Welcome to the forum.

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.



    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    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: Find number of 0's in 0/1 collumn depending on username

    I would suggest that you include some sample answers in your file
    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

  4. #4
    Registered User
    Join Date
    03-19-2019
    Location
    London
    MS-Off Ver
    2003-2016/2016 Mac
    Posts
    57

    Re: Find number of 0's in 0/1 collumn depending on username

    I have added four Columns to your data:
    Column C : Date and Time
    Column D-F : will assist in calculations - You can Delete E

    Do tell me if this works

    Solved - Example.xlsx
    Last edited by Saqib Qureshi; 03-20-2019 at 02:37 AM.

+ 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. Replies: 2
    Last Post: 06-15-2018, 11:43 AM
  2. Changing location of audit trail depending on username.
    By Hannah Pattinson in forum Excel General
    Replies: 5
    Last Post: 05-16-2016, 08:15 AM
  3. Work out average scores depending on username or other column data
    By benmoore89 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2015, 09:25 PM
  4. Replies: 0
    Last Post: 05-22-2014, 04:02 PM
  5. [SOLVED] Find a collumn in a dynamic sheet and select the entire collumn
    By Armand0 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2014, 11:20 AM
  6. Find exact match in two collumn. Please help
    By 11ktran44 in forum Excel General
    Replies: 1
    Last Post: 02-23-2012, 04:00 AM
  7. Change external data source depending on username
    By Jack M in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2009, 10:56 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