View Single Post
  #30   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RaY RaY is offline
external usenet poster
 
Posts: 164
Default Sum based on specific condition

Here's one way
(A) (B) (C) (D) (E)
1 6942 292 0.81 5614.84 =IF(B2C2,E2,"")
2 317 0 0.92 292.87 =IF(B3C3,E3,"")
3 6207 20374 7.64 47421.48 =IF(B4C4,E4,"")
4 417 17588 5.84 2435.28 =IF(B5C5,E5,"")
5 43921 108193 1.01 44525.47 =IF(B6C6,E6,"")
6 5974 15883 3.11 18579.14 =IF(B7C7,E7,"")
7 1834 7062 1.79 3283.57 =IF(B8C8,E8,"")
8 665 733 2.13 1416.76 =IF(B9C9,E9,"")
9 21855 24149 1.7 37153 =IF(B10C10,E10,"")
=SUM(F2:F10)


"Wendy" wrote:

Need help...I am trying to sum only those values in column (D)
whose corresponding value in column (A) is greater than the value in
column (B).

(A) (B) (C) (D)
1. 6,942 292 0.81 5,614.84
2. 317 0 0.92 292.87
3. 6,207 20,374 7.64 47,421.48
4. 417 17,588 5.84 2,435.28
5. 43,921 108,193 1.01 44,525.47
6. 5,974 15,883 3.11 18,579.14
7. 1,834 7,062 1.79 3,283.57
8. 665 733 2.13 1,416.76
9. 21,855 24,149 1.70 37,153.00

Any suggestions? I've been struggling with this for the past few days.


--
Wendy