+ Reply to Thread
Results 1 to 4 of 4

If Cell C="Y", copy Cell A into B

  1. #1
    Registered User
    Join Date
    06-12-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2016
    Posts
    12

    If Cell C="Y", copy Cell A into B

    Could you please help... with the below?

    If C2 = "y", copy A2 into B2, if Y changes into "n" (or any other value including blank), Clear Cell B.
    This should apply yo the whole sheet - please find a very basic example attached.

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: If Cell C="Y", copy Cell A into B

    Hi,

    In B2 and copied down the column

    Please Login or Register  to view this content.
    EDIT: Apologies, I've just seen that you want VBA for this.

    Please Login or Register  to view this content.
    Last edited by sweep; 08-25-2017 at 07:37 AM.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,964

    Re: If Cell C="Y", copy Cell A into B

    Give this a go...Place code in sheet Module.
    Please Login or Register  to view this content.
    Last edited by Sintek; 08-25-2017 at 07:41 AM. Reason: changed code for entire C column
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,964

    Re: If Cell C="Y", copy Cell A into B

    Glad I could contribute...seems like sweep and I were on same page simultaneously...
    Thanks for rep +

+ 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. Don't Copy if cell value ="NONE" or clear cell value "NONE" from copied sheet
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-02-2017, 12:20 PM
  2. [SOLVED] if in worksheet "test1" is in cell G2 to G1000 an entry"share sale" copy the row new sheet
    By torti111 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-22-2017, 12:28 PM
  3. Looping thru rows and copy cell values from "Inputs" sheet to "Output" sheet
    By hariexcel1987 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2015, 11:32 PM
  4. Replies: 6
    Last Post: 12-08-2014, 01:28 AM
  5. [SOLVED] macro to search for "NO" in a cell and copy all but "NO" to a different column! plz help
    By fredderf81 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2013, 03:19 PM
  6. Replies: 2
    Last Post: 09-12-2013, 10:56 PM
  7. Replies: 1
    Last Post: 04-11-2007, 02:06 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