SOLVED

Find in document working but COUNTIF is not.

Copper Contributor

Hi Community,

 

I am exporting keyword data out of Google Ads into Excel. I am trying to use the countif function to count

the number of occurrences of specific search words like "AI."  =COUNTIF(A4:A437, "ai"). The individual cells

in the range sometimes contain multiple search words like "ai replace photo editor". The data is not clean in

that respect. When I use the search tool in the top right of the screen and type in "ai," it finds every occurrence,

but I can't count and display them in a cell automatically.

When I use the CountIf function the result is always "1".  I've tried COUNTIFS and get the same result.

I've attached some sample data here. Why does it work in "Search" and not in "COUNTIF"?

 

 =COUNTIF(A3:A100, "ai")
Negative keywordKeyword or list

photoshop online free editing

Keyword
how to photograph hats for ecommerceKeyword
blur photo to clear photo websiteKeyword
analyse photo en ligneKeyword
replicate delivery photoKeyword
سایت زیبا سازی عکسKeyword
برنامه ادیت عکس با هوش مصنوعیKeyword
حذف اشیا از عکس آنلاینKeyword
هوش مصنوعی بازسازی عکسKeyword
ai photo blur remover freeKeyword
سایت هوش مصنوعی عکسKeyword
ادیت عکس با هوش مصنوعی انلاینKeyword
ترمیم عکس قدیمی با هوش مصنوعیKeyword
snapedit photo enhancerKeyword
ai replace photo editorKeyword
ai for edit photoKeyword
ai photo editing backgroundKeyword
blur to clear image aiKeyword
restorephotos ioKeyword
ai photo correction freeKeyword
ai edit picKeyword
ai outpaintingKeyword
make pictures clearKeyword
ai photo removerKeyword
unblur pictures online freeKeyword
تحسين صور بالذكاء الاصطناعيKeyword
auto focus photoKeyword
erase object from photo onlineKeyword
remini onlineKeyword
image blur removerKeyword
ai remove text from imageKeyword
clear photo quality onlineKeyword
ai image enhancerKeyword
ai retouchKeyword
photo face cleanKeyword
retouch academy panelKeyword
object removerKeyword
remove object from photo online freeKeyword
ai imageKeyword
remove image from photoKeyword
unblur imageKeyword
editor de imagen onlineKeyword
توضيح الصور اون لاينKeyword
PronunciationKeyword
clear blurred imageKeyword
remove text from imageKeyword
nettoyage photoKeyword
photo clearKeyword
fotor comKeyword
online retouch photoKeyword
photo enhancerKeyword
DiyKeyword
Do-it-yourselfKeyword
LessonKeyword
ToolKeyword
Do It YourselfKeyword
HistoryKeyword
HiringKeyword
JobKeyword
face object removerKeyword
ترمیم عکس قدیمی آنلاین رایگانKeyword
ai remove text from picture online freeKeyword
سایت ادیت عکس با هوش مصنوعیKeyword
ai dress remover websiteKeyword
airbrush ai photoKeyword
imagin iaKeyword
make blurry photo clear online freeKeyword
ai beauty photoKeyword
replicate com photoKeyword
remove blur from image aiKeyword
ai photo text enhancerKeyword
ai bg object removerKeyword
photoeditor aiKeyword
سایت ادیت خودکار عکسKeyword
ai photo recoveryKeyword
make my photo talk freeKeyword
editar cara en fotosKeyword
subir calidad de imagen online gratisKeyword
ai photo face enhancerKeyword
ai photo fixerKeyword
pic cleaner onlineKeyword
ai picture editorKeyword
fix out of focus photoKeyword
image cleaner online freeKeyword
mejorar la calidad de una foto onlineKeyword
سایت fotorKeyword
old photo color restoration online freeKeyword
clear photo online freeKeyword
remove person from photo online freeKeyword
remove text from picture online freeKeyword
beautify photo onlineKeyword
remove blurriness from photosKeyword
mejorar calidad de imagenKeyword
OccupationsKeyword
sites para editar fotos gratisKeyword
clean up picturesKeyword
enhance photosKeyword
6 Replies
best response confirmed by DavidJ2210 (Copper Contributor)
Solution

@DavidJ2210 

You may try

=COUNTIF(A2:A100, "*ai *")

space here is to separate "ai " from ai within some words

Thank you Sergei! The asterisks work beautifully. Problem solved.

While we're at it, I have another question. You can see in the sample data that there are instances of non-Latin script, I think Arabic and Chinese. Can Excel filter out or count data by the script used? I would like the ability to count the number of these instances, filter them out, or completely delete them.

@DavidJ2210 

If you'd like filter them

- apply filter to entire range

- Text filter -> Custom filter -> is greater than "z"

image.png

- to delete select filtered rows, delete rows from right-click menu

image.png

- clear filter

 

@DavidJ2210 

To count not Latin

=COUNTIF(A2:A100, ">z*")

@SergeiBaklan 

 

This is very helpful Sergei. Thank you! I really appreciate it. 

@DavidJ2210 , you are welcome

1 best response

Accepted Solutions
best response confirmed by DavidJ2210 (Copper Contributor)
Solution

@DavidJ2210 

You may try

=COUNTIF(A2:A100, "*ai *")

space here is to separate "ai " from ai within some words

View solution in original post