+ Reply to Thread
Results 1 to 7 of 7

Displacement formula

  1. #1
    Registered User
    Join Date
    11-14-2013
    Location
    Sacramento
    MS-Off Ver
    Excel 2010
    Posts
    42

    Displacement formula

    Hello,

    I am having trouble trying to find a way to calculate the displacement for two columns.

    What formula can I use to calculate the "Qty Displacement" and "Recycled Displaced"

    Qty Displacement is basically if "Qty Used" is 10, and "Qty Recycled" is 2, I can only use two "qty recycled" since only two are available. If more are available, the max is what "qty used" states.

    Recycled displaced works basically the other way.

    Please help me if you guys can. I appreciate it.

    Thank you!

    Capture1.PNG

  2. #2
    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,945

    Re: Displacement formula

    Please upload a sample of your workbook, not a picture of your data.
    Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff)

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    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

  3. #3
    Registered User
    Join Date
    11-14-2013
    Location
    Sacramento
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Displacement formula

    thank you for your response. Here is the attachment. I have over a few hundred thousand rows so I need a formula that I can just drag down.
    Attached Files Attached Files

  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,945

    Re: Displacement formula

    Thanks

    D3=MIN(B3,-C3)
    E3=IF(D3=B3,"",B3-D3)

    Both copied down

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Displacement formula

    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    11-14-2013
    Location
    Sacramento
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Displacement formula

    Thanks man you're awesome!!

  7. #7
    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,945

    Re: Displacement formula

    Happy to help and thanks for the feedback

    I have closed your other thread (for future reference, let us know if you have duplicate threads - and preferably, dont post duplicates)

+ 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. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM
  3. cell range displacement
    By nikoleman in forum Excel General
    Replies: 11
    Last Post: 02-15-2010, 06:11 PM
  4. Replies: 3
    Last Post: 11-28-2005, 05:00 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