Help w/ Excel Formula

nat4bes

New Member
Joined
Sep 23, 2024
Messages
2
Office Version
  1. 365
I have a spreadsheet to track member attendance for each monthly meeting. Column A (A2:A23) contains a list of member names. In columns C thru N are the dates of 12 meetings of this year. Some members may have a status of either "in person", "Teams", or "canceled" for the past 9 months. If the member does not attend a meeting for the corresponding month, the cell is blank. If the meeting is canceled all the members have "canceled" in that column for the month. I need a formula in column O that will calculate the percentage each individual member has attended meetings for the year based on when/what month I open the file.

My current formula is =(COUNTIF(C2:N2, "in person") + COUNTIF(C2:N2, "Teams") + COUNTIF(C2:N2, "Canceled"))/12 but the member who has attended 0 meetings looks like he is at 8% meeting attendance because 1 meeting in the past 9 months was canceled. I also tried =SUM(COUNTIF(C2:N2,{"in person","teams"}))-COUNTIF(C2:N2,"Canceled") but that give that same member is at a negative number instead of 0%.

I would appreciate any help you can give me. Thanks!

NameNotes01-15-202402-12-202403-18-202404-22-202405-20-202406-24-202407-08-202408-19-202409-23-202410-14-202411-11-202412-09-2024% of 2024 attendance
John Doein personin personTeamsCanceledin person
Bart Simpsonin personin personTeamsCanceledin personin personin personin person
Monica GellerTeamsCanceledin person
Frazier Cranein personin personTeamsCanceledin personin personin personin personin person
Murphy BrownCanceled
Jerry Seinfeldin personin personCanceledin personin person


 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Just to ask, if you had the meeting on 10-14-2024, and nobody showed up. How would you recognise that ?

Rob
 
Upvote 0
Book1
ABCDEFGHIJKLMNO
1NameNotes1/15/20242/12/20243/18/20244/22/20245/20/20246/24/20247/8/20248/19/20249/23/202410/14/202411/11/202412/9/2024% of 2024 attendance
2John Doein personin personTeamsCanceledin person50%
3Bart Simpsonin personin personTeamsCanceledin personin personin personin person88%
4Monica GellerTeamsCanceledin person25%
5Frazier Cranein personin personTeamsCanceledin personin personin personin personin person100%
6Murphy BrownCanceled0%
7Jerry Seinfeldin personin personCanceledin personin person50%
Sheet2
Cell Formulas
RangeFormula
O2:O7O2=LET(a,C2:N2, SUM((a="in person")+(a="Teams"))/(SUM(--($C$1:$N$1<=TODAY())) - SUM(--(a="Canceled"))))
 
Upvote 0
You're welcome. I would recommend data validation for the data range (in the example C2:N7), because any typo in spelling "in person", "Teams" or "Canceled" will cause the formula to provide unintended results. For example if you had "in person" with two spaces between "in" and "person", that person would not receive credit for attending that month. You could add a TRIM function to take care of potential additional spaces, but that will only correct for one kind of typo. Data validation will make it less likely to introduce an error (although pasting into a data validated cell will bypass the validation).
 
Upvote 0

Forum statistics

Threads
1,223,929
Messages
6,175,461
Members
452,645
Latest member
Tante

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top