+ Reply to Thread
Results 1 to 5 of 5

Simple calculation using a macro, help?

  1. #1
    Registered User
    Join Date
    07-30-2013
    Location
    Cardiff, Wales
    MS-Off Ver
    Excel 2000
    Posts
    23

    Simple calculation using a macro, help?

    Hi, I need a macro that multiplys the values in B, D and F, and then divides them by C

    I know this is probably a walk in the park for most of you, but a little help would be ideal!
    Attached Files Attached Files

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Simple calculation using a macro, help?

    Why a macro rather than a simple formula?
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    01-18-2013
    Location
    Prague, Czech rep.
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    138

    Re: Simple calculation using a macro, help?

    hi there,

    here you go

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-30-2013
    Location
    Cardiff, Wales
    MS-Off Ver
    Excel 2000
    Posts
    23

    Re: Simple calculation using a macro, help?

    Thanks SoulPrisoner, this works for the function required, but when I run the macro, it debugs for the line
    Please Login or Register  to view this content.
    Any ideas?
    Last edited by andrew93hughes; 08-29-2013 at 04:54 AM. Reason: typo

  5. #5
    Registered User
    Join Date
    07-30-2013
    Location
    Cardiff, Wales
    MS-Off Ver
    Excel 2000
    Posts
    23

    Re: Simple calculation using a macro, help?

    romperstomper, I really need it to be in macro form

  6. #6
    Forum Contributor
    Join Date
    01-18-2013
    Location
    Prague, Czech rep.
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    138

    Re: Simple calculation using a macro, help?

    well ofc I know where is the problem, cause i counted wrong the loop, u need to leave out the empty cells cause they fail on dividing and i failed at that....its not supposed to be +4 but just +2, so it stops on 224th row

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Simple calculation using a macro, help?

    Please Login or Register  to view this content.

+ 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. simple - if x then x calculation
    By ds0919 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-05-2013, 01:53 PM
  2. Simple Quarterly Calculation
    By ckatzman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2013, 03:44 PM
  3. What should be a simple calculation....
    By mklein in forum Excel General
    Replies: 1
    Last Post: 02-12-2009, 06:25 AM
  4. simple calculation.
    By mangesh in forum Excel General
    Replies: 3
    Last Post: 12-13-2006, 01:20 PM
  5. Simple Calculation
    By Lucifix in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-23-2005, 04:55 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