+ Reply to Thread
Results 1 to 4 of 4

Thread: Using Macro to Lookup and Subtract

  1. #1
    Registered User
    Join Date
    07-12-2010
    Location
    Bloomington, USA
    MS-Off Ver
    Excel 2003
    Posts
    20

    Using Macro to Lookup and Subtract

    Hey guys,

    I have been trying to finish up a file and i keep on running into a snag with a vlookup and subtract function.

    What i am trying to do is that my sheet 1 is the order info, sheet 2 is the current inventory, and sheet 3 is the delivery database.

    When my order is ready then i click D in the column H of sheet 1. This transfers the row of the order info to sheet 3(delivery info). While this happens i need the sheet 2 inventory to decrease by the order that i am delivering.

    So basically it needs to lookup the the row in which i pressed "D", find the material name, link it with the sheet 2 material name and then decrease the finished good quantity of that material by the order that i am delivering.

    I hope there is a macro that is possible to do this.
    I already have the macro to transfer the order to the different sheet and i also have a macro that decreases the inventory level but i dont think i have done it right..

    Any Help would be very appreciated, Thanks for your time

    Thanks....
    Attached Files Attached Files
    Last edited by excel199; 07-25-2010 at 11:48 AM.

  2. #2
    Registered User
    Join Date
    07-12-2010
    Location
    Bloomington, USA
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Using Macro to Lookup and Subtract

    Anyone, Please Help.......

  3. #3
    Forum Guru
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2003
    Posts
    1,241

    Re: Using Macro to Lookup and Subtract

    See attached file, I hope it's what you need.

    Regards,
    Antonio
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-12-2010
    Location
    Bloomington, USA
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Using Macro to Lookup and Subtract

    Thanks a ton... this is exactly what i need....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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.2.0