+ Reply to Thread
Results 1 to 11 of 11

Average inventory on hand

  1. #1
    Registered User
    Join Date
    09-19-2022
    Location
    Lancaster, PA
    MS-Off Ver
    2016
    Posts
    5

    Average inventory on hand

    How do I get the average cost of bats/balls we bought. I have 25 in inventory so average the last cost of 25 or whatever our inventory shows. I would need to use the date as I want the most recent average cost based on the inventory we have.
    I want to get the average cost of the last 25 bats I bought. If we would only have 20 bats on inventory i would want the average of only the last 20 that we bought.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,957

    Re: Average inventory on hand

    The attached solution requires that the items be grouped together, and sorted older on top.
    Attached Files Attached Files
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    09-19-2022
    Location
    Lancaster, PA
    MS-Off Ver
    2016
    Posts
    5

    Re: Average inventory on hand

    Thank you for your reply. This works great except when I have only 5 balls left it shows my average is zero.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,957

    Re: Average inventory on hand

    Here is an amended version that addresses that specific case
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-19-2022
    Location
    Lancaster, PA
    MS-Off Ver
    2016
    Posts
    5

    Re: Average inventory on hand

    Awesome! Thanks so much!

  6. #6
    Registered User
    Join Date
    09-19-2022
    Location
    Lancaster, PA
    MS-Off Ver
    2016
    Posts
    5

    Re: Average inventory on hand

    Is there a way to do this without an Array formula? It really slows my very large workbook.

  7. #7
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Average inventory on hand

    Jadeking:

    You might limit the amount of rows evaluated in this portion of the formula so it does not evaluate the entire column length
    Instead of
    Please Login or Register  to view this content.
    Try something like:
    Please Login or Register  to view this content.
    Could help the speed.

    Pete

  8. #8
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,957

    Re: Average inventory on hand

    Yes - what he said!

  9. #9
    Registered User
    Join Date
    09-19-2022
    Location
    Lancaster, PA
    MS-Off Ver
    2016
    Posts
    5

    Re: Average inventory on hand

    That don't seem to help anything. I have 150 different items and the products purchased is thousands of rows long. Would there be any other solution?

  10. #10
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,957

    Re: Average inventory on hand

    I would look to reduce the data set by:

    1) removing items that have been fully consumed: the amount of the item bought later than their date is greater than the on-hand inventory number, so they can be deleted.
    2) 'grouping' items that are bought consecutively at the same price. Might be worthwhile with low price volatility, not as useful if the prices change all the time.
    3) using separate workbooks for each item - your table could be a power query from a main table, which would allow faster calculations for the item of interest.
    Last edited by Bernie Deitrick; 09-19-2022 at 05:01 PM.

  11. #11
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Average inventory on hand

    Did you try without the array formula acceptance? Just the formula works.
    Last edited by PeteABC123; 09-19-2022 at 05:27 PM.

+ 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. Determine inventory stock on hand
    By Dolarnesia in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-30-2021, 04:11 AM
  2. Days of Inventory on Hand Calculation
    By njsdca in forum Excel General
    Replies: 7
    Last Post: 03-10-2021, 01:55 PM
  3. [SOLVED] Looking for ON HAND inventory formula excluding damaged product
    By fabian_76 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-08-2018, 09:50 PM
  4. Looking for formula for Inventory on Hand
    By fabian_76 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-10-2017, 10:22 AM
  5. [SOLVED] Working out months of inventory on hand
    By TheGrinch1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-30-2017, 04:48 PM
  6. Replies: 6
    Last Post: 07-06-2013, 10:02 PM
  7. [SOLVED] Need remaining average inventory price after partial inventory is sold
    By Akano in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2012, 04:12 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