+ Reply to Thread
Results 1 to 3 of 3

Calculating tonnage of grain stored in a location

  1. #1
    Registered User
    Join Date
    11-21-2021
    Location
    Australia
    MS-Off Ver
    Microsoft Excel for Mac version 16.55
    Posts
    1

    Calculating tonnage of grain stored in a location

    I am a grain grower, and am looking for a way for Excel to track the grain that comes off the paddock and taken either to on-farm storage, or off-farm. We currently have a master list of every truckload of grain that is carted. This list could have hundreds or more entries. Trucks could be collecting the grain straight from the paddock, or from the on-farm storage. It could then be taken either to another on-farm storage, or off-farm. So a source could be a destination and vice-a-versa, and new storage locations are added all the time. We can also have more than one variety of grain stored in the one location. What we need is a summary of the tonnage stored in each location, which can easily be done by calculating the total tonnage at ‘destination’ and subtracting the total tonnage at ‘source’ using SUMIF formulas, but this will not tell us the breakdown of different varieties in the one storage location. We need the summary of grain stored by location and variety to be dynamic (like a pivot table) as the master list of grain carted is updated constantly, and the summary needs to update automatically.

    Is there a way to do this?

    I’ve included a simplified master list and an example of what we need the summary of stored grain to look like.

    Thanks for your help
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Calculating tonnage of grain stored in a location

    see table add row 26, all totals = 0 , every ton that is departed is arrived.
    You have to refresh both pivottables to have the right amount (manually or with VBA).
    In green the same result with the sumproduct-formulas (kind of sumif) equal to column D

    Is this "dynamic" enough ? If varieties, bunkers or paddocks are added, the pivottables adapt, but that table not ... .
    That can be done by VBA (a macro). With a Mac ?

    Otherwise old-fashion sumproduct-formulas and you have to update yourself the 1st column and the headerrow.
    Attached Files Attached Files
    Last edited by bsalv; 11-21-2021 at 04:27 AM.
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  3. #3
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Calculating tonnage of grain stored in a location

    you can choice
    - sheet "settings", with unique-formulas all sources, destinations and varieties are displayed and the one's that aren't in the "summary"-table are red.
    - sheet "summary"
    * if some sources, destinations or varieties aren't in the table, see A1
    * yellow column is with getpivotdate
    * blew column is with sumproduct
    * orange columns is subtotal places of all varieties (with sumproduct)
    * above table in blew is subtotal variety of all places (with sumproduct)
    You can move or sort to get a better order in your rows or columns
    give it a try and decide ..
    Attached Files Attached Files

+ 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. Macro to create new email and send it with attachments stored at a particular location
    By Ash_Maverick in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-21-2016, 12:30 PM
  2. Macro: check today date with start date and open a file in stored location
    By Topa2 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-10-2016, 11:39 AM
  3. split text files stored in some location to multiple files based on a condition
    By GIRISH_KH in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-01-2013, 11:32 AM
  4. [SOLVED] Open a batch file from the location where the worksheet is stored
    By grid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2013, 01:38 PM
  5. Replies: 0
    Last Post: 04-16-2013, 10:27 AM
  6. Replies: 3
    Last Post: 12-28-2012, 08:27 AM
  7. Replies: 1
    Last Post: 09-15-2011, 04:52 AM

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