Mark Wood
asked on
Excel Help with a formula
I have a sheet that I need to do some counts on based on some text values.
I can count this way - =COUNTIF(B8:B12,"=n-****") . And I can count this way - =COUNTIF(E8:E12,"=p")+COUN TIF(E8:E12 ,"=t")+COU NTIF(E8:E1 2,"=e").
What I need to do is have something like this - IF(B8:B12,"=n-****")=COUNT IF(E8:E12, "=p")+COUN TIF(E8:E12 ,"=t")+COU NTIF(E8:E1 2,"=e")
Any help would be appreciated.
I can count this way - =COUNTIF(B8:B12,"=n-****")
What I need to do is have something like this - IF(B8:B12,"=n-****")=COUNT
Any help would be appreciated.
ASKER
the n-**** is the id number
p = present
t = tardy
e = excused
so if the usersID = n-**** then count the cells that have "p" "t" & "e" in them
p = present
t = tardy
e = excused
so if the usersID = n-**** then count the cells that have "p" "t" & "e" in them
ASKER
Here is a copy of the file
Church-Attendee-List-Plus---EE.xlsx
Church-Attendee-List-Plus---EE.xlsx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can do this by one formula by this..
=SUMPRODUCT((LEFT($B8:$B14 ,1)="N")*( (D8:D14="p ")+(D8:D14 ="t")+(D8: D14="e")))
This will give you the same results about what you are looking for...
Saurabh...
=SUMPRODUCT((LEFT($B8:$B14
This will give you the same results about what you are looking for...
Saurabh...
You could also use this formula to give a combined count
=SUM(COUNTIFS($B8:$B14,"n- *",D8:D14, {"p","t"," e"}))
regards, barry
Note: using "****" doesn't do anything different from using a single "*" because the * wildcard denotes any number of characters (even zero) anyway - if you specifically want to count instances which have "n-" followed by four characters you would use ? to denote a single character, e.g. "n-????"
=SUM(COUNTIFS($B8:$B14,"n-
regards, barry
Note: using "****" doesn't do anything different from using a single "*" because the * wildcard denotes any number of characters (even zero) anyway - if you specifically want to count instances which have "n-" followed by four characters you would use ? to denote a single character, e.g. "n-????"
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Do you have a sample excel can upload and indicate your issue accordingly?