+ Reply to Thread
Results 1 to 2 of 2

Compare two columns f different excel sheets and insert if required

  1. #1
    Registered User
    Join Date
    03-04-2021
    Location
    India
    MS-Off Ver
    2016
    Posts
    31

    Compare two columns f different excel sheets and insert if required

    Hi All,
    I have two excel sheets(Pricing and Product_Discount) in a workbook.
    In product_Discount , I will have some predefined Category and Discount(%).
    In Pricing tab clicking on Import CPL button it will import some data from another workbook sheet to this sheet.
    Part of this below is the requirement,
    Clicking on Import CPL button,
    1. We need to copy (creating a new row after all the values) the Applied Discount % column value from Pricing tab to Discount(%) column of Product_Discount sheet, if that percent value not exists there.
    2. While copying the Discount(%) values into Product_Discount sheet, need to generate automatic values under Category column as Prod_disc_1, prod_disc_2, etc..... for the copied % values.
    3. From Product_Discount sheet now we need to highlight the discount category in Pricing sheet for the appropriate applied discount. (Discount category is of drop down type in pricing sheet.)
    Clicking on Delete Discounts button from Pricing tab,
    1. should delete only the discount (%) which have been added on clicking the Import CPL button but not the ones which already exists prior to this.

    NOTE: Data in Pricing sheet will start from row 5.
    Data in Product_Discount sheet will start from row 7.


    Attached the same excel, as I am completely new to VBA and Macros, really need help here.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-04-2021
    Location
    India
    MS-Off Ver
    2016
    Posts
    31

    Re: Compare two columns f different excel sheets and insert if required

    Hi All, as with tight dead lines need to deliver this, kindly please help
    Last edited by Saritha123; 06-14-2021 at 01:50 AM.

+ 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] Compare two columns (from different sheets) delete if no match and insert if missing
    By NametobeRenamed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-24-2020, 10:55 AM
  2. Excel vba code required to insert jpeg images into sheets and delete unused.
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2015, 08:01 AM
  3. Help With a macro to compare columns on different sheets in Excel
    By Antm7901 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2014, 02:30 PM
  4. [SOLVED] Excel macro, compare two columns from 2 sheets and copy the different rows
    By lagiosman in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-10-2013, 11:09 AM
  5. VBA Program to Compare 4 Columns in Excel (Required)
    By vijaysram in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2013, 12:37 PM
  6. Formula required to compare names on two different work sheets
    By Spaz1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-13-2013, 05:59 PM
  7. Macro required to compare items from 2 sheets
    By TRJJK73 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-27-2009, 04:42 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