Solved

Check to see if student attended class on certain date

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

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 80

Assisted Solution

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
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.

762 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

18 Experts available now in Live!

Get 1:1 Help Now