COUNTIFS not counting

IANWILLZ

New Member
Joined
Sep 12, 2019
Messages
6
Hi
I'm learning about COUNTIFS and I don't understand why this is working in one row and not another.

In my first cell in question My Criteria is TECH (E4) in Ranges A2 to A20 and R(G4) is ranges B2 to B20 :

I'm using =COUNTIFS($A2:$A20,$E4,$B2:$B20,G4) - and it seems to work, it counts 4 occurrences of R

On a different cell I want to count the following criteria BUS (E9) and R (G9)

=COUNTIFS($A2:$A20,$E9,$B2:$B20,G9) and it is not counting the Rs.

Can anyone shed light on this? Be gentle I am a beginner.

Thanks
Ian




OACColour
TECHR
TECHA
TECHGTECH(E4)RAG
TECHR422
TECHA
TECHG
TECHR
TECHRBUS(E9)RAG
BUSA000
BUSR
BUSA
BUSG
BUSR
BUSA
BUSG
BUSR
BUSG
BUSG
BUSA

<tbody>
</tbody>
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
You are welcome. Glad we were able to help.

Note that is not an entirely uncommon issue, especially if the data is coming from the web or other applications. These often have extra spaces of characters that need to be addressed for the data to be cleaned up and for the formulas to work correctly.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,553
Messages
6,114,279
Members
448,562
Latest member
Flashbond

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