+ Reply to Thread
Results 1 to 6 of 6

If cell = 1, move 3 cells to the left

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    If cell = 1, move 3 cells to the left

    Hi All, I have a list of formulas (the same) in column D. From D1 to D20

    What I want to happen, is when a cell in column D shows value 1 - to move to the corresponding cell in column A (3 cells to the left) and type "STOP".

    Please advise how I can go about doing this

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: If cell = 1, move 3 cells to the left

    Please Login or Register  to view this content.
    And drag down...

    However, something tells me this problem isn't as sumple as it seems.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: If cell = 1, move 3 cells to the left

    Sorry, I wanted to do it via VBA.

    Basically find the first cell in D1 - D20 with value 1, then (say this is in D6) move to A6 and type "STOP".

    If there are no instances of 1 appearing, no action should take place

  4. #4
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: If cell = 1, move 3 cells to the left

    Sorry about that, maybe cross posting to the VBA subforrum will give this some more attention. Good luck!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: If cell = 1, move 3 cells to the left

    Just a heads-up, the forum frowns on cross-posting. If needed, we can move the thread for you, but if you cross-post, it will be closed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: If cell = 1, move 3 cells to the left

    Ok, please move the post then which will hopefully provide an answer.

    In essence, I am looking for VBA code to find any cells with value 1 in column D, then move to the corresponding cell in column A - and entering STOP in that cell.

+ 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. Move cells based on cell length *shift cells right) - code required
    By pauldaddyadams in forum Excel Programming / VBA / Macros
    Replies: 49
    Last Post: 11-21-2014, 08:56 AM
  2. [SOLVED] Compare cells, If cell is blank move to next cell, ect
    By Mezinov in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2014, 08:29 AM
  3. Compare two cells, if equal move a third cells data to another cell
    By eriick in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-24-2013, 05:38 PM
  4. VBA. Rotate cells, move the last used cell in column E to cell E13
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2012, 09:25 AM
  5. Move cell/range of cells
    By maybelle in forum Excel General
    Replies: 5
    Last Post: 08-13-2009, 10:51 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