Count number of times an instructor has taught a class

Howdy Folks, I'm using a lifeline to see if i can get some help for a question. I apologoze in advance, i know this is a numbers forum, but i am working with an excel spreadsheet and was hopng someone could give me a push in the right direction. i want to count how many times an instructor has taught a class based on dates. The spreadsheet is filled out via an applescript so the instructor's name appears with every student. I've been trying to use the count if formula in excel but i cant make it work. any suggestions? it should count james as 2 since he taught classes on two different dates, and nub as 1. all information is fictional and used for demo pruposes.

This will work for you... I hope:
I had to add three columns to your existing table, then crete a second table (on the right) to summarize:
The three columns can be anywhere but I added then right after column G
The table on the right in this example will have to be a new sheet in excel.  On a mac Numbers is free (If you have Mavericks) so maybe you want to try to download from the App store.
H2=IF(COUNTIF( $H$1:H1, F2&"-"&E2)=0, F2&"-"&E2, "")
this is shorthand for... select cell H2, then type (or copy and paste from here) the formula:
=IF(COUNTIF( $H$1:H1, F2&"-"&E2)=0, F2&"-"&E2, "")
I2=IF(H2="", "", MAX($I$1:I1)+1)
J2=IF(COUNTIF($F$1:F1,F2)>0, "", MAX($J$1:J1)+1)
select H2 thru J2, copy
select H2 thru the end of  column J
paste
In the new table (for Numbers) or sheet(in excel):
A2=IF((ROW()−2)<MAX(Table 2::J), OFFSET(Table 2::$F$2,MATCH(ROW()−1, Table 2::J,0), 0),"")
B2=IF(A2≠"", COUNTIFS(Table 2::F, A2, Table 2::I, ">0"), "")
select A2 and B2, copy
fill down as needed

