CountIfs with multiple conditions

foxtrapperscott

New Member
Joined
Oct 4, 2008
Messages
31
I am trying to count the number of a particular model number that is at a specific location. The data that I am pulling from has some models that start with the model number, but some have an extension on the end. For example "E50" or "E50 T4". I am wanting to count all units at that the specified location that starts with "E50" including the ones with the extension "T4" if at that location. The following is a sample:

Data
model location
E50 01 01 02 03 04 05 06
E50 03 WECO BONV BOF BOT BOR VEC
E50 T4 03 Model Group
E50 T4 03 E50 (Results) 1 0 4 0 4 3
E50 T4 03
E50 T4 05
E50 T4 05
E50 T4 05
E50 T4 05
E50 T4 06
E50 T4 06
E50 T4 06


Thank you for your help!
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Tell me if these work for you:
For just checking for starting with E50 = COUNTIFS(A3:A14,"E50*",B3:B14,1) where A=Model column and B=Location column
For checking starts with E50 and has T4 = COUNTIFS(A3:A14,"E50 T4",B3:B14,1) where A=Model column and B=Location column

Please not the "1" at the end of each formula is for the location; so for example if you wanted to count for location 5, you would simply change that 1 to a 5.
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,226
Members
452,620
Latest member
dsubash

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top