COUNTIFS Question

bennyx_o

New Member
Joined
Apr 22, 2016
Messages
5
Hi Guys,

I'm having an issue with COUNTIFS - I currently have a spreadsheet with data (increases on daily basis, ended up at 50k rows last year) which I'm trying to create a simple report on a separate sheet from. The report has 3 selectable variables - week number, Agent & Product. If all 3 are selected, the formula work fine.

Here's my problem - if one of the 3 selectable variables is blank, I want it to ignore that criteria. For example, the agent field is left empty, I want it to return results based on all agents.

Is this possible with COUNTIFS? I was considering using ISBLANK and creating a formula for each possible combination, but I'm hoping there's an easier way. I also want to stay clear of pivot tables.

Anyone any ideas? I've nevr used SUMPRODUCT, but could this work instead?

Thanks!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
I forgot to include this in my original post. The master data is recorded as below (With 2 columns excluded)

[TABLE="class: grid, width: 700"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Week[/TD]
[TD]Month[/TD]
[TD]Product[/TD]
[TD]Call Attempt[/TD]
[TD]Outcome[/TD]
[TD]Source[/TD]
[TD]Agent[/TD]
[/TR]
[TR]
[TD]02/01/2018[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]Product 1[/TD]
[TD]Call Attempt 1[/TD]
[TD]Outcome 1[/TD]
[TD]Source 1[/TD]
[TD]Agent 1[/TD]
[/TR]
[TR]
[TD]02/01/2018[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]Product 2[/TD]
[TD]Inbound[/TD]
[TD]Outcome 2[/TD]
[TD]Source 2[/TD]
[TD]Agent 2[/TD]
[/TR]
[TR]
[TD]08/01/2018[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]Product 3[/TD]
[TD]Call Attempt 2[/TD]
[TD]Outcome 1[/TD]
[TD]Source 1[/TD]
[TD]Agent 3[/TD]
[/TR]
[TR]
[TD]08/01/2018[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]Product 4[/TD]
[TD]Call Attempt 3[/TD]
[TD]Outcome 3[/TD]
[TD]Source 1[/TD]
[TD]Agent 4[/TD]
[/TR]
</tbody>[/TABLE]

And below is a screenshot of what I'm trying to populate;
LDvDMpe.jpg


Week is a freehand entry and both Agent & Product are dropdown boxes. As above, is it possible to exclude, for example, week number if the cell is empty and just return a count based on Agent & Product?

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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