Similar Messages

  • Adding a counter that keeps track of the total number of times a loop has run, even if LabVIEW has been restarted.

    Hi all,
    I am writing a VI for measuring data and inserting it into a database. The measurements are controlled by a loop that runs once every minute. I want to give each measurement a unique id number and store this too in the database.
    To do this, I want to add a counter to this loop so that I can count the number of times the loop has executed in total. This is, even if the VI, LabVIEW or even th PC is restarted, I want the counter to keep track of the number of executions. If say, the loope executes two times and then the VI is stopped and restarted, I want the following number on the counter to be three.
    Does anyone have an idea about how to do this? I am gratefule for any help!
    Clara
    Message Edited by Clara G on 05-11-2010 08:21 AM
    Solved!
    Go to Solution.

    Not allowed to give away code but I can describe one of my "Totalizers" used to keep track of how much stuff has passed through a fliter so we know when to change it.
    THe Total izer is implemented as an Action Engine.
    It has three actions (methods)
    1) Init - Opens an ini file and reads the last values read and cahces these in shift registers. It also inits a timer so we now how long since the last file I/O.
    2) Update - Uses the data passed by the caller to update the totals. It also checks how long since the last save and if more than one minute it writes to the ini file (forced write).
    3) Read - returns the totals for display and evealuating if a an alarm should be triggered to change the filter.
    Note:
    THe pre-LV 8.6 version of the ini file exposed methods to allow writing to the file. The new ini functions do not expose that functionality and require closing the file.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to calculate the number of times an user has accesed a BEx report

    Hi Experts,
    We have number of reports in our BW portal and users logon to the portal and run the reports.
    How do we count the number of times each user has logged in and ran each report.
    Kindly advice.
    Thanks,
    Sai

    Hi Sai:
    I think you can use BI statistics information, which could provide you more detail information.
    You can follow the document
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90080703-4331-2a10-cd98-9c1e95acdea0
    Regards,
    Louis Lu

  • Counting how many times my app has been opened

    I want to be able to count how many times a user has opened my application, and so every time the application launches, this number is added by one.
    Does anyone know how I store a long-time variable like this that will still need to be available across different runs of the application? I imagine this value would be stored in the application's preference file in Library, but I don't know how to do this.
    Can any of you please lend me some advice/code to achieve this (I am using Objective-C)?
    Thanks in advance,
    Ricky.

    Hi.
    It has been a while - but I finally got around to slapping some code together. I have successfully created and retrieved the value from the preference file, but for some reason, adding 1 to my value each run is not working. It only adds by one after each BUILD. So I have to rebuild it every time I want it to increment. See my code below;
    [NSUserDefaults init];
    int numberOfTimes;
    numberOfTimes = [[NSUserDefaults standardUserDefaults] integerForKey:@"used"];
    numberOfTimes = numberOfTimes++; //It is that that is not working.
    [[NSUserDefaults standardUserDefaults] setInteger:numberOfTimes forKey:@"used"];
    NSLog (@"%d", [[NSUserDefaults standardUserDefaults] integerForKey:@"used"]);
    I can't seem to stop anything wrong, but then again it is late.
    Do any of you see any errors here?
    Thanks,
    Ricky.

  • Number of times main memory has been unloaded in last 24 hours "0"

    Hello Experts,
    I am getting  error "BIA server is overloaded"  in RSDDBIAMON2 tcode.  
    Description is below:
    BIA server is overloaded
    Message no. RSD_TREX154
    Diagnosis
    The SAP NetWeaver BI Accelerator server is overloaded. Either there has recently been a forced unload of the BIA main memory, ort he total volume of loaded data exceeds the limit of 50% of the available main memory.
    Both these situations negatively impact the stability of the BIA server.
    Procedure
    You have two options:
    Decrease the volume of data in the BIA: Delete BIA indexes that you do not currently need or that you do not urgently require.
    Contact your BIA hardware partner and carry out a new sizing for the BIA hardware.
    Procedure for System Administration
    By default, this message only appears as a warning in processes that index large volumes of data in the BIA. You can use administration parameters to specify this warning as an error message as well. This causes all index processes to terminate if the error occurs.
    To do this, execute program RSDDTREX_ADMIN_MAINTAIN with parameters Object= DONT_IGNORE_BIA_OVERLOAD, Value = X, and INSERT/UPDATE = X.
    Diagnois says
    1) The total volume of loaded data exceeds the limit of 50% of the available main memory,I have already checked the disk used for storing the indexes  and it is not more than 50% of the BW Accelerator main memory.
    2)There has recently been a forced unload of the BIA main memory:  As per error details  Number of times main memory has been unloaded in last 24 hours: '0'  ie no unloaded had happened in last 24 hours.
    Please help me how i can solve this erro as there is not unload happened and also disk usage under control.
    Regards,
    Akshay

    hi,
    1) You can check the traces via the trex standalone tool trexadmin or transaction TREXADMIN. You must provide more details to get an analyze. Was there running a lot of process chains at this time? Have you checked the memory monitoring of the BWA blades?
    2) transaction TREXADMIN -> tab version..
    You can try going through SAP notes which help with high memory issues.
    Sometimes, the rfc server sometimes takes a lot of memory and doesn't free it afterwards.
    Thanks,
    Sheen

  • Does anyone know if there is a way for the number of time a song has been played on your iPhone/iPod be transferred to the songs on your iTunes number of plays?

    I mainly just use my iTunes for organizing and adding new songs. Most of the time I listen to my music on my iPhone. I wish it would keep track of how many times I play a song in my music and transfer it to the computer under the 'number of times played' column. It would help out so much! Does anyone know if there is a way for the number of time a song has been played on your iPhone/iPod be transferred to the songs on your iTunes number of plays?

    Hi @imobl,
    You sound like an Apple support guy who hasn't been able to answer my questions.
    To respond to some of the points you made,
    - I did not ignore Ocean20's suggestion. If you has read my post, you would have known that I took my phone to the apple service centre where they tried this restore on THEIR machines. I am assuming that Apple guys know how not to block iTunes. So I actually do not understand your point about me trying the hosts file changes on my machine. Do you not believe that apple tested this issue with the correct settings?
    - you also give a flawed logic of why the issue is a hardware issue. You mentioned that If I thought that the issue was with the software, i should try a restore and getting it to work. The problem is that my error (23), and many others comes up when the restore fails. And you would be astonished to know that not all errors are hardware errors. Sometimes even software errors prevent restores. Funnily enough Apple itself mention that 'in rare cases, error 23 could be hardware related'.
    - all Apple has done so far is replicate the issue. I don not know how anyone can conclude that the issue is a hardware issue.
    And by the way, I am not certain that this is a software bug. Again if you read my Posts, you will notice I only want a confirmation,/proof that the issue is hardware related as they mention..
    Please refrain do. Responding if there is nothing to add.

  • How do i count the number of times a cell has been referenced by other cells' formulae?

    Hello,
    I have a spreadsheet of recipes and ingredients that use checkboxes to let me know which recipes I can make based on the ingredients I have on-hand, using a formula like this one: =IF(AND('Spirits' :: A42,Mixers :: A18,Mixers :: A41,'Spirits' :: A25 ),Table 3 :: $A$2,Table 3 :: $A$3). If I've checked all of the boxes for ingredients that are required for any one of my recipes, the cell that the formula is in returns something like "YES"; otherwise, it returns a blank. It works well enough, but I'd like to include a cell next to each ingredient with a formula that will look through the hundreds of recipes, which all use a formula like the one above, and return a count of the number of times the ingredient's cell is referenced in those formulas. That way, I'll know which ingredients are the most commonly used in my eclectic collection of recipes. I thought something like =COUNTIF('Recipes' :: A2:A343, "=A2") would work, but it doesn't look at the cell references in the formulas, so no, it doesn't work. Any ideas? I'm using Numbers 2.3

    Hello
    There's no formula to inspect other formula in Numbers. So what you asked cannot be achived in such a way you described.
    A simple alternative method would be to build recipe-ingredient matrix as follows.
    E.g.
    Table definitions:
    Recipes
    A1    Recipe \ Ingredient
    A2    A
    A3    B
    A4    C
    A5    D
    A6    E
    A7    F
    A8    # recipes / ingredient
    B1    X1
    B2    TRUE
    B3    FALSE
    B4    TRUE
    B5    FALSE
    B6    TRUE
    B7    FALSE
    B8    =COUNTIF(B,TRUE)
    C1    X2
    C2    TRUE
    C3    TRUE
    C4    FALSE
    C5    TRUE
    C6    TRUE
    C7    TRUE
    C8    =COUNTIF(C,TRUE)
    D1    X3
    D2    FALSE
    D3    TRUE
    D4    FALSE
    D5    TRUE
    D6    FALSE
    D7    TRUE
    D8    =COUNTIF(D,TRUE)
    E1    X4
    E2    FALSE
    E3    FALSE
    E4    FALSE
    E5    FALSE
    E6    FALSE
    E7    TRUE
    E8    =COUNTIF(E,TRUE)
    F1    Y1
    F2    TRUE
    F3    FALSE
    F4    TRUE
    F5    TRUE
    F6    TRUE
    F7    FALSE
    F8    =COUNTIF(F,TRUE)
    G1    Y2
    G2    FALSE
    G3    TRUE
    G4    TRUE
    G5    FALSE
    G6    FALSE
    G7    TRUE
    G8    =COUNTIF(G,TRUE)
    H1    Y3
    H2    TRUE
    H3    TRUE
    H4    FALSE
    H5    TRUE
    H6    TRUE
    H7    FALSE
    H8    =COUNTIF(H,TRUE)
    I1    Y4
    I2    FALSE
    I3    FALSE
    I4    FALSE
    I5    FALSE
    I6    FALSE
    I7    TRUE
    I8    =COUNTIF(I,TRUE)
    J1    in-stock?
    J2    =SUMIF(B2:E2,TRUE,TRANSPOSE(X::$C$2:$C$5))+SUMIF(F2:I2,TRUE,TRANSPOSE(Y::$C$2:$C$5))=COUNTIF(B2:I2,TRUE)
    J3    =SUMIF(B3:E3,TRUE,TRANSPOSE(X::$C$2:$C$5))+SUMIF(F3:I3,TRUE,TRANSPOSE(Y::$C$2:$C$5))=COUNTIF(B3:I3,TRUE)
    J4    =SUMIF(B4:E4,TRUE,TRANSPOSE(X::$C$2:$C$5))+SUMIF(F4:I4,TRUE,TRANSPOSE(Y::$C$2:$C$5))=COUNTIF(B4:I4,TRUE)
    J5    =SUMIF(B5:E5,TRUE,TRANSPOSE(X::$C$2:$C$5))+SUMIF(F5:I5,TRUE,TRANSPOSE(Y::$C$2:$C$5))=COUNTIF(B5:I5,TRUE)
    J6    =SUMIF(B6:E6,TRUE,TRANSPOSE(X::$C$2:$C$5))+SUMIF(F6:I6,TRUE,TRANSPOSE(Y::$C$2:$C$5))=COUNTIF(B6:I6,TRUE)
    J7    =SUMIF(B7:E7,TRUE,TRANSPOSE(X::$C$2:$C$5))+SUMIF(F7:I7,TRUE,TRANSPOSE(Y::$C$2:$C$5))=COUNTIF(B7:I7,TRUE)
    J8   
    X
    A1    Ingredient
    A2    X1
    A3    X2
    A4    X3
    A5    X4
    B1    in-stock?
    B2    TRUE
    B3    TRUE
    B4    TRUE
    B5    FALSE
    C1    code
    C2    =IF(B2,1,0)
    C3    =IF(B3,1,0)
    C4    =IF(B4,1,0)
    C5    =IF(B5,1,0)
    Y
    A1    Ingredient
    A2    Y1
    A3    Y2
    A4    Y3
    A5    Y4
    B1    in-stock?
    B2    TRUE
    B3    FALSE
    B4    TRUE
    B5    FALSE
    C1    code
    C2    =IF(B2,1,0)
    C3    =IF(B3,1,0)
    C4    =IF(B4,1,0)
    C5    =IF(B5,1,0)
    In "Recipe" table, the first row is header row and the last row is footer row.
    Hope this may help,
    H

  • How Do I Assess The Number Of Times A Page Has Been Hit?

    Can anyone identify the schema, table and field that when queried identify the number of times an individual page has been accessed?
    I want to create a 'hit counter'. Ideally the field would identify all accesses, not by IP address or username or any other denominator.

    portal30.wwlog_activity_logs
    Portal logs activity in two tables wwlog_activity_log1 and wwlog_activity_log2. It toggles between these two tables every week by default. The wwlog_activity_logs is a view connecting both of these tables.
    Be prepared to do some homework to figure out how to identify the actual page(s) you want to log. It's not clear cut and also be aware that you can't get down to the actual tab pressed within a page without some custom coding... and also, portal purges logged data every two weeks by default.

  • QUERY WHICH COUNTS NUMBER OF TIMES WORDS/LETTER APPEAR IN SENTENCE - Thanks

    I have this query below
    it gives the number of times a txn is hign comfort and Approved
    .. nyumber of times txn is meduim comfort and approved etc.
    There is a futher line whihc shows the number of times txn is blacklisted BL COUNT.
    I am trying to get line of query which can show me the number of times txn is approved, is high comfort and blcklisted ( the same applies for
    wl - watch listed)
    The query i am using
    SUM
    (CASE
    WHEN cc.Comment
    LIKE ('BL(%') and cc.Comment
    LIKE ('Approved%')
    AND cc.Comment
    LIKE ('%ComfortLevel=High Comfort%')
     THEN 1
    ELSE 0 END)AS hbcl  - NO RESULTS BEING GIVEN
    pLEASE CAN ANYONE HELP,. THANKS
    QUERY
    USE RiskManagementReporting
    GO
    DECLARE
    @StartDate DATETIME,
    @EndDate DATETIME
    SET @StartDate
    = '2014-01-01 00:00:00'
    SET @EndDate
    = '2014-03-31 23:59:59'
    SELECT
    CONVERT
    (VARCHAR(10),
    mt.OPacket_TransactionTime, 102)
    AS [Date],
    SUM
    (CASE
    WHEN cc.Comment
    LIKE ('Approved%')
    AND cc.Comment
    LIKE ('%ComfortLevel=High Comfort%')
    THEN 1 ELSE 0
    END) AS [A - HighC],
    SUM
    (CASE
    WHEN cc.Comment
    LIKE ('Approved%')
    AND cc.Comment
    LIKE ('%ComfortLevel=Medium Comfort%')
    THEN 1 ELSE 0
    END) AS [A - MediumC],
    SUM
    (CASE
    WHEN cc.Comment
    LIKE ('Approved%')
    AND cc.Comment
    LIKE ('%ComfortLevel=Low Comfort%')
    THEN 1 ELSE 0
    END) AS [A - LowC],
    SUM
    (CASE
    WHEN cc.Comment
    LIKE ('Declined%')
    AND cc.Comment
    LIKE ('%ComfortLevel=Low Risk%')
    THEN 1 ELSE 0
    END) AS [D - LowR],
    SUM
    (CASE
    WHEN cc.Comment
    LIKE ('Declined%')
    AND cc.Comment
    LIKE ('%ComfortLevel=Medium Risk%')
    THEN 1 ELSE 0
    END) AS [D - MediumR],
    SUM
    (CASE
    WHEN cc.Comment
    LIKE ('Declined%')
    AND cc.Comment
    LIKE ('%ComfortLevel=High Risk%')
    THEN 1 ELSE 0
    END) AS [D - HighR],
    SUM
    (CASE
    WHEN cc.Comment
    LIKE ('BL(%')
    THEN 1 ELSE 0
    END) AS [BL Count],
    SUM
    (CASE
    WHEN cc.Comment
    LIKE ('WL(%')
    THEN 1 ELSE 0
    END) AS [WL Count],
    SUM
    (CASE
    WHEN cc.Comment
    LIKE ('Marked as Touched%')
    THEN 1 ELSE 0
    END) AS [Touched by DRT],
    COUNT
    (mt.csnTransactionId)
    AS [Sent to DRT]
    FROM MatchedTransaction mt
    WITH (NOLOCK)
    LEFT
    JOIN CustomerComment cc
    WITH (NOLOCK)
    ON (mt.csnTransactionId
    = cc.SenderMTCN
    AND cc.InsertDate
    BETWEEN @StartDate AND
    DATEADD (D, 1, @EndDate)

    I have adjusted this as  
    SUM
    (CASE
    WHEN cc.Comment
    LIKE ('Approved%')
    AND cc.Comment
    LIKE ('%ComfortLevel=High Comfort%')
    AND cc.Comment
    LIKE ('%BL(%')THEN 1
    ELSE 0 END)
    AS hcbl,
    Still no result

  • Count number of times a specific element occurs in ArrayList

    I need to count the number of times a specific element occurs in an ArrayList. For example, if an ArrayList 'overflow' consists of the following elements:
    1,3,4,1,1,8,14,7,3,7,8,0.
    I need to count the number of times 4 occurs in the list.
    ArrayList overflow = new ArrayList();
    if(overflow.contains(4))
    }I know that contains returns true if 4 exists in the ArrayList, but how do I count the number of times 4 occurs? Any help will be appreciated. Thank you.

    There is the Collections.frequency method in j2se 1.5
    Or you could loop through the values in the ArrayList and count the number of times it occurs.

  • Number of Times the table has been accessed

    Hi,
    How to find the number of the times the table has been accessed or read ?
    Regards,

    You can do it with 9i
    http://www.mpi-inf.mpg.de/departments/d5/teaching/ss05/is05/oracle/server.920/a96521/audit.htm
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

  • Cycle counting - How many times an item has been counted?

    Hallo Gurus,
    do you know if there's a way to know how many times an item has been counted during the year?
    Thank you very much indeed.
                Mick

    Hi Mick,
    Check the below links. Hope they will help you.
    http://help.sap.com/saphelp_snc70/helpdata/EN/4c/c1b4b55b912a4ae10000000a42189b/content.htm
    http://help.sap.com/saphelp_46c/helpdata/en/4d/2b8e3d43ad11d189410000e829fbbd/content.htm
    Regards,
    Shilpa

  • Count number of times each char appears??

    Hi! I'm trying to figure out, how to count the number of times ech character appears in the text using ascii code??

    Go the text character-by-character, and count each character. It's that simple.
    The only remotely hard part is holding your character counters. You could use a Map.
    But if you know that the characters are always going to be ASCII, then there's only going to be 128 of them.
    So an array of int with 128 elements should be sufficient.
    Those are more than enough hints. Go do your homework now.

  • Determine the number of times the document has been printed

    Hi all,
    I have a form here ( SAPSCRIPT), there is certain field to show how many times the document
    has been printed, i use NAST-ANZAL, but it seems to display no correct value.
    Am I using the riht field anyway? Or missing something?
    Thanks ,,
    AUD

    Hi,
    Check for the field NAST-VSTAT.
    IF NAST-VSTAT = '1' meaning that document  is printed.
    Refer below example from NAST entries.  4000010000 document is printed 4 times.
    OBJKY                          KSCHL SPRAS PARNR      PARVW USNAM        VSTAT
    4000010000                     ZSGI  E                      XXXXXXX                             1
    4000010000                     ZSGI  E                      XXXXXXX                             1
    4000010000                     ZSGI  E                      XXXXXXX                              1
    4000010000                     ZSGI  E                      XXXXXXX                             1
    Rgds,
    Arun

  • Priority in queue based on the number of times the caller has called

    Hi,
    One of my customer has requirement to to prioritize the call from caller if the same caller has called thrice within 24 hours.
    UCCX version is 7.0. It is standalone.
    Please let me know if it can be achieved?
    Thanks,
    Vinay

    Hi
    Yes - I've done this on CCX7.0.
    I basically just queried the contactcalldetail table after validating the CLI is sensible for calls from the same number in the last few days.
    I added a new DSN to point at the CRA DB. You would need a Premium UCCX license.
    Aaron
    Please rate helpful posts..

