How to count one column when another column equals something?
Example Count colum B if Column A = Monday:
A B
SUNDAY 5
MONDAY 3
TUESDAY 2
SUNDAY 5
MONDAY 1
TUESDAY 2
Results should be 4.
How to count one column when another column equals something?
Example Count colum B if Column A = Monday:
A B
SUNDAY 5
MONDAY 3
TUESDAY 2
SUNDAY 5
MONDAY 1
TUESDAY 2
Results should be 4.
Try the SUMIF function
with
Col_A containing the day names (Monday, etc), beginning in A1
Col_B containing numeric values associated with the Col_A day names.
Then
C1: Monday
This formula returns the sum of Col_B values where the Col_A value is Monday:
D1: =SUMIF(A1:A100,C1,B1:B100)
Does that help?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks