lovingboth: (Default)
[personal profile] lovingboth
In Excel, how do you count the number of times a particular string appears in a range of cells?

You're allowed, nay encouraged, to use the "help" facility, including the ever helpful paperclip.

(Oh, using your finger and going 'one, two, three..' doesn't count! :) I'm looking for a formula.)

It must be a fairly frequent need and I'm curious as to how many people know or can use the "help" to find out. When I get home, I'll see if the lovely OpenOffice is any better.

(no subject)

Date: 2005-07-14 11:53 am (UTC)
From: [identity profile] drdoug.livejournal.com
Err ... isn't this just:

=COUNTIF(cell-range, "string-to-match")

Or have I missed something?

(no subject)

Date: 2005-07-14 12:00 pm (UTC)
From: [identity profile] purplerabbits.livejournal.com
Yes, that's what I use.

(no subject)

Date: 2005-07-14 12:02 pm (UTC)
From: [personal profile] tempaccount99
Disclaimer: haven't used Excel for about ten years, haven't ever used OpenOffice.

About two minutes with the paperclip in Excel led me to the COUNTIF function, but it sadly doesn't seem to do substring searches, and I can't work out how I'd make it do that. Certainly no obvious command, I guess you'd use an IF as the criteria to the COUNTIF, with a text search for your search string as the inner conditional.
Openoffice also has a COUNTIF, but it supports regular expressions. However, the help was no good at telling me the basic syntax to enter formula, so I gave up after about five minutes.

Profile

lovingboth: (Default)
Ian

July 2025

S M T W T F S
  12345
6 789101112
13141516171819
20212223242526
2728293031  

Most Popular Tags

Active Entries

Style Credit

Expand Cut Tags

No cut tags