Numbers formula for counting only weekends and a second criteria
Hi,
I have a spreadsheet that I use to calculate my pay at work. I get paid a premium when I work a weekend shift. I have included a screenshot of the spreadsheet. What I am looking to do is in cell AI7. Count the number of Saturdays or Sundays in C6:AG6 that also have a 1 or a 2 (what shift I am working that day) in C7:AG7. Row 5 and 6 are formatted as dates do the days of the week change automatically when I change the year. I keep getting an error message when I use countif or countifs saying that it can't count dates and numbers. Any help you be greatly appreciated.
Mac Studio (2022)