How to set up variable data ranges in nested functions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Trying to set up the following computation in excel.
=Sum(abs(An - Bn)+abs(An+1 - Bn+1)+...+abs(Am - Bm))
where the row range varies from n to m.
 
SUMPRODUCT should provide one way, eg:
=SUMPRODUCT(ABS(A1:A100-B1:B100))
Adapt the ranges to suit ..
 
Max,
Thanks very much! Works great.
Tom

Max said:
SUMPRODUCT should provide one way, eg:
=SUMPRODUCT(ABS(A1:A100-B1:B100))
Adapt the ranges to suit ..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top