Link to home
Start Free TrialLog in
Avatar of exp vg
exp vg

asked on

Access - count non-empty cells across a row

I have a spreadsheet with the following in columns:

A - Name
B - Test 1
C - Test 2
D - Test 3
E - Test 4

Is there a way to create Column F to be the count of how many tests have been completed for that particular person.

A person may have completed any none, or any combination of the 4 tests. For example, if John Doe has completed Test 1 and Test 3, his count would be 2. If Jane Doe has completed Test 2 - 4, her count would be 3. If A. Williams has completed no tests, his count would be zero.

Thank you
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

what are the values under columns test 1 - 4?
do you want to do this in excel or access?
if the values for test taken is "Y",
in the Excel workbook, you can place this formula in Column F, row 2

=COUNTIFS(B2:E2,"=y")

and should get the counts.
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of exp vg
exp vg

ASKER

Thank you