Results 1 to 18 of 18

Ifs and Sums and Nests or something more simple

Threaded View

  1. #1
    Registered User
    Join Date
    04-24-2012
    Location
    Wiltshire, England
    MS-Off Ver
    Office 365
    Posts
    44

    Ifs and Sums and Nests or something more simple

    Hi all - sorry for lots of text, I am struggling to explain this succinctly, but please read on.

    I am trying to find a simple way to calculate the cost of a sale when an item is sold, based upon its purchase price which might vary during the year.
    I have a spreadsheet of sales orders which runs into 15,000 over the last year and I am trying to make something more simple. currently, I have a sale per row; column B is quantity purchased, column C is a running count of the total product purchased (so C6=C5+B6 for example) and column D is the cost of this order.

    On another spreadsheet page (Purchases) I list the product and any variation in price. From other data that populates with how many have been purchased at each price and the idea is to be specific about the cost of the product for the actual sale.

    If sales are more than the total I purchased in order 1 then I need to add my purchase orders 1 & 2 together, but if sales are more than that total then I need to add order 3 and so on. When I get to a total of ordered product that is greater than the total of sold, I can then use the cost of the item in the relevant order to calculate the cost of the sale.

    I have attached a simple example of the query and I am looking to automate the process by way off function to resolve column D

    Any help towards a sensible formula to work that out so I can copy it into every row in the table would be greatly appreciated, thank you.

    regards and thanks for reading

    Cpl Smudge
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] URGENT - how do you do simple sums with cells set to date format
    By Muzza86 in forum Excel General
    Replies: 8
    Last Post: 06-25-2014, 07:03 AM
  2. [SOLVED] Pivot or VLOOKUP or INDEX - simple sums across rows...
    By silky_green in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-13-2013, 01:45 AM
  3. [SOLVED] Too Many "Nests"
    By groundin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-27-2013, 10:45 PM
  4. Too Many Nests
    By imcdonne in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-02-2012, 11:16 AM
  5. Nested IF functions not working for more than 2 nests
    By yousafkhan1976 in forum Excel General
    Replies: 2
    Last Post: 03-14-2011, 12:49 PM
  6. Simple Sums?
    By milly in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-23-2009, 07:30 AM
  7. Posting data from a simple form to a simple database
    By clacka in forum Excel General
    Replies: 0
    Last Post: 01-30-2005, 04:37 PM

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