![]() |
#1
|
|||
|
|||
![]()
Hi!
I have a spreadsheet for the amount of times students practised their instrument and for the help they get from their parents so I have 2 columns per day, one for the amount of time practised and one to indicate if and by whom they were helped. e.g. F = Monday_practiceTime G = Monday_helpedBy H = Tuesday-practiceTime I = Tuesday_helpedBy J = Wednesday_practiceTime K = Wednesday_helpedBy ... I now want to see how many days they practised a week. See I was thinking to count the cells with a number greater than 0. I used COUNTIF: COUNTIF(F2+H2+J2+L2+N2+P2+R2, ">0") But I get an error message saying that the range is invalid. How can I do this right? I use Excel for mac 2008 Thank you! Luc |
#2
|
||||
|
||||
![]()
Perhaps
Code:
=SUMPRODUCT(--(MOD(COLUMN(F2:R2),2)=0),--(F2:R2>0))
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#3
|
|||
|
|||
![]()
thank you for your answer.
I've tried but I still get an error message... |
#4
|
||||
|
||||
![]()
I believe the COUNTIFS function is available in Excel 2008, so something like this should work:
=COUNTIFS(F1:T1,"*practiceTime",F2:T2,">0") We're applying two conditions with this formula. The first condition is that the cell in the header row F1:T1 must contain the word practiceTime. The second condition is that the cells in the data row F2:T2 must contain a value greater than 0. |
#5
|
|||
|
|||
![]()
Thank you, Colin!
Unfortunately I get an error message again, saying that criteria_range1 is invalid. luc |
#6
|
||||
|
||||
![]() Quote:
|
#7
|
||||
|
||||
![]() Quote:
Is it related to the fact you are using XL for MAC ?
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
![]() |
Tags |
countif |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use of MIN and count function together | khokababu | Excel | 0 | 02-22-2012 09:40 AM |
Count If Formula | beb1227 | Excel | 10 | 06-19-2011 11:19 AM |
![]() |
beb1227 | Excel | 4 | 06-15-2011 08:46 AM |
![]() |
zanat0s | Excel | 3 | 06-09-2011 10:53 AM |
How to Count from Different Cells? | Shahzad | Excel | 3 | 06-26-2010 01:06 AM |