Share via

Nesting CountIF and TextBefore

Anonymous
2024-11-21T09:42:51+00:00

Morning all

From the attached doc, how would I ask Excel to count how many times the letter "E" appears in columns B, C etc. and the same for the letter "L". I thought I could use Textbefore and CountIF but I've tried a few times and can't get it to work. Can anybody help please? TIA, Louise

Microsoft 365 and Office | Excel | Other | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

12 answers

Sort by: Most helpful
  1. Anonymous
    2024-11-22T02:39:26+00:00

    I can't get this one to work for some reason, it just displays 0. Don't know why...

    Did this work for you?

    TIA, Louise

    Please, clarify and give more details. Could you show us what is happening with some pictures?

    Thanks

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-11-21T16:56:17+00:00

    Re, '... Can I not nest the TEXTBEFORE function with it in some way?"

    I don’t see the need to do so. Your goal is to count the letters E and L.

    COUNTIF function is enough to make it happen.

    Re, "... Is there any way this can be done without having the letters E and L in separate cells?"

    Yes,

    Please try the following formulas

    =COUNTIFS(B$2:B$6,"L")

    =COUNTIFS(B$2:B$6,"E")

    I hope this helps you

    Regards

    Jeovany

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-11-21T11:50:10+00:00

    Hi and thank you for your response. Is there any way this can be done without having the letters E and L in separate cells? Can I not nest the TEXTBEFORE function with it in some way? Thanks again, Louise

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-11-21T10:31:31+00:00

    If you want to count the exact letters "E or L" then try the formula

    in cell B7**=COUNTIFS(B$2:B$6,$A7)** and copy across

    Regards

    Jeovany

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2024-11-21T10:20:18+00:00

    Hi Louise

    You may try the formula in cell B6 =COUNTIFS(B$2:B$6,"*"&$A7&"*") and copy across.

    As shown in the picture below.

    I hope this helps you,

    Regards

    Jeovany

    Was this answer helpful?

    0 comments No comments