Hi guys,
Its a bit of tricky question but I could really use some help. Basically I'm using a whole bunch of Array Formulas (CSE function) to look up and count cells that are a listed in an adjacent excel sheet.
I need a function that says:
Count the number of people in excel sheet 'survey data' who had the text "male" in K2:K3193 who also met the following criteria...
Have the same string of text in a column of the 'survey data' sheet as is in cell B1 of this sheet
AND who have a value less than or equal to B4 in column BI of the 'survey data' sheet (these values are referring to dates)
AND who have a value of 0 in column DK of the 'survey data' sheet
Only where all 3 conditions are met do I want it to count the number rows who were male.
I've gotten this far but I think the formula is counting anyone who meets one of the three criteria (not just those who meet all three)
=SUM(('surveydata'!$K$2:$K$3193="male")
*(IF((ISERROR((FIND(B$1,'survey data'!$AA$2:$AA$3193)))),0,1))
*IF('survey data'!$BI$2:$BI$3193<=B$4,1,0))
*IF('survey data'!$DK$2:$DK$3193=0,1,0)
Is it a matter of rearranging the brackets, adding some 'AND' commands or swapping to a different formula (SumIFS?).
FYI- I'm running Excel 2011 (Mac).
Its a bit of tricky question but I could really use some help. Basically I'm using a whole bunch of Array Formulas (CSE function) to look up and count cells that are a listed in an adjacent excel sheet.
I need a function that says:
Count the number of people in excel sheet 'survey data' who had the text "male" in K2:K3193 who also met the following criteria...
Have the same string of text in a column of the 'survey data' sheet as is in cell B1 of this sheet
AND who have a value less than or equal to B4 in column BI of the 'survey data' sheet (these values are referring to dates)
AND who have a value of 0 in column DK of the 'survey data' sheet
Only where all 3 conditions are met do I want it to count the number rows who were male.
I've gotten this far but I think the formula is counting anyone who meets one of the three criteria (not just those who meet all three)
=SUM(('surveydata'!$K$2:$K$3193="male")
*(IF((ISERROR((FIND(B$1,'survey data'!$AA$2:$AA$3193)))),0,1))
*IF('survey data'!$BI$2:$BI$3193<=B$4,1,0))
*IF('survey data'!$DK$2:$DK$3193=0,1,0)
Is it a matter of rearranging the brackets, adding some 'AND' commands or swapping to a different formula (SumIFS?).
FYI- I'm running Excel 2011 (Mac).