Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You should have asked
=SUMPRODUCT(--(A1:A10B1:B10),C1:C10) adapt to fit accordingly to your range references -- Regards, Peo Sjoblom "Wendy" wrote in message ... 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 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Change that to
=SUMPRODUCT(--(A1:A10B1:B10),D1:D10) since you want to sum D -- Regards, Peo Sjoblom "Peo Sjoblom" wrote in message ... You should have asked =SUMPRODUCT(--(A1:A10B1:B10),C1:C10) adapt to fit accordingly to your range references -- Regards, Peo Sjoblom "Wendy" wrote in message ... 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 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
A helper column would do it, Try in E1
=IF(A1B1,D1,0) Drage down for the length of your data and sum the resultant column. Mike "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 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
try:
=SUM(IF(A1:A9B1:B9,D1:D9)) Enter with Ctrl+Shift+Enter {} will appear round formula if entered correctly HTH "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 |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=sumproduct(--(A1:a10B1:b10),d1:d10)
"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 |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
or ...
=SUMPRODUCT(--(A1:A9B1:B9),D1:D9) just Entered "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 |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Wendy,
To do this type the following (for rows 1-10, replace as required) =SUMIF(A1:A10,""&B1:B10,D1:D10) when you have typed this instead of typing enter, hold CTRL, SHIFT and press enter. This will put curly brackets round it, and tells excel it is an array formula hope this helps, Cheers Dazza "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 |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Given your ranges in use (change in the actual formula), this should work
=SUMPRODUCT(--(A1:A9B1:B9),--(D1:D9)) I get 5907.71 (only 1st 2 entries have value in column A column B value). "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 |
#10
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
A second way to do it would be to use a helper column in E. At E1 put:
=IF(A1B1,D1,0) fill that formula down the sheet and then put a =SUM(E1:E9) formula down in E10. Might be easier to understand that way, at the expense of using another column. "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 |
#11
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Give this a try:
=SUMPRODUCT(--(A1:A9B1:B9),D1:D9) HTH, Elkar "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 |
#12
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Wendy
This will do the trick: =SUMPRODUCT(--(A1:A9B1:B9),(D1:D9)) HTH Michael M "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 |
#13
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try =SUMPRODUCT(--((A1:A9)(B1:B9)),D1:D9)
Hope this helps, Hutch "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 |
#14
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try:
=sumproduct(--(A1:A10B1:B10), D1:D10) adjust ranges as needed. "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 |
#15
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Something like this, in say E1:
=SUMPRODUCT(--(A1:A10B1:B10),D1:D10) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "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 |
#16
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMPRODUCT(--(A1:A9B1:B9),(D1:D9))
The first part, --(A1:A9B1:B9), generates a series of 1's and 0's, with the 1's where your condition is satisfied. The second part (D1:D9) is the series of values you want conditionally added. Sumproduct multiplies corresponding components of the two series and adds the results. "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 |
#17
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hope this helps:
=SUMPRODUCT(--(A2:A10B2:B10),D2:D10) Adjust to suit, but remember, when making modifications, all the columns have to be the same length when working with SUMPRODUCT. -- RyGuy "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 |
#18
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"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). =sumproduct((D1:D9)*(A1:A9B1:B9)) ----- original posting ----- "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 |
#19
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMPRODUCT(--(A1:A9B1:B9),D1:D9)
Regards, Stefi €žWendy€ ezt Ã*rta: 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 |
#20
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Wendy,
I think the easiest way would be to put =IF(A1B1,D1,"") in helper column E and drag down to the end of your data, and then sum column E. You can then hide column E or use a different helper column way off to the right somewhere or even on a separate sheet if you wish. HTH Martin "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 |
#21
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
one way is to create another column in E and use the following in column E.
=IF(A1B1,D1,0) Your could then sum column E. Tom "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 |
#22
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
With your data starting in cell A1 (adjust formula if needed), I believe this
will work: =SUMPRODUCT(--(A1:A9B1:B9),D1:D9) The function sumproduct multiplies the pairs together and then sums all those products. The first argument evaluates whether the data in A is greater then its partner in B; if so, the result is 1, and if not, the result is 0. The second argument is just the data in D, which then gets multiplied by the 1's and 0's, and then summed. HTH "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 |
#23
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How about:
=SUMPRODUCT(D2:D10,--(A2:A10B2:B10)) e = "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 |
#24
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMPRODUCT(--(A1:A9B1:B9),(D1:D9))
Commit with CTRL SHIFT ENTER HTH, Barb Reinhardt "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 |
#25
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I replied to this a while ago with a longer explanation, but don't see that
post yet. Here's the short version, but I can elaborate if needed. Assuming your data starts in A!, try the following: =SUMPRODUCT(--(A1:A9B1:B9),D1:D9) HTH "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 |
#26
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I got a notification of a response to this thread, but there's nothing here.
Something very odd is going on. "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 |
#27
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The "something very odd" which is going on is that Microsoft's web interface
to the newsgroups is broken. You'll see the messages if you use a newsreader or Google's archives. But as all the people who are asking the questions about this problem are the people who are using the Microsoft web interface, they are not seeing the replies to their questions. :-( -- David Biddulph "Barb Reinhardt" wrote in message ... I got a notification of a response to this thread, but there's nothing here. Something very odd is going on. .... |
#28
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try =SUMPRODUCT(--((A1:A9)(B1:B9)),D1:D9)
I posted this yesterday, but don't see it or any other replies, so I am reposting it. Hope this helps, Hutch "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 |
#29
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Wendy,
I've copied this table into Excel A1 : E10. I'd add a 6th column (E): with this formula: =IF(B2C2,"x","") It will put an 'x' into any cell where ColumnHeadingA is greater than ColumnHeadingB Then I'd put the following total at the foot of ColumnHeadingD: =SUMIF(F2:F10,"x",E2:E10) I don't usually respond, so I hope this makes sense (and works!) Kind regards Amanda "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 |
#30
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#31
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Wendy-
In column E, I created an if statement =IF(A1B1,1,0) in each row that contains data and then at bottom of data in column D, I created an sumif statement =SUMIF(E1:E9,"=1",D1:D9). This seems to do what you want "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 |
#32
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Gee! Will this never end? (no offence to the poster since I assume he can't
see all previous answers although the date of the original post should shed some light) -- Regards, Peo Sjoblom "Darby" wrote in message ... Hi Wendy- In column E, I created an if statement =IF(A1B1,1,0) in each row that contains data and then at bottom of data in column D, I created an sumif statement =SUMIF(E1:E9,"=1",D1:D9). This seems to do what you want "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 |
#33
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try =SUMPRODUCT(--(A1:A9B1:B9)*(D1:D9))
-- John MOS Master Instructor Office 2000, 2002 & 2003 Please reply & rate any replies you get Ice Hockey rules (especially the Wightlink Raiders) "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 |
#34
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hi,
I would use a helper column. in column E, I would put this formula... =IF(A1B1,D1,"") Copy down then sum column E. Regards FSt1 "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 |
#35
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This may not be exactly what you want, but it works: Make a column E and use
the following if then statement =IF(A1B1,D1," ") (Like I said not pretty, but it works!) 6942 292 0.81 5614.84 5614.84 317 0 0.92 292.87 292.87 6207 20374 7.64 47421.48 417 17588 5.84 2435.28 43921 108193 1.01 44525.47 5974 15883 3.11 18579.14 1834 7062 1.79 3283.57 665 733 2.13 1416.76 21855 24149 1.7 37153 5907.71 Hope that helps! "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 |
#36
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The cheating way would be to write an if statement in column
E....=if(A1b1,D1,0). This formula will give you only those cells in Column D if column A is greater then column B. Then you can simply add column E "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 |
#37
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this:
Insert another column (E); this column shall contain the difference between the values in (A) and (B); it is important that you subtract (B) from (A) and not (A) from (B). In the cell where you want to put the desired sum, type: =sumif(E1:E9,"0",D1:D9) In your example, it will yield 5,907.71. Is there a chance that values in (A) and (B) will be equal? If no, this will work. (A) (B) (C) (D) (E) 1. 6,942 292 0.81 5,614.84 =(A1-B1) 2. 317 0 0.92 292.87 =(A2-B2) 3. 6,207 20,374 7.64 47,421.48 =(A3-B3) and so on... 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 "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 |
#38
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
try this
=SUMPRODUCT(--(A1:A9B1:B9),D1:D9) "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 |
#39
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try SUMIF Function it might help
"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 |
#40
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Since the system is down I can't see if you got a response to this one so here it is: =SUM((A1:A9B1:B9)*D1:D9) Press Ctrl+Shift+Enter rather than just Enter or =SUMPRODUCT((A1:A9B1:B9)*D1:D9) -- Cheers, Shane Devenshire "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 |
Reply |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
inserting a row based on a condition. | Excel Worksheet Functions | |||
Copy Row based on a condition | Excel Worksheet Functions | |||
display a range of data when triggered by a specific condition | Excel Worksheet Functions | |||
how 2 Count number of cells that have specific condition format? | Excel Worksheet Functions | |||
Calculation based on a condition | Excel Worksheet Functions |