+ Reply to Thread
Results 1 to 8 of 8

How to create Add/Subtract VBA Code with Vlookup ?

  1. #1
    Registered User
    Join Date
    11-15-2016
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    17

    Question How to create Add/Subtract VBA Code with Vlookup ?

    Good Day,,


    I need VBA Codes for Add button & Subtract Button, but with extra Features !! i Googled it but nothing helpful


    the add button:
    will take all the Products quantities from C9:C60, and search & find the items [the items in column D in Sales sheet] ,and Add the quantities [the Quantities in column G in Sales sheet]


    the Subtract button:
    will take all the Products quantities from C9:C60, and search & find the items [the items in column D in Sales sheet] ,and Subtract the quantities [the Quantities is in column G in Sales sheet]

    Please Help, i will be waiting here for any answer

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: How to create Add/Subtract VBA Code with Vlookup ?

    Can you attach a sample workbook?
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Registered User
    Join Date
    11-15-2016
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    17

    Re: How to create Add/Subtract VBA Code with Vlookup ?

    Quote Originally Posted by Arkadi View Post
    Can you attach a sample workbook?
    here is the sample,

    what i want Briefly:


    Add button will add the quantities of C9:C23, to sales sheet


    Subtract button will Subtract the quantities of C9:C23, from sales sheet
    Attached Files Attached Files
    Last edited by toradoya; 12-05-2016 at 03:08 PM.

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: How to create Add/Subtract VBA Code with Vlookup ?

    See if these work for you?

    Please Login or Register  to view this content.

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

    Re: How to create Add/Subtract VBA Code with Vlookup ?


    Cross posting with Chandoo.org !

  6. #6
    Registered User
    Join Date
    11-15-2016
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    17

    Re: How to create Add/Subtract VBA Code with Vlookup ?

    Quote Originally Posted by Arkadi View Post
    See if these work for you?

    Please Login or Register  to view this content.
    It Worked !!! Smoothly , You Are life saver

    Its very Easy to understand the code because of your Clear instruction inside the Code

    You have Made My Day

    MR Arkadi, Thank You So Much for your Help, and for your precious time




    Quote Originally Posted by Marc L View Post

    Cross posting with Chandoo.org !
    Good Day Mr Marc L, Yes i Posted my question in Chandoo website, it's better to ask different people to get the best answer.

    is it against the rules !!, if yes then my i apologize for that

  7. #7
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: How to create Add/Subtract VBA Code with Vlookup ?

    toradoya,

    First, you are welcome, glad I could help. I like to put comments explaining what the code does since most people are interested in learning, not just getting the code written for them.
    Second, cross posting is not exactly against the rules, but it also means people might be wasting their time answering something that someone else has already solved. For that reason, we always ask that when you do cross post, that you put a link in your post to the other page you have asked the question in.

    Please take a moment to read the forum rules, it will help you, and it will help us if you are familiar with them. Rule #8 is the one that applies to cross posting.

    And please, if you are satisfied with the solution, remember to mark the thread as solved? Thanks in advance!

  8. #8
    Registered User
    Join Date
    11-15-2016
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    17

    Re: How to create Add/Subtract VBA Code with Vlookup ?

    Quote Originally Posted by Arkadi View Post
    toradoya,

    First, you are welcome, glad I could help. I like to put comments explaining what the code does since most people are interested in learning, not just getting the code written for them.
    Thanks Again for your Explanation in side the code i really learned how to modify it, you made coding looks simple



    Quote Originally Posted by Arkadi View Post
    toradoya,

    Second, cross posting is not exactly against the rules, but it also means people might be wasting their time answering something that someone else has already solved. For that reason, we always ask that when you do cross post, that you put a link in your post to the other page you have asked the question in.

    Please take a moment to read the forum rules, it will help you, and it will help us if you are familiar with them. Rule #8 is the one that applies to cross posting.

    And please, if you are satisfied with the solution, remember to mark the thread as solved? Thanks in advance!
    Next Time I will Provide a link for the other page in case of cross posting, also thanks for the forum-rules link, i will read it.


    Thanks a lot
    Regards,
    ToRaDoYa

+ 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. Create a button to subtract cells in one row from another
    By Smeghead in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-13-2014, 09:49 AM
  2. Replies: 0
    Last Post: 11-27-2013, 10:37 AM
  3. Replies: 2
    Last Post: 07-17-2008, 01:24 PM
  4. How do you create simple add/subtract formula?
    By Suomalainen in forum Excel General
    Replies: 6
    Last Post: 07-01-2008, 03:18 AM
  5. [SOLVED] To create formula to add 3 years and subtract 1 day from a date?
    By rostroncarlyle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-08-2005, 07:25 PM
  6. [SOLVED] Allow user to be able to create a formula to add/subtract any hig.
    By BTaylor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-08-2005, 11:06 PM
  7. How do I create a formula that would allow me to subtract from a d
    By Justlearning in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 01-27-2005, 06:06 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