View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Luke M Luke M is offline
external usenet poster
 
Posts: 2,722
Default the sum of a row based on condition of a dropdown box

take a look at the SUMIF function, I belive it's exactly what you're looking
for.

=SUMIF(A1:D1,"a",A2:D2)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"AHMED" wrote:

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.