Count instances in column if corresponding cell in record matches a value

angeloudaki

New Member
Joined
Jul 7, 2015
Messages
46
:confused:
I am a little overwhelmed with all the info out there :( I am sure there is a simple solution to this but I can't find it...

I want to count the number of times a value appears in a column *if* a cell in another column for the record (row) is a specific value. I already know about "=countif(C:C,"UA") part but I need to exclude instances where row in column A is anything other than "15/16"; for example:


A
B
C
D
E
COURSE1
COURSE2
Day1
Day2
Day3
14/15
15/16
UA
15/16
15/16
15/16
14/15UA
UA
15/16
15/16
UA
UA
NA
15/16
UA
14/15
15/16
15/16
14/15
15/16
15/16
NR
NR
15/16
15/16
Result >
UA in 15/16
for course1
1
1
2

<tbody>
</tbody>
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Is the value in A a date, or just text with a slash in it? If it's text with a slash, try:

=COUNTIFS(C:C,"UA",A:A,"15/16")
 
Upvote 0

Forum statistics

Threads
1,216,063
Messages
6,128,552
Members
449,458
Latest member
gillmit

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