• Help Using COUNTIF

    Tags:

    Author
    Topic
    #2701854

    Hi there,

    I’m sure this is simple, but I can’t figure it out. Please take a look at this Google Sheet:

    Screenshot-2024-09-06-at-12.19.48 PM

    I’m having trouble with column B. Here’s the formula for B3:

    =COUNTIF('2022'!M:M,"I got ghosted")

    Instead of manually writing “I got ghosted” in the formula, I need this cell to automatically pull that quoted text from A3.

    Ditto for B4: Instead of writing…

    =COUNTIF('2022'!M:M,"I got ignored")

    …I need B4 to automatically pull “I got ignored” from A4.

    Any idea how I can modify the formula?

    Thanks so much!

    • This topic was modified 8 months, 1 week ago by WSJon5.
    • This topic was modified 8 months, 1 week ago by WSJon5.
    • This topic was modified 8 months, 1 week ago by WSJon5.
    • This topic was modified 8 months, 1 week ago by WSJon5.
    • This topic was modified 8 months, 1 week ago by WSJon5.
    • This topic was modified 8 months, 1 week ago by WSJon5.
    • This topic was modified 8 months, 1 week ago by WSJon5.
    Viewing 1 reply thread
    Author
    Replies
    • #2701933

      Just put the cell reference instead of the text. For example, B3 should be =COUNTIF(‘2022’!M:M,A3)

      1 user thanked author for this post.
    • #2701940

      A slight improvement:

      =COUNTIF(‘2022’!M:M,$A3)
      
      This locks it to column A.

      May the Forces of good computing be with you!

      RG

      PowerShell & VBA Rule!
      Computer Specs

      1 user thanked author for this post.
    Viewing 1 reply thread
    Reply To: Help Using COUNTIF

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: