How to subtract a series from another with summing

laut

New Member
Joined
Feb 4, 2013
Messages
3
Here is a stumper, at least it has stumped me this far, below in E2 is the formula:

=((SUM(B2:B6)/COUNTA(A2:A6))
(SUM(A2:A6)/COUNTA(A2:A6)))/((SQRT((1/(COUNTA(A2:A6)-1))*((SUM(D2:D6))(((SUM(B2:B6)-SUM(A2:A6))^2)/COUNTA(B2:B6)))))/(SQRT(COUNTA(B2:B6))))

I can't figure out how to replace the "SUM(D2:D6)" part of that formula so that I can completely get rid of column C and D. The bounty is my appreciation and my respect for your Excel skills. Thanks in advance.


Capture.PNG
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Welcome to the board..

Your post doesn't really make sense, the formula you posted is not valid.
It has a coule instances of )( which is invalid syntax, I presume it must be )*( or something..
Can you repost a complete formula that actually compiles in your sheet?

=((SUM(B2:B6)/COUNTA(A2:A6))??(SUM(A2:A6)/COUNTA(A2:A6)))/((SQRT((1/(COUNTA(A2:A6)-1))*((SUM(D2:D6))??(((SUM(B2:B6)-SUM(A2:A6))^2)/COUNTA(B2:B6)))))/(SQRT(COUNTA(B2:B6))))


Also try using the Excel Jeanie to post a more useable representation of your data.
See my signature for a link to the Jeanie.
 
Upvote 0
Sorry about that, try this:

=((SUM(B2:B6)/COUNTA(A2:A6))-(SUM(A2:A6)/COUNTA(A2:A6)))/((SQRT((1/(COUNTA(A2:A6)-1))*((SUM(D2:D6))-(((SUM(B2:B6)-SUM(A2:A6))^2)/COUNTA(B2:B6)))))/(SQRT(COUNTA(B2:B6))))

Welcome to the board..

Your post doesn't really make sense, the formula you posted is not valid.
It has a coule instances of )( which is invalid syntax, I presume it must be )*( or something..
Can you repost a complete formula that actually compiles in your sheet?

=((SUM(B2:B6)/COUNTA(A2:A6))??(SUM(A2:A6)/COUNTA(A2:A6)))/((SQRT((1/(COUNTA(A2:A6)-1))*((SUM(D2:D6))??(((SUM(B2:B6)-SUM(A2:A6))^2)/COUNTA(B2:B6)))))/(SQRT(COUNTA(B2:B6))))


Also try using the Excel Jeanie to post a more useable representation of your data.
See my signature for a link to the Jeanie.
 
Upvote 0
@NBVC
It doesn't work unfortunately, the formulas give two different answers.

Original:

=((SUM(B2:B6)/COUNTA(A2:A6))-(SUM(A2:A6)/COUNTA(A2:A6)))/((SQRT((1/(COUNTA(A2:A6)-1))*((SUM(D2:D6))-(((SUM(B2:B6)-SUM(A2:A6))^2)/COUNTA(B2:B6)))))/(SQRT(COUNTA(B2:B6))))

=6.532


Your suggested modification:
=((SUM(B2:B6)/COUNTA(A2:A6))-(SUM(A2:A6)/COUNTA(A2:A6)))/((SQRT((1/(COUNTA(A2:A6)-1))*((SUMPRODUCT((B2:B6-A2:A6)^2)))-(((SUM(B2:B6)-SUM(A2:A6))^2)/COUNTA(B2:B6)))))/(SQRT(COUNTA(B2:B6)))

= 0.4


Have you tried the replacement I suggested? Does it work?
 
Upvote 0
What are you trying to do? In words, not with a formula? It looks like the coefficient of correlation or something similar, though there are so many parenthesis that I can't tell if it is correct or not! {grin}


SUM(B)/COUNTA(A)-SUM(A)/COUNTA(A) can be reduced to (SUM(B)-SUM(A))/COUNTA(A)
Sorry about that, try this:

=((SUM(B2:B6)/COUNTA(A2:A6))-(SUM(A2:A6)/COUNTA(A2:A6)))/((SQRT((1/(COUNTA(A2:A6)-1))*((SUM(D2:D6))-(((SUM(B2:B6)-SUM(A2:A6))^2)/COUNTA(B2:B6)))))/(SQRT(COUNTA(B2:B6))))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top