Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
David Billigmeier
 
Posts: n/a
Default Countif function for instances of text string contained

....that formula you have at the bottom of your post should work fine. Is it
not?

--
Regards,
Dave


"Garbunkel" wrote:

Hello,

I have a 2 column worksheet, & am attempting to
get a count of how many rows contain certain text
strings. Example:
269A560-01_39
269A560-01_41 5
269A560-01_42
269A560-01_43
269A560-01_45
269A560-01_46
269A560-01_57

The second column has a count of how many times
the fragment "269A560-01_4" occurs & if I hard code
that fragment into the formula, it works fine:

=COUNTIF(A1:A9,"269A560-01_4"&"*")

What I would like to know, is whether there a way
to reference a cell number instead of hard coding the
text fragment into the formula such that I could replace
the above line with:
=COUNTIF(A1:A9,C25 &"*")

With C25 containing the actual text fragment & the
count of cells in column A that contain it are returned.

Thanks!
--

  #2   Report Post  
Garbunkel
 
Posts: n/a
Default

Thanks!

Apparently I had to close & reopen Excel to see the results (??)

--



"David Billigmeier" wrote:

...that formula you have at the bottom of your post should work fine. Is it
not?

--
Regards,
Dave


"Garbunkel" wrote:

Hello,

I have a 2 column worksheet, & am attempting to
get a count of how many rows contain certain text
strings. Example:
269A560-01_39
269A560-01_41 5
269A560-01_42
269A560-01_43
269A560-01_45
269A560-01_46
269A560-01_57

The second column has a count of how many times
the fragment "269A560-01_4" occurs & if I hard code
that fragment into the formula, it works fine:

=COUNTIF(A1:A9,"269A560-01_4"&"*")

What I would like to know, is whether there a way
to reference a cell number instead of hard coding the
text fragment into the formula such that I could replace
the above line with:
=COUNTIF(A1:A9,C25 &"*")

With C25 containing the actual text fragment & the
count of cells in column A that contain it are returned.

Thanks!
--

  #3   Report Post  
David Billigmeier
 
Posts: n/a
Default

Hmm, you might have automatic calculation turned off. To change, go
Tools-Options-'Calculation' Tab-Select Automatic


--
Regards,
Dave


"Garbunkel" wrote:

Thanks!

Apparently I had to close & reopen Excel to see the results (??)

--



"David Billigmeier" wrote:

...that formula you have at the bottom of your post should work fine. Is it
not?

--
Regards,
Dave


"Garbunkel" wrote:

Hello,

I have a 2 column worksheet, & am attempting to
get a count of how many rows contain certain text
strings. Example:
269A560-01_39
269A560-01_41 5
269A560-01_42
269A560-01_43
269A560-01_45
269A560-01_46
269A560-01_57

The second column has a count of how many times
the fragment "269A560-01_4" occurs & if I hard code
that fragment into the formula, it works fine:

=COUNTIF(A1:A9,"269A560-01_4"&"*")

What I would like to know, is whether there a way
to reference a cell number instead of hard coding the
text fragment into the formula such that I could replace
the above line with:
=COUNTIF(A1:A9,C25 &"*")

With C25 containing the actual text fragment & the
count of cells in column A that contain it are returned.

Thanks!
--

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert numbers to text bellman Excel Discussion (Misc queries) 0 October 4th 05 10:28 PM
Remove last character of text string Grant Excel Worksheet Functions 2 September 29th 05 05:17 PM
text function ToddFisk Excel Worksheet Functions 2 September 9th 05 08:33 PM
Add Function to String Ronbo Excel Worksheet Functions 2 February 22nd 05 05:33 AM
Macro or Function to make text size to suite text Length? lbbss Excel Discussion (Misc queries) 4 December 14th 04 07:53 PM


All times are GMT +1. The time now is 08:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"