+ Reply to Thread
Results 1 to 2 of 2

Calculate grand total from multiple rows of quantity and price/unit

  1. #1
    Registered User
    Join Date
    07-18-2014
    Location
    Ghent, Belgium
    MS-Off Ver
    2013
    Posts
    1

    Calculate grand total from multiple rows of quantity and price/unit

    Hello everyone,

    I've been working on an automated ordering tool for my workplace, while trying to learn as much as I can for VBA programming (only schooled in the very basics). Something I still have difficulties with though, is successfully implementing loops.

    For this ordering tool, I would like to calculate and present the grand total, starting from a fixed range of two columns (each 10 rows), where one has quantities, and the other has the price/unit. Since I'm not allowed to change the layout of the ordering sheet (we still fax orders...), I can not add a column for the subtotals. Also, not all rows are filled necessarily.

    I had some success with this as a worksheet function: =IF(ISERROR(H30*I30);0;H30*I30)+..., but I would really like to have it as a part of a big VBA function, since colleages might alter/delete the worksheet formula.

    I looked and messed around with For loops, but I can't make it work.

    Can anyone help me with this?

  2. #2
    Forum Contributor
    Join Date
    01-30-2013
    Location
    Wales
    MS-Off Ver
    Excel 2013
    Posts
    231

    Re: Calculate grand total from multiple rows of quantity and price/unit

    If you need to keep the same format how about using either a helper column outside of the print area, or a new column in the print area but set to width zero, hidden.
    Click * below if this answer helped

+ 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. Replies: 0
    Last Post: 04-15-2014, 12:02 PM
  2. Replies: 0
    Last Post: 06-14-2012, 04:42 PM
  3. Quantity * Single unit price + 5%
    By wiggo in forum Excel General
    Replies: 2
    Last Post: 02-19-2010, 05:08 AM
  4. unit * price total
    By willy in forum Excel General
    Replies: 2
    Last Post: 03-28-2006, 05:50 PM
  5. calculate price * quantity = total amount in a row of excel forml.
    By t. ramachandra rao in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-23-2005, 03:50 PM

Tags for this Thread

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