Closed Thread
Results 1 to 4 of 4

Sum a certain number of cells

  1. #1
    Registered User
    Join Date
    01-07-2013
    Location
    Denmark
    MS-Off Ver
    Office 365 ProPlus
    Posts
    18

    Sum a certain number of cells

    Hi all

    I'm working on a spreadsheet where I would like to be able to be able to sum a certain number of cells automatically. E.g. I put in 120 or 100 in my reference cell and Excel then gives me the sum of the top 120 or 100 cells in my revenue column. Is there a way to do this? I've thought about simply naming the range of cells like "top120revenue" and "top100revenue" etc. but besides being static it is also complicated when working with 27 sheets. With a macro I expect it would simply be a matter of changing sheet reference and formula name in the macro once per sheet instead of once per interval per sheet

    Hope someone can help!?
    Last edited by Dennis Foldager; 01-07-2013 at 05:42 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Sum a certain number of cells

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    01-07-2013
    Location
    Denmark
    MS-Off Ver
    Office 365 ProPlus
    Posts
    18

    Re: Sum a certain number of cells

    I wasn't sure if it was a VBA issue or could be solved with a formula so posted it in both forums but solution can be found here:
    http://www.excelforum.com/excel-gene...-new-post.html

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Sum a certain number of cells

    Thank you for the update. However, this is a duplicate post and as such does not comply with Rule 5 of our forum rules.

    Thread Closed.

Closed Thread

Thread Information

Users Browsing this Thread

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

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