+ Reply to Thread
Results 1 to 12 of 12

Macro to copy data from Col B to Col A based on certain criiteria

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,888

    Macro to copy data from Col B to Col A based on certain criiteria

    I would like a macro to copy dat from Col B to Col A from row 2 onwards based on the following criteria

    1) Where the number in Col B does not match the number in Col A, then copy this number using paste value special
    2) Where #N/A appears or Item on promotion in Col A then ignore i.e. do not copy to Col B


    I have attached sample data


    Your assistance is most appreciated

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Macro to copy data from Col B to Col A based on certain criiteria

    welcome back Howard. this is pretty simple. have you given it a try yet?

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,888

    Re: Macro to copy data from Col B to Col A based on certain criiteria

    Thanks for the reply. It may be simple for you, but don't know how to tackle this one

    It would be appreciated if you could kindly assist me

  4. #4
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Macro to copy data from Col B to Col A based on certain criiteria

    for some reason i am getting a popup today telling me that files I download (only some) are corrupted or that there is some content in them that is bad. not sure what that is. can't read your file howard.

  5. #5
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,888

    Re: Macro to copy data from Col B to Col A based on certain criiteria

    I have attached another workbook

    Hopefully this one is fine. It opens fine on my side, without any errors

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

    Re: Macro to copy data from Col B to Col A based on certain criiteria


    Hi,

    same issue on my side since yesterday from several threads …

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

    Re: Macro to copy data from Col B to Col A based on certain criiteria

    Same issue again with post #5 attachment, that's weird …

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: Macro to copy data from Col B to Col A based on certain criiteria

    It’s a known issue - sorry. The tech team is aware, but so far no fix. There have been several threads about it.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  9. #9
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Macro to copy data from Col B to Col A based on certain criiteria

    thanks Ali.

  10. #10
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,888

    Re: Macro to copy data from Col B to Col A based on certain criiteria

    Thanks for letting us know

    Does the forum rules allow one to use Dropbox ? I could not find anything, but want to make certain

  11. #11
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Macro to copy data from Col B to Col A based on certain criiteria

    you can include any links you want, I believe. however, their malicious code detector blocks actual HTML code. if it is written properly, that is.
    Last edited by AliGW; 08-29-2020 at 02:16 AM.

  12. #12
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,888

    Re: Macro to copy data from Col B to Col A based on certain criiteria

    I have copy the file on to dropbox-see link below


    https://www.dropbox.com/s/9mjp91yuvz...tion.xlsx?dl=0

+ 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. Replies: 1
    Last Post: 03-07-2020, 05:27 AM
  2. [SOLVED] Macro to copy data based on column value
    By Kalestu in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-27-2016, 04:53 AM
  3. Macro to only allow data to be copy pasted based on data validation criteria
    By forea in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2016, 08:34 AM
  4. formula to countif and sumif with multiple range and criiteria
    By saravanan1981 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-20-2016, 04:06 PM
  5. Macro to filter data and copy the data's from multiple columns based on the criteria
    By millatshawn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2014, 08:14 AM
  6. [SOLVED] Macro to copy across data based on a cell value
    By strud in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2013, 10:53 AM
  7. macro to copy data based on criteria
    By arnab0711 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-20-2011, 12:42 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