+ Reply to Thread
Results 1 to 5 of 5

calculating individual cells within large ranges

  1. #1
    Registered User
    Join Date
    10-08-2010
    Location
    Oxford, UK
    MS-Off Ver
    Excel 2003
    Posts
    5

    calculating individual cells within large ranges

    Good Afternoon all,

    I am quite new to macro's, but am trying to do a simple task of adding cells from 2 different worksheets into a third sheet.

    So I want Cell B3 of sheet1 added to Cell B4 of Sheet2 and the total to appear in Cell B3 of Sheet 3.

    The code I have got to work is:

    Please Login or Register  to view this content.
    This works, but I need to get this method to work for all cells in a range (add each cell from Sheet1 from B4 to U46 inclusive, and Sheet2 B3 to U45 inclusive, to appear in sheet 3 in the range of B4 to U46).

    Is it possible to do this by a simple peive of code? or will I have to enter each calculation seperately like:

    Please Login or Register  to view this content.
    this seems to work but would take me ages to input all the different cell calculations.

    Any advice would be warmly received.

    Ian.
    Last edited by istanley24; 10-08-2010 at 10:51 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: calculating individual cells within large ranges

    Try this
    Please Login or Register  to view this content.

    Hope this works
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    10-08-2010
    Location
    Oxford, UK
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: calculating individual cells within large ranges

    thanks for that, works fine for column B, but I need it to calculate all the other cells in columns C to U inclusive too.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: calculating individual cells within large ranges

    Sorry missed that bit
    Try this

    Please Login or Register  to view this content.

    Is that better?
    Last edited by Marcol; 10-08-2010 at 10:34 AM. Reason: Line missed in code

  5. #5
    Registered User
    Join Date
    10-08-2010
    Location
    Oxford, UK
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: calculating individual cells within large ranges

    excellent, that is exactly what I am after. cheers for you help.

+ Reply to 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