Count words in text file

hrexcel246

New Member
Joined
Sep 21, 2009
Messages
18
Similar to a previous request by another user, how would you adjust the following? Trying to find all text that reflects the acronym "AST", whether in upper or lower case, but NOT include words that have 'ast' within other words, such as "past" or "PAST"

=IF(ISERROR(FIND(" ast"),(LOWER($D7632))),"",1)

thank you!!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Similar to a previous request by another user, how would you adjust the following? Trying to find all text that reflects the acronym "AST", whether in upper or lower case, but NOT include words that have 'ast' within other words, such as "past" or "PAST"

=IF(ISERROR(FIND(" ast"),(LOWER($D7632))),"",1)

thank you!!

=ISNUMBER(SEARCH(" ast "," "&$D7632&" "))+0

We get a 1 for a hit, otherwise 0.
 
Upvote 0
Similar to a previous request by another user, how would you adjust the following? Trying to find all text that reflects the acronym "AST", whether in upper or lower case, but NOT include words that have 'ast' within other words, such as "past" or "PAST"

=IF(ISERROR(FIND(" ast"),(LOWER($D7632))),"",1)

thank you!!
Try this...

=COUNT(SEARCH(" ast "," "&$D7632&" "))
 
Upvote 0
Aladin Akyurek said:
Does that mean that you missed post #2? For the record, that works too.
I look forward to meeting you in person at the summit one of these years.

We'll have a blast! ;)
 
Upvote 0

Forum statistics

Threads
1,224,562
Messages
6,179,526
Members
452,923
Latest member
JackiG

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top