Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Formula?

Help!


I want C2 to say 'Male' if B2 has 'M' inputted, but I also want C2 to say 'Female' if B2 has 'F' inputted.


What would be the formula?


🙂

MacBook Air, OS X Yosemite (10.10.5)

Posted on Feb 8, 2016 7:39 AM

Reply
3 replies

Feb 8, 2016 11:34 AM in response to appleman888

Hi appleman,


I take it this is a different "B2" than the one mentioned above.


Here is a sample. Each column (B, C, D) is a separate example. Row 22 is a Footer row, so the first formula below has been used in each column (with "B" set to match the column containing the formula). You have not specified what is to happen if 'Yes' does not constitute a majority of the 'votes' recorded; I've used "alternate response" for this case.

User uploaded file


If Row 22 is defined as a Footer row, and the table has no Header rows:


=IF(COUNTA(B)/COUNTIF(B,"Yes")<2,"Yes","alternate response")


If Row 22 is NOT a Footer row, the formula will need to specify the range of cells to be counted more specificly:


=IF(COUNTA(B1:B21)/COUNTIF(B1:B21,"Yes")<2,"Yes","alternate response")


COUNTA counts the number of cells in the range containing any text; COUNTIF counts only the cells containing text that matches the specified text (Yes).

Both functions ignore empty cells.


Regards,

Barry

Formula?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.