![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 31
|
Hi
My database has one of its column that looks like this A M65-M45 2M65-M45 M45-2M65 I want a formula that calculates the number of times 2M65 occured and another one to calculate the number of times M65 occures. Thanks in advance |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Posts: 175
|
something like:
{=count(if(or(left(A:A,4)="2M65",right(A:A,4)="2M65"))} it's an array formula, so do Ctrl-Shft-Entr to enter it.
__________________
Regards, Mike. |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
|
If your values can only occur once per cell (ie a value of 2M65-2m65 if possilbe, counts as 1), you could use the wildcard charater asterick in a countif, such as
=COUNTIF($A$1:$A$3,"*2m65*") and =COUNTIF($A$1:$A$3,"*m65*") |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
what's this got to do with Formula 1 ?
I propose this board delete this user for getting me excited for no apparent reason |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|