+ Reply to Thread
Results 1 to 6 of 6

sum of cells where row number is a variable

  1. #1
    Registered User
    Join Date
    02-21-2013
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    sum of cells where row number is a variable

    Hi,

    In my scenario I have a project number then a lot of figures associated. I'm using a macro to find my chosen project number and from there I want to sum certain cells on that row.

    Please Login or Register  to view this content.
    I get the row number but I've tried different approaches to get a sum of the cells I need.

    Where am I going wrong??

    Thanks, Neil

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: sum of cells where row number is a variable

    Try:

    Please Login or Register  to view this content.
    and so on.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-21-2013
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: sum of cells where row number is a variable

    Hi,

    Thanks for replying.

    Please Login or Register  to view this content.
    When I run the macro I get a compiler error that reports Sum as "Sub or Function not defined". Sum is a standard function and Support is already defined. Any pointers?

  4. #4
    Registered User
    Join Date
    02-21-2013
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: sum of cells where row number is a variable

    Hi,

    Thanks for replying.

    Please Login or Register  to view this content.
    When I run the macro I get a compiler error that reports Sum as "Sub or Function not defined". Sum is a standard function and Support is already defined. Any pointers?

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: sum of cells where row number is a variable

    Try

    Application.Sum(......

  6. #6
    Registered User
    Join Date
    02-21-2013
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: sum of cells where row number is a variable

    Bing....thank you Pete and Jonmo, your help was great.

    Neil

+ 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. Summing a variable number of cells and parts of cells
    By nickyboy99 in forum Excel General
    Replies: 2
    Last Post: 03-18-2014, 12:54 PM
  2. [SOLVED] Using a variable number of cells in SUM function
    By lucasar in forum Excel General
    Replies: 7
    Last Post: 03-14-2014, 04:14 PM
  3. [SOLVED] Need help with summing a variable number of cells
    By loolala in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-02-2013, 07:56 PM
  4. Concatenating a variable number of cells
    By speedbirdab in forum Excel General
    Replies: 1
    Last Post: 01-11-2012, 07:53 AM
  5. Sum a variable number of cells
    By lhmome in forum Excel General
    Replies: 11
    Last Post: 05-02-2009, 02:31 AM

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