Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Greetings,
I have a list of company names that I need to tally a number for based on the first two letters of the name over a range. For instance how many companies begin with the letters "HI-MF". I have used the formula =COUNTIF(A:A,"HI*") to get the first part but I do not know how to expand this formula over a range of letters. Any assistance would be very much appreciated... Best Regards, |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this
=SUMPRODUCT(--(LEFT(A2:A20,2)="HI"),--(LEFT(A2:A20,2)<="MF")) HTH Bob "Carter" wrote in message ... Greetings, I have a list of company names that I need to tally a number for based on the first two letters of the name over a range. For instance how many companies begin with the letters "HI-MF". I have used the formula =COUNTIF(A:A,"HI*") to get the first part but I do not know how to expand this formula over a range of letters. Any assistance would be very much appreciated... Best Regards, |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Thu, 21 Jan 2010 12:22:15 -0000, "Bob Phillips"
wrote: Try this =SUMPRODUCT(--(LEFT(A2:A20,2)="HI"),--(LEFT(A2:A20,2)<="MF")) HTH Bob Modification to eliminate counting entries like: A2: M =SUMPRODUCT(--(LEFT(rng,2)="HI"),--(LEFT(rng,2)<="MF"),--(LEN(rng)=2)) --ron |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Good point!
Bob "Ron Rosenfeld" wrote in message ... On Thu, 21 Jan 2010 12:22:15 -0000, "Bob Phillips" wrote: Try this =SUMPRODUCT(--(LEFT(A2:A20,2)="HI"),--(LEFT(A2:A20,2)<="MF")) HTH Bob Modification to eliminate counting entries like: A2: M =SUMPRODUCT(--(LEFT(rng,2)="HI"),--(LEFT(rng,2)<="MF"),--(LEN(rng)=2)) --ron |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Both formulas work great! Many thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Counting Ranges | Excel Discussion (Misc queries) | |||
Automatic Letter Counting | Excel Discussion (Misc queries) | |||
Counting numbers with a letter attached in excel | Excel Worksheet Functions | |||
Counting ranges, please help | Excel Worksheet Functions | |||
Letter Counting Function | Excel Worksheet Functions |