Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Excel question – COUNTIF command

Thread Tools
 
Search this Thread
 
Old Apr 22, 2004 | 11:34 AM
  #1  
Brendan Hughes's Avatar
Brendan Hughes
Thread Starter
Scooby Regular
 
Joined: Oct 2000
Posts: 11,314
Likes: 4
From: same time, different place
Question Excel question – COUNTIF command

Got a long list of data (column A), each of which has been attributed a section or subsection number (column B) which may or may not break down as far as 4 levels (1, 1.1, 1.1.1, 1.1.1.1).

Sometimes the data may apply to more than one subsection, so in column C and maybe D there is another one of these numbers.

How can I count how many rows are attributed to each overall SECTION? So for section 1 I’d want to count anything beginning with 1, whether it’s 1, 1.1.3, 1.2.1.4, etc. Is it possible to set up the COUNTIF with some sort of wildcard, like “1*”? Surely not inside the quote marks?

(No need to count 3 columns at once, I'll happily copy it across columns!)

(I’m also aware at present that 1 and 1.1 are recognised as numbers, whereas 1.1.1 etc is recognised as text – but presumably I can manually format the cells to get over that, if need be.)

Thanks as always!

Brendan
Reply
Old Apr 22, 2004 | 12:12 PM
  #2  
BMWhere?'s Avatar
BMWhere?
Scooby Senior
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Jan 2003
Posts: 3,638
Likes: 229
From: Friedrichshafen Germany/Preston UK
Default

Set up a new column (hidden if you want) with the formular.

=LEFT(<ref>,1) (where <ref> is the cell containing the section number!)

This will extract the 1st character i.e. the main heading number.

You can then do a COUNTIF() on this column.

Al.
Reply
Old Apr 22, 2004 | 12:28 PM
  #3  
Brendan Hughes's Avatar
Brendan Hughes
Thread Starter
Scooby Regular
 
Joined: Oct 2000
Posts: 11,314
Likes: 4
From: same time, different place
Default

Wow! My dad's brother's called Robert!

Cheers muchly!
Reply
Old Apr 22, 2004 | 01:13 PM
  #4  
BMWhere?'s Avatar
BMWhere?
Scooby Senior
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Jan 2003
Posts: 3,638
Likes: 229
From: Friedrichshafen Germany/Preston UK
Default

What, you mean it actually worked! I just made it up

Roberts my dad's cousin!
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
Nov 4, 2021 07:12 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
Dec 28, 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
Nov 18, 2015 07:03 AM
Brzoza
Engine Management and ECU Remapping
1
Oct 2, 2015 05:26 PM
the shreksta
Other Marques
26
Oct 1, 2015 02:30 PM




All times are GMT +1. The time now is 07:25 AM.