Countif

DDT~123

Board Regular
Joined
May 31, 2012
Messages
220
This one should be an easy one for 'ya...

I'm trying to count the number of different types of agents per supervisor. I'd like for the cell to have an "-" if the number is less than "1".

Range B16:B90 = CSR agent's name
Column C = CSR agent's supervisor
Range D16:D90 = TSR agent's name
Column E = TSR agent's supervisor
Range F16:F90 = EW agent's name
Column G = EW agent's supervisor

Range I3:I14 = List of supervisors
Column J,K,L = count of CSR, TSR, and EW agents

I have the following formula which outputs a "0" if the supervisor does not have a certain type of agent under them: =COUNTIF(C16:C90,I3)
The name in cell I3 is "John Smith" which does not have any CSR agents under him. How can I make the cell display a "-" instead of a zero?
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Awesome! I knew it was something simple... I just couldn't get my brain to function this late in the day :) Thank you!
 
Upvote 0
an alternative is to keep your formula and use the custom number format for each cell. Ust this custom number format.
_(* #,##0_);_(* (#,##0);_( "-"??_);_(@_)

this will do the same thing, but keep your formula.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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