Countif on the user desined condition

Closed
saleem - Mar 9, 2010 at 12:55 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Mar 13, 2010 at 08:22 PM
Hello,

i want to get the total count from the database, based on the user derined value.

NAME REMARK
SALEEM 1 ENTER THE NAME SALEEM
SALEEM 1 COUNT 3
SALEEM 1
KALEEM 1
KALEEM 1

When i type name in the area shown enter the name eg: saleem i should get the total count of the name as 3 and when i type the name KALEEM i should get the result as 2. Could kindly help me on this issue.

Regards

SALEEM

1 response

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Mar 9, 2010 at 09:27 AM
Lets say you data look like this
----- A --------- ### B ------- ### C ----------------- ### D
1 ### NAME - ### REMARK ### -------------------- ###
2 ### SALEEM ### 1 ------ ### ENTER THE NAME ### SALEEM
3 ### SALEEM ### 1 ------ ### COUNT ------------ ###
4 ### SALEEM ### 1 ------ ###
5 ### KALEEM ### 1 ------ ###
6 ### KALEEM ### 1 ------ ###
7 ### HALEEM ### 1 ------ ###
8 ### RAHEEM ### 1 ------ ###
9 ### FAHEEM ### 1 ------ ###


And in D2 is where you are entering the name, and you want count to be on D3, then in D3 write

=COUNTIF(A:A, D2)
0
Dear Sir,

I wanted to count number of 1 entred in front of the name not the names, may be the below given will be clear what i want to get the exact result.

COLM A COLM B COLM-C
DATE VALVE NO RESULT
8-Mar-10 123A 1
8-Mar-10 123B 1 Remakrs 1 = pass
8-Mar-10 123C 0 0 = rejected
9-Mar-10 123D 1
9-Mar-10 123E 1
10-Mar-10 123F 1


USER DATA ENTERING AREA

Enter the date to get the count of valve passed on the date
TOTAL COUNT OF THE VALVES PASSED = ?

if the user enters the date the total count should reflect for that particular date. I oblige not furnishing my requriment. I look forward for your co-operation to resolve my problem.

Regards

Saleem
0
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766 > Saleem
Mar 13, 2010 at 08:22 PM
Do you want count or do you want sum ?


For count the formula that I gave you would work

If you want sum then try this

Lets say in D3 you are entering the date and in D4 you want sum
A:A is the date column that needs to be compared
D3 is the date that use want to compare
C:C is the column that needs to be added up

=SUMIF(A:A,D3,C:C)
0