+ Reply to Thread
Results 1 to 5 of 5

Help - Excel macro to stock management

  1. #1
    Registered User
    Join Date
    07-14-2013
    Location
    portugal
    MS-Off Ver
    Excel 2010
    Posts
    48

    Help - Excel macro to stock management

    Hello all,

    I need your help

    I have one file to stock management and i cant subtract the stock value

    In the tab demand i have my client demand with the part number, the qty demand and the Stock OK?.

    i want to search in the tab stock if the stock is enouf then put "OK" else put "NOK". when do the search it subtract the stock value.



    example:

    Tab demand range C2 = OK; Tab stock range B2=0
    Tab demand range C3 = OK; Tab stock range B3=1
    Tab demand range C4 = NOK; Tab stock range B4=-2


    Can someone help me?

    stock.JPG
    Demand.JPG

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: Help - Excel macro to stock management

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    07-14-2013
    Location
    portugal
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Help - Excel macro to stock management

    Hello alansidman,

    thanks for your the reply.

    I put the file in attach. can you check if is ok?




    regards,
    Pedro
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Hi !

    No need a code just using an easy VLOOKUP formula for example …

  5. #5
    Registered User
    Join Date
    07-14-2013
    Location
    portugal
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Help - Excel macro to stock management

    Hi,

    thanks for the reply,

    with the VLOOKUP formula i do to have the stock value "OK" or "NOK" according to the stock in the stock tab but what i want it's to subtract the stock value when i do the VLOOKUP like the example bellow



    Tab demand range C2 = OK; Tab stock range B2=0
    Tab demand range C3 = OK; Tab stock range B3=1
    Tab demand range C4 = NOK; Tab stock range B4=-2


    thanks

+ 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: 8
    Last Post: 02-03-2019, 04:24 PM
  2. Stock Management Stage-1
    By maneklalm27 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2017, 07:55 AM
  3. Using excel in stock and work order management
    By abhinavvsagar in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-01-2014, 08:08 AM
  4. Vba code for stock management
    By sattar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2012, 03:36 AM
  5. Excel 2007 : Vba code for stock management
    By sattar in forum Excel General
    Replies: 3
    Last Post: 02-01-2012, 03:33 AM
  6. Stock Management System
    By chr.s in forum Excel General
    Replies: 3
    Last Post: 01-17-2011, 01:52 PM
  7. stock management spreadsheet
    By Lee in forum Excel General
    Replies: 0
    Last Post: 10-05-2005, 09:05 AM

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