+ Reply to Thread
Results 1 to 2 of 2

Reducing of materials

  1. #1
    Registered User
    Join Date
    05-29-2016
    Location
    Kanjiza
    MS-Off Ver
    MS Office 2013
    Posts
    1

    Question Reducing of materials

    Dear,

    Can someone help with good elegant excel formula which can reduce total stock for specific material in unsorted list where materials are being repeated in unsorted way so stock will be reduced for that value and for all last values for that material, e.g.:

    (3 columns: 1. materials: A, B, C...; 2. values; 3. result )

    A 30 total stock for material A - 30 = ?
    B 30 total stock for material B - 30 = ?
    C 60 total stock for material C - 60
    D 50 total stock for material D - 50
    A 10 total stock for material A - 10 - 30 (30 as first value for mat.A)
    B 20 total stock for material B - 20 - 30
    C 50 total stock for material C - 50 - 60
    A 40 total stock for material A - 40 - 10 - 30
    B 20 total stock for material B - 20 - 20 - 30
    .....
    ........
    ...........
    For example for mat. 1182929 total stock need to be reduced for every value for that material.
    Total is 5973 , but need to be reduced for every qty of mat. 1182929

    Thanks in advance,

    Regards,

    C.
    Attached Images Attached Images
    Last edited by Coach86; 05-29-2016 at 05:55 PM. Reason: attachment

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Reducing of materials

    The attached macro will run in a workbook with a sheet named "sheet1" and col A as CODE, col B as IN qty , col C as OUT qty col D as balance (what you requested) and col E usage flag.

    No prior cleaning code has been inserted. It could be attached after your approval of the code

    The main idea is that for every code it starts at the beg and adds or substract qty from the balance until it reaches the end. It flags the row as it calculates the balance so it wont be taken into account by the loop.


    Please Login or Register  to view this content.

+ 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] Count unique materials per day
    By Villalobos in forum Excel General
    Replies: 2
    Last Post: 05-20-2016, 04:33 PM
  2. Online learning materials
    By KELLIS in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-07-2012, 01:59 PM
  3. Help with Designing a Bill of Materials!
    By blakewalker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2012, 11:52 AM
  4. need to calculate materials
    By chrisRosco in forum Excel General
    Replies: 2
    Last Post: 06-27-2011, 03:32 PM
  5. Transferring by materials
    By tofimoon4 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-11-2010, 08:09 AM
  6. Bill of Materials
    By tonyhindmarsh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-19-2007, 05:37 AM
  7. bill of materials
    By stevekirk in forum Excel General
    Replies: 7
    Last Post: 12-10-2006, 05:12 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