COUNTIFS Using two criteria

denepoh

New Member
Joined
Mar 15, 2017
Messages
2
[TABLE="width: 75"]
<colgroup><col></colgroup><tbody>[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I'm trying to add up the number of times a gift has been chosen on a certain week number. Here is the table of data I will be using the information from.

[TABLE="width: 227"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Gift[/TD]
[TD]Date[/TD]
[TD]Week[/TD]
[/TR]
[TR]
[TD]Holiday[/TD]
[TD]21/03/2017[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Spa[/TD]
[TD]22/03/2017[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Car[/TD]
[TD]23/03/2017[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Holiday[/TD]
[TD]29/03/2017[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Spa[/TD]
[TD]30/03/2017[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Car[/TD]
[TD]31/03/2017[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Holiday[/TD]
[TD]05/04/2017[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Spa[/TD]
[TD]06/04/2017[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Car[/TD]
[TD]07/04/2017[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]

This is the totals I need to lookup and count the separate gifts depending on which week they were booked.

[TABLE="width: 520"]
<colgroup><col span="5"></colgroup><tbody>[TR]
[TD]Week[/TD]
[TD]Holiday[/TD]
[TD]Spa[/TD]
[TD]Car[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]

TIA
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Is this what you are looking for?

Code:
=COUNTIFS(A2:A10,"Holiday", C2:C10,1)


If so you would just need to set the criteria for your ranges for each row and column of your presentation data.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,919
Messages
6,175,371
Members
452,638
Latest member
Oluwabukunmi

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