Solved

Check to see if student attended class on certain date

Posted on 2014-03-01
5
280 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
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…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

856 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