+ Reply to Thread
Results 1 to 10 of 10

Formula is not calculating inventory balance correctly

  1. #1
    Registered User
    Join Date
    11-01-2009
    Location
    Pennyslvania, USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Formula is not calculating inventory balance correctly

    Below I entered my formula and a small part of my table/spreadsheet. My formula is subtracting everything for the day and putting that total in each day. I need it to subtract and change the balance after each entry.


    =SUMIFS([Quantity],[Expected Date],"<="&[@[Expected Date]],[Product Name],[@[Product Name]],[Movement],"101")+SUMIFS([Quantity],[Expected Date],"<="&[@[Expected Date]],[Product Name],[@[Product Name]],[Movement],"351")+SUMIFS([Quantity],[Expected Date],"<="&[@[Expected Date]],[Product Name],[@[Product Name]],[Movement],"102")+SUMIFS([Quantity],[Expected Date],"<="&[@[Expected Date]],[Product Name],[@[Product Name]],[Movement],"701")+SUMIFS([Quantity],[Expected Date],"<="&[@[Expected Date]],[Product Name],[@[Product Name]],[Movement],"702")+SUMIFS([Quantity],[Expected Date],"<="&[@[Expected Date]],[Product Name],[@[Product Name]],[Movement],"961")+SUMIFS([Quantity],[Expected Date],"<="&[@[Expected Date]],[Product Name],[@[Product Name]],[Movement],"352")


    Expected Date Movement Product Name Qty Balance

    8/30/2016 101 141699 109 109
    9/1/2016 351 141699 -2 105
    9/1/2016 351 141699 -2 105
    9/7/2016 351 141699 -1 104
    9/12/2016 351 141699 -1 83
    9/12/2016 351 141699 -20 83
    9/14/2016 351 141699 -2 78
    9/14/2016 351 141699 -2 78
    9/14/2016 351 141699 -1 78
    9/26/2016 351 141699 -1 77


    http://http://www.mrexcel.com/forum/...correctly.html
    Last edited by bradyman699; 11-28-2016 at 12:40 PM. Reason: Added URL

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Formula is not calculating inventory balance correctly

    Type the opening balance into E1, then this into E2 copied down:

    =E1+D2
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-01-2009
    Location
    Pennyslvania, USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Formula is not calculating inventory balance correctly

    I can not do that. It will mess up my table/spreadsheet

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Formula is not calculating inventory balance correctly

    Quote Originally Posted by bradyman699 View Post
    I can not do that. It will mess up my table/spreadsheet
    How so?

    I suggest that you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    11-01-2009
    Location
    Pennyslvania, USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Formula is not calculating inventory balance correctly

    My formula is subtracting everything for the day and putting that total in each day. I need it to subtract and change the balance after
    each entry.



    I have the table on one product name (F13)
    If you need to see the entire spreadsheet go to product name (F13) and click on the dropdown box and select (all)
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Formula is not calculating inventory balance correctly

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  7. #7
    Registered User
    Join Date
    11-01-2009
    Location
    Pennyslvania, USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Formula is not calculating inventory balance correctly


  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Formula is not calculating inventory balance correctly

    Thank you for the link.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Formula is not calculating inventory balance correctly

    I think you need to explain in a little more detail what exactly it is that you are trying to do. What are your expected outcomes? Why is the simple formula I suggested not possible?

  10. #10
    Registered User
    Join Date
    11-01-2009
    Location
    Pennyslvania, USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Formula is not calculating inventory balance correctly

    I need it to calculate after every entry made not after several entry made on the same day. If you look at my attachment on a previous post. In the inventory availability (K13) column if there is several entries for one day it calculate all the entries and puts the total in for the entire day at each entry.

    I hope this makes sense


    The reason your formula won't work is because I have 288 product names and I think your formula is for just one product name.
    Last edited by bradyman699; 11-28-2016 at 07:26 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. [SOLVED] Formula is not calculating balance in store at date selected
    By Ochimus in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-01-2015, 04:15 AM
  2. [SOLVED] Calculating balance inventory by type of product. Sumif formula?
    By simplyxl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2014, 09:45 AM
  3. [SOLVED] Formula not calculating correctly
    By ratboyab in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-29-2013, 06:35 PM
  4. Formula not calculating correctly
    By mgfuentes in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-09-2012, 01:21 PM
  5. Formula not calculating correctly
    By Whittle82 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2012, 05:54 PM
  6. Replies: 4
    Last Post: 01-02-2011, 04:30 PM
  7. Formula Not Calculating Correctly
    By be965 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-23-2007, 03:30 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