Solved

Check to see if student attended class on certain date

Posted on 2014-03-01
5
278 Views
Last Modified: 2014-03-01
I run a fitness bootcamp and am trying to send out docs that show how many classes a member has attended.  I have an Excel spreadsheet with two sheets:
1. showing the calendar.  Each cell contains that date.
2. a sheet showing student name (col.a) and attendance date (col. b)

I have drop down box that will select a student.  I'd like to then use a conditional formatting to color all dates of attendance by looking for the student's name, then pulling an array of all the attendance dates..then checking for the date.

Can someone help me with that formula, please?
0
Comment
Question by:BBlu
  • 3
  • 2
5 Comments
 
LVL 81

Accepted Solution

by:
byundt earned 300 total points
ID: 39898031
I created named ranges
StudentAttendance for the two column list containing student name and attendance date
Students for the names of students
Months for the names of months

I created a calendar in cells B3:H8.

I put data validation dropdowns for student in A2 and month in B1.

I could then use this Conditional Formatting formula in B3:H8:
=COUNTIFS(INDEX(StudentAttendance,,1),$A$2,INDEX(StudentAttendance,,2),B3)

I've attached a sample file so you can see how it works. The calendar part isn't working to my satisfaction, however.
StudentAttendanceQ28377974.xlsx
0
 

Author Comment

by:BBlu
ID: 39898040
Thanks, byundt.  I remember you.  I've been off for a while.  I left the corporate world to pursue my passion in fitness..  But still have a little Finance nerd in me, I must admit. LOL.  

Let me give that a try.
0
 
LVL 81

Assisted Solution

by:byundt
byundt earned 300 total points
ID: 39898043
I've got the calendar to work correctly now.
StudentAttendanceQ28377974x.xlsx
0
 
LVL 81

Expert Comment

by:byundt
ID: 39898044
If you are using Excel 2003, you'll need the Analysis ToolPak for the EOMONTH function used in the calendar. Excel 2007 and later include it automatically.

The COUNTIFS function used in the conditional formatting criteria requires Excel 2007 or later. I can write a SUMPRODUCT equivalent if required for Excel 2003.
0
 

Author Closing Comment

by:BBlu
ID: 39898226
Thanks, byundt.  You saved the day!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now