Count of multiple criteria

AliG999

New Member
Joined
Nov 6, 2017
Messages
20
I hope you can help

I am running out of time and I am trying to run a formula which provides a count based on 2 types of criteria Year (Column A) & Type (Column S - which is a multiple pick list option)

I have tried

=COUNTIFS('SALES'!A2:A100,2012,'SALES'!S2:S100,"*Family*")
=SUMIFS('SALES'!A2:S100, 'SALES'!A2:A100,2012,'SALES'!S2:S100,"Family")

Both are returning a Value error. I know this will be something simplistic that I'm missing out so any help gratefully appreciated!

Thanks in advance!

Ali
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Re: Count of multiple criteria - Urgent

Do you have any #VALUE errors in either of those columns?
 
Upvote 0
Re: Count of multiple criteria - Urgent

can u plz show the table. for better understanding
 
Upvote 0
Re: Count of multiple criteria - Urgent

=COUNTIFS('SALES'!A2:A100,2012,'SALES'!S2:S100,"*Family*")

should succeed unless you have errors in every cell.

=SUMIFS('SALES'!A2:S100, 'SALES'!A2:A100,2012,'SALES'!S2:S100,"Family")

The bolded marix range is not allowed here. The range to sum must have the same shape as the ranges which are evaluated against some criteria.
 
Upvote 0
Re: Count of multiple criteria - Urgent

There's no value error in either column as both have data in them in all cells in the range. I know that I have 15 rows from 2012 - 2 of which contain 'Family' in the Type column.

Hence why I'm stumped :(
 
Upvote 0
Re: Count of multiple criteria - Urgent

Unfortunately I can as the data is on a stand alone pc and I'm going from 1 desk to another. It looks similar to below:

COLUMN A COLUMN B COLUMN C ... COLUMN S
Year Area Discount Type

2012 Dublin Yes/No Family, Colleague, Damaged etc

Not sure if that helps?

Ali
 
Upvote 0
Re: Count of multiple criteria - Urgent

=COUNTIFS('SALES'!A2:A100,2012,'SALES'!S2:S100,"*Family*")

should succeed unless you have errors in every cell.

=SUMIFS('SALES'!A2:S100, 'SALES'!A2:A100,2012,'SALES'!S2:S100,"Family")

The bolded marix range is not allowed here. The range to sum must have the same shape as the ranges which are evaluated against some criteria.

Thanks Aladin I will bear that in mind

The fact that the cell I am referencing for 2012 is a drop down & therefore not a constant affect matters? If so how do I overcome this?

Thanks

Ali
 
Upvote 0
Re: Count of multiple criteria - Urgent

Got it to work thank you using the CountIfs formula & changing the reference cell to one that provided a unique year number.

Many Thanks

Ali
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,185
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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