Maybe you are looking for

  • "unexpected error" when connecting to Express after reset

    Hi, I had a Time Capsule connected wirelessly to two Airport Expresses - one to extend the network and the other to stream music.  Recently I had to replace my old iMac and at the same time I upgraded the Time Capsule to the new 3Tb model.  The iMac

  • Swing app in JDK6 continues to rendering slow in Windows Terminal Server

    Hi, Because Swing apps create interfaces internally and not using default OS APIs, when running into a Windows Terminal Server client, there is no way to optimize rendering. Windows Terminal Server and Linux FreeNX use a mechanism to send to client o

  • ISE 1.3

    Can anyone point me in the right direction concerning Guest account that are created on the sponsor Portal. Login is not going through with the account created and after a while it say USER disabled in internal database. How do i see the location of

  • Why won't my tabs & windows reopen as they should, even tho I have it set for them to do so?

    Why won't my tabs & windows reopen as they should, even tho I have it set for them to do so? "Firefox can be configured to restore all windows and tabs that were open when the application is closed or terminated unexpectedly. This article describes t

  • Copy command called through FM SXPG_CALL_SYSTEM not performed properly

    Hi  Gurus, I am calling the FM SXPG_CALL_SYSTEM with the command name as COPY maintained for windows NT server and I am passing the additional parameters with the file names ( source file <space> destination file). Source files can be picked using wi