the sum of a row based on condition of a dropdown box

  • Thread starter Thread starter AHMED
  • Start date Start date
A

AHMED

how do i sum a row of vallues based on the condition that the text value in a
dropdown box in a row above it. for example

a b a d a d a total-a total-b total-d
1 1 1 1 1 1 1 4 1 2

the letters are a row of drop down boxes whose values can be text. i have
in the drop down boxes types of leave (annual, sick, famil, etc). at the end
i have totals for each kind of leave.
 
take a look at the SUMIF function, I belive it's exactly what you're looking
for.

=SUMIF(A1:D1,"a",A2:D2)
 
Back
Top