+ Reply to Thread
Results 1 to 4 of 4

Code to combine data of 2 sheets with condition

  1. #1
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Code to combine data of 2 sheets with condition

    Hello Experts
    I have here an incomplete code to combine data of 2 sheets with 2 conditions. One is that the data is combined under the same heading but in 2 cases. The second condition is that the amounts copied from the source sheet should display as negative in the destination sheet. I am not able to get the source data right under the destination sheet. I need your expertise to edit and correct this code. I have inserted the expected result sheet in the workbook.
    Please note the code is not working and will erase the data of the destination sheet. So, I have created a copy of the same for that purpose.
    Attached Files Attached Files
    Last edited by RAJESH SHAH; 03-04-2023 at 02:35 PM. Reason: #Solved by PCI

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Code to combine data of 2 sheets with condition

    See next code
    Please Login or Register  to view this content.
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Code to combine data of 2 sheets with condition

    PCI. That is superb. It is perfect. Thanks a lot.

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Code to combine data of 2 sheets with condition

    You're welcome & Thx for the Rep
    Enjoy Excel

+ 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. How to combine data of sheets in one workbook based to multiple IF condition
    By mami502003 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2021, 10:01 AM
  2. Replies: 1
    Last Post: 02-26-2020, 07:59 PM
  3. [SOLVED] Need to combine a code that loops through multiple sheets
    By g1terra in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-31-2019, 02:07 PM
  4. [SOLVED] Combine 2 Columns from 2 different sheets with 1 condition
    By Sekars in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-21-2017, 09:35 AM
  5. [SOLVED] Need to copy data from sheets 1 to 3, 5, 7, 9, 11 if condition is met with VBA code.
    By MichelleD75 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-15-2016, 01:04 PM
  6. VBA code to pull data between sheets on a condition of column K
    By MichelleD75 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2016, 03:06 PM
  7. [SOLVED] Need Code to copy Data to other sheets on condition
    By Parth007 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-05-2015, 09:45 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