+ Reply to Thread
Results 1 to 13 of 13

Help with cell formula - Demand planning

  1. #1
    Registered User
    Join Date
    05-22-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Help with cell formula - Demand planning

    Hi all
    I have the attached excel sheet, and Im trying to work out the sum for cell F11
    Cells D2 to D7 contain the number of each device I have in stock, in cells F2 to F7 I have the demand requirement for each of the line items
    In cells D11 to D16 I have the number of widgets that need to go into each item
    In cell E11 I have a manually enter number that I have in stock
    In Cell F11 I want it to show a number that I would need to produce

    In the attached example the calculation I have is
    =SUM(D2-F2)+(D3-F3)+(D4-F4)+(D5-F5)+(D6-F6)+(D7-F7)
    Giving an answer of 150

    But I need to have an answer of 0 as I already have enough devices in stock and I also have the parts in stock to make the demand

    This has been frustrating me for a few days so any help you can give would be greatly appreciated

    Cheers
    Attached Files Attached Files
    Last edited by FDibbins; 01-26-2014 at 04:29 PM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Cell formular

    you could just add an IF

    If( the quantity required =< quantity in stock , 0, formula , depends on what you want to show )

    IF( (D2-F2)+(D3-F3)+(D4-F4)+(D5-F5)+(D6-F6)+(D7-F7) <= E11, 0, "what to put if not enough in stock")

    you also dont need the sum
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    05-22-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Cell formular

    Thank you for the reply
    Ive tried to enter that into the cell but it just shows the calculation, but doesn't actually do anything
    Could you please add it to the test I added previously, so I can see it working

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Cell formular

    =IF((D2-F2)+(D3-F3)+(D4-F4)+(D5-F5)+(D6-F6)+(D7-F7)<=E11,0, "NOT enough in stock")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-22-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Cell formular

    Thanks that works
    Final Question
    In Cell F9 how do I change the calculation to show a neg number if I have excess stock - re thinking the answer I think it should be -300 so that it shows 540 as available in cell H9

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Cell formular

    =MAX(0,SUM(D2:D7)-SUM(F2:F7)-E11)

    Try this formula
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Cell formular

    i would suggest to comply with the rules - you modify your title
    1. Use concise, accurate thread titles. Your post title should describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change the title of the thread, click EDIT on the original post, then click the Go Advanced button, then change the title. If two or more days have passed, the EDIT button will not appear, and you need to ask a moderator to change the title.

  8. #8
    Registered User
    Join Date
    05-22-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Cell formular

    Sorry that dosnt seem to work
    In the test example I have given I need to cell to show -300, so that cell H9 adds cell E9 (240) - F9 + G9 to give an answer 540

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Cell formular

    you dont have any values in row 9

    how do you get to 540

    you have 240 in E11
    the formula
    (D2-F2)+(D3-F3)+(D4-F4)+(D5-F5)+(D6-F6)+(D7-F7)
    makes 150
    so what do you need to do , when there is not enough quantity

  10. #10
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Cell formular

    =MAX(0,SUM(D2:D7)-SUM(F2:F7)-E11)
    Is an alternative formula for
    =IF((D2-F2)+(D3-F3)+(D4-F4)+(D5-F5)+(D6-F6)+(D7-F7)<=E11,0, "NOT enough in stock")
    And not the answer for question #5

  11. #11
    Registered User
    Join Date
    05-22-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Help with cell formula - Demand planning

    Hi all
    I have the attached excel sheet, and Im trying to work out the sum for cell F11
    Cells D2 to D7 contain the number of each device I have in stock, in cells F2 to F7 I have the demand requirement for each of the line items
    In cells D11 to D16 I have the number of widgets that need to go into each item
    In cell E11 I have a manually enter number that I have in stock
    In Cell F11 I want it to show a number that I would need to produce

    In the attached example the calculation I have is
    =SUM(D2-F2)+(D3-F3)+(D4-F4)+(D5-F5)+(D6-F6)+(D7-F7)
    Giving an answer of 150

    But I need to have an answer of 0 as I already have enough devices in stock and I also have the parts in stock to make the demand

    This has been frustrating me for a few days so any help you can give would be greatly appreciated

    Cheers
    Attached Files Attached Files

  12. #12
    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,938

    Re: Help with cell formula - Demand planning

    1st I would suggest that you remove all of thise merged cells/columns, merging causes more problems than anything else with formulas

    2nd, you can shorten that formula to this...
    =SUMPRODUCT((D2:D7)-(F2:F7))

    And then, if you wAnt to show 0 if the qty on hand is greater, then something like this...

    =IF(SUMPRODUCT((D2:D7)-(F2:F7))-E11<0,0,SUMPRODUCT((D2:D7)-(F2:F7))-E11)
    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

  13. #13
    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,938

    Re: Cell formular

    Squash, please do not keep posting duplicate threads. I have merged these 2, and closed the other 1. Please continue on this thread

+ 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] Replacing a date formular result with another formular
    By stpeter in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-06-2013, 06:27 PM
  2. How to enter % formular into a cell
    By LEN WATTS in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 05-03-2013, 05:49 AM
  3. Replies: 2
    Last Post: 02-23-2013, 06:54 AM
  4. can I lock just the formular in a cell
    By pcconfused in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-10-2006, 09:10 PM
  5. Cell Formular
    By Ayo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-19-2005, 12:05 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