![]() |
![]() |
|
|||||||
| 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: Apr 2002
Posts: 2
|
I have a worksheet column composed of the letters B, BM, BW, or X.
The goal is to total all the B, BM, and BW entries. I can to this with the following: =COUNTIF(E2:E17,"B")+COUNTIF(E2:E17,"BM")+COUNTIF(E2:E17,"BW") Is there a way to combine the above calculation with IF or OR functions and the criteria B, BM, BW into just one COUNTIF (E2:E17, ) statement? |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
=COUNTIF(E2:E17,"B*")
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
Wow! That was simple. Thanks.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|