+ Reply to Thread
Results 1 to 9 of 9

is this way possible copy data from sheet to another with ignore the other based on value?

  1. #1
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    is this way possible copy data from sheet to another with ignore the other based on value?

    hello
    in my file I have macro bring data for specific customer but what I want copy from sheet account to sheet result based on cell value should ignore any cell in column e contain 0 doesn't copy data which before it ,it should copy after cell contain 0 I put the result in sheet expected result and I want copy to the bottom every time I select the the customer
    Attached Files Attached Files
    Last edited by abdo meghari; 03-14-2021 at 09:09 AM.

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: is this way possible copy data from sheet to another with ignore the other based on va

    abdo meghari, can you post a sample file & show us what you have (before macro) & what you expect after the macro

  3. #3
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: is this way possible copy data from sheet to another with ignore the other based on va

    sorry I uploaded the file you can check it

  4. #4
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: is this way possible copy data from sheet to another with ignore the other based on va

    Try below code in sheet "account" ... This is one way to do it ... However, you have to change the "account2" header found in column "F" to something else that is not repeated twice in both sheets ..
    Please Login or Register  to view this content.
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  5. #5
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: is this way possible copy data from sheet to another with ignore the other based on va

    I no know how your code works but should copy all of data with all formatting and values from sheet account I don't write any thing in sheet result the code should do that it just copy the headers in row 6?

  6. #6
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: is this way possible copy data from sheet to another with ignore the other based on va

    No, the code doesn't copy the header only but as I said, you need to have different header names, I have changed the first "account2" to "account1" as per the attached file
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: is this way possible copy data from sheet to another with ignore the other based on va

    this is not what i want you misunderstood me what i want not ignore what cells contain 0 , I want also the values which precede cell which contains 0 it contains many values see the sheet account what highlighted by yellow color it shouldn't copy to sheet result
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: is this way possible copy data from sheet to another with ignore the other based on va

    any way to do that, guys?

  9. #9
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: is this way possible copy data from sheet to another with ignore the other based on va

    is it impossible to do that ?

+ 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. Lookup data from separate sheet based on rpt number & ignore blanks
    By robbybarnes55 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-11-2020, 07:00 AM
  2. Copy data from one sheet to another and ignore blanks
    By chrisellis250 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2019, 11:37 AM
  3. Replies: 19
    Last Post: 10-16-2017, 12:34 PM
  4. Replies: 2
    Last Post: 01-23-2016, 01:16 PM
  5. [SOLVED] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 AM
  6. [SOLVED] Macro to Copy Data from one Sheet A to Sheet B based on value in cell on sheet A
    By scass in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2012, 07:21 PM
  7. [SOLVED] How to copy data from master list sheet to another sheet based on category
    By nazrulfadzli in forum Excel General
    Replies: 2
    Last Post: 05-17-2012, 08:19 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