+ Reply to Thread
Results 1 to 4 of 4

$ Total a Quantity from Lowest to Highest Price

  1. #1
    Forum Contributor
    Join Date
    10-27-2005
    Posts
    177

    $ Total a Quantity from Lowest to Highest Price

    Hello everyone. I am really stumped on this problem and I am not even sure if a macro is needed to solve it. Sure looks like it though.

    Please see attached.

    In sheet Problem 1, there is a Current Stock table and a Sale table. The highlighted cells, J6:J9 will initially be empty and this is what I would like to populate.

    The Total in column J for each Item should be a dollar amount such that it equals the sum of [the lowest price of that item in the Current Stock table times the available quantity at that price]

    Therefore, item A in cell H6 with a quantity of 3 will have a dollar total (2 x $0 + 1 x $1). Since there were only 2 units at $0 each in the current stock table, there is no available stock at this price anymore, while there remains 6 left of A priced at $1.

    Thus, item A in cell H7 with a quantity of 2 will have a dollar total of (2 x $ 1). Now there are only 4 left of item A priced at $1 each in the Current Stock table.

    As such, item A in cell H8 with a quantity of 9 will have a dollar total of (4 x $1 + 2 x $4 + 3 x $5).

    And so on and so forth for the rest of the items.


    In sheet Problem 2, the requirement is similar, but this time, there is a Type condition in the sale, which restricts the pricing of the item at the specified type.



    I hope that made sense. I am having a really hard time figuring out how to do this. Any help/guidance would be very much appreciated.
    Attached Files Attached Files
    Last edited by uberathlete; 06-17-2015 at 06:42 PM.

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: $ Total a Quantity from Lowest to Highest Price

    Hi,

    Probably this is what you need :

    Please Login or Register  to view this content.

    Regards
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Forum Contributor
    Join Date
    10-27-2005
    Posts
    177

    Re: $ Total a Quantity from Lowest to Highest Price

    Holy smokes that is amazing karedog! Thank you so much!

  4. #4
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: $ Total a Quantity from Lowest to Highest Price

    You are welcome uberathlete, thanks for the feedback.


    Regards

+ 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. Calculate grand total from multiple rows of quantity and price/unit
    By Onewell in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2014, 11:00 AM
  2. [SOLVED] Formula Needed that will return a Supliers Lowest Total Price
    By LisaG in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-02-2012, 12:39 PM
  3. [SOLVED] Stock Check - Excel times 'Quantity' against 'Price' to have one total?
    By Faith Defender in forum Excel General
    Replies: 18
    Last Post: 07-08-2012, 01:40 PM
  4. [SOLVED] 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
  5. Summing Total Sales, Based on Quantity & Price
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-28-2005, 11:08 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