Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COUNT BASED ON MULTIPLE CRITERIA

Status
Not open for further replies.

dr772

Technical User
Nov 17, 2005
24
US
I have a spreadsheet(sample)

date unit name reason day eve night
2/8 4 Monti smith self float OT
2/9 4 Monti jones self OT
2/9 4 Monti smith self OT
2/9 2DSU doe OT self

I want to count shifts used (day eve and night)for a particular unit during a particular data range.
i.e. 4 Monti from 2/8/ thru 2/11.
I tried
count(if(a2:a10<=value("2/8/2007"))*(a2:a10>=value("2/11/2007"))*(b2:b10=data!a27)*(e2:g:10<>""))
data!a27 represents 4 Monti
my answer should be 7
 
Have a search on this forum for SUMPRODUCT

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Thank you for the direction, I found one of your replies that helped. Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top