+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    03-01-2010
    Location
    Indianapolis
    MS-Off Ver
    Excel 2007
    Posts
    2

    Summing Totals of Quantities

    I am trying to create an excel spreadsheet that will sum up the number of selected items and then generate a total that takes the item, times the price, and gives me a total price.

    For example, if I have a pricing table of:

    Item Price
    Item 1 1000
    Item 2 2000

    In my data list if have

    User 1 Chose item 1
    User 2 Chose Item 2
    User 3 Chose Item 1

    I want to display
    Item 1 has 2 items
    Item 2 has 2 items
    Total cost is 4,000.

    This can be hard-coded, but at this time I do not know what items or users will be selected. I have specified a general example, but I have attached a very specific spreadsheet. My problem is the hard coding in cell F37 and I want to make this a dynamic formula. I am using Excel 2007.
    Attached Files Attached Files

  2. #2
    Forum Moderator Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    5,212

    Re: Summing Totals of Quantities

    Hi Brian, welcome to the forum.

    Your current formula in F37 (multiple VLOOKUP's summed) can be shortened to simply:

    =SUMPRODUCT(E27:E35*F27:F35)

    What do you mean that you want it to be dynamic? Which part were you looking to change?

  3. #3
    Registered User
    Join Date
    03-01-2010
    Location
    Indianapolis
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Summing Totals of Quantities

    When I was originally working on this, i did not have the cost per item displayed in e27:e35. The pricing table is located on the other tab and originally i wanted the formula to pull the prices from looking into the pricing table.

    Displaying the prices alongside the array made it a lot easier to calculate. But we may summerize the list and just show counts of sub categories and then the formula you provided would not work. (for example: New Laptops, New Desktops, Repurposed computers).

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.2.0