Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Sheets COUNTIF / COUNTIFS formulas based on multiple criteria

I'm looking for some expertise with formulas. I've got a raw data source and need to be able to summarise it in a separate sheet based on a number of different variables of both number and text formats. I've tried some COUNTIFS, INDEX and other formulas that I've seen published on this site, but it's just not working the way I need it to.

The column headings are:

Timestamp
HRBP (name)
Date
Area name
Team name
Enquiry Type
Enquiry Summary

The summary data I need is: Total number of Enquiry Type by HRBP by Area between specified date range, where I can enter the value of HRBP, Area, and dates in defined cells, and the 'count' of Enquiry Type will be displayed below (and then I can create graphs/charts).

My logic would be something along the lines of:

COUNT [Enquiry Type] IF ([HRBP = 'x'] AND [AREA = 'y'] AND [Date >='z'] AND [DATE <= 'a'])

Can someone please help get to my end goal? Or does anyone know of an App solution that could create this analysis easily enough - the data is entered via a Google Form at front end.

like image 608
norburm Avatar asked Jul 30 '15 00:07

norburm


Video Answer


1 Answers

I think COUNTIFS is what you're looking for. In my dummy data I used this formula:

=countifs(B:B,"a",C:C,"x",D:D,"y",E:E,">=7/30/2015",E:E,"<=7/31/2015")

It's put in the cell G2 in the image: enter image description here

like image 132
ZygD Avatar answered Oct 11 '22 12:10

ZygD