Solved

Check to see if student attended class on certain date

Posted on 2014-03-01
5
282 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This article describes a serious pitfall that can happen when deleting shapes using VBA.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

617 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