+ Reply to Thread
Results 1 to 4 of 4

Hello, wondering if I can do this

  1. #1
    Registered User
    Join Date
    12-03-2006
    Posts
    10

    Hello, wondering if I can do this

    Hey, I need to make a sheet with student names on the left and the date across the top to calculate attandance/absence, and tardiness. The problem is then I'm going to have to calculate how many days they are absent, and who was tardy. If I use A= currently in school, B = absent, T=tardy will excel beable to calculate A's and B's? I have to do this in 5 subjects, and for 3 months, so for each month i'll just use a macro with a button for that, and 5 worksheets for each class. My only problem is how I'm going to calculate if each student is absent or in attandace or tardy. I just don't like the 3 variables, would be great if I could just have if there were in attandance or not, and somewhere else if they were tardy. If anyone has any different ideas I'm open to suggestions.

    Thanks,
    Chad.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Try something like

    =COUNTIF(B:B,"A")

    or

    =SUMPRODUCT(--(A2:A1000="StudentA")*(--(B2:B1000="A")))

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    12-03-2006
    Posts
    10

    Smile

    Thank you very much!

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    No problem

    VBA Noob

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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