Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts,

As I am new for excel I don't know how to get count of records on the basis of two values from dropdown in excel.

My excel is

Date 05/04/2016 // This is first dropdown
Time 11:00AM // This is second dropdown

result ...... //here I need count of matching records based on above selected values.

s.n. date time
1 05/04/2016 11:00Am
2 05/04/2016 11:00Am
3 05/04/2016 11:00Am
1 06/04/2016 11:00Am

Then result should be 3

Thanks in advance
mukesh prasad

What I have tried:

I have tried nothing as i am completely unknown about excel.
Posted
Updated 20-Jul-16 2:33am
Comments
CHill60 21-Jun-16 7:11am    
"records"? Are these values on a worksheet or are you linking to a database?
Mukesh Pr@sad 22-Jun-16 1:05am    
values are on the same worksheet

1 solution

Try "CountIf" or "CountIfs" functions.

They count the records (put them in the range for the function) in the that match your drop-down boxes (put these in the criteria).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900