+ Reply to Thread
Results 1 to 2 of 2

Automated SUM of a function over a data range?; Requesting Help

  1. #1
    Registered User
    Join Date
    12-24-2012
    Location
    Dayton, OH
    MS-Off Ver
    Excel 2010
    Posts
    5

    Automated SUM of a function over a data range?; Requesting Help

    Attached is a file that I'm using for a research project. The Interactive Regr Tab shows data over a period of time. I'm using a slider to automatically analyze portions of every profile of electrical current. For example: I can select a range of data with the slider and find characteristics like 'Slope', 'Area' under the curve, etc.

    I need help trying to automate the calculation of 'First Moment' in Cell D8. It is a fairly straightforward calculation that I have manually created data for in cells G71:G1384 of the 'Data' tab. The answer for the calculation is a SUM in cell H1384. However, I want to be able to select my data range with my slider and calculate it with a function - not manually calculate this on the 'Data' tab. To do this, it seems like I need to SUM the solution of function over the selected data range. I don't know if this is even possible. Can any of you Excel experts give me a hand with this?

    NOTE: To help you decipher the calculation for First Moment about the y-axis, it is the sum of (x*the area of a sliver under the curve) for the entire curve, f(x). X is the distance from the y-axis. The number .01666 in my equation brings the x-value to the center of the 'sliver' of area. Excel_Data_Experiment.xls

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Automated SUM of a function over a data range?; Requesting Help

    I'm not sure I get this but it seems you want to sum column G over the same range of rows that defines x and y.
    I defined a new named range, z, the same way y was defined but with an offset of 5 instead of 1.
    Then in D8 i just typed =SUM(z).

    By the way, is there a reason the file is in xls format? In your profile it says you run Excel 2010.
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Requesting help with date function
    By Kitkatlv in forum Excel General
    Replies: 2
    Last Post: 11-05-2012, 10:02 PM
  2. Help In Requesting Data
    By pasteis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-03-2012, 01:14 PM
  3. [SOLVED] Message box requesting user input if range is NOT empty?
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-15-2012, 02:45 PM
  4. [SOLVED] Change the tab that you are requesting data from to the same as a cell.
    By frankday in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2012, 09:53 AM
  5. Requesting a simple counting function, pretty urgent (VBA)
    By ssdt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2008, 08:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1