+ Reply to Thread
Results 1 to 7 of 7

Select next empty cell in column, if data in another column meets criteria

  1. #1
    Registered User
    Join Date
    06-15-2016
    Location
    BC
    MS-Off Ver
    excel 2013
    Posts
    52

    Select next empty cell in column, if data in another column meets criteria

    Hello,

    I am looking for help writing a macro that would auto run, anytime column A in Sheet 1 gets updated.
    I would like the Macro to perform the following:
    • If the last cell with data in Column A = 'abc' then select next empty cell in column C
      OR
    • If the last cell with data in Column A = 'efg' then select next empty cell in column D

    Thank you for help in advance.
    Kanuck

  2. #2
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: Select next empty cell in column, if data in another column meets criteria

    try this
    im guessing column C and D are not empty columns

    Please Login or Register  to view this content.

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Select next empty cell in column, if data in another column meets criteria

    Or without Select.
    Please Login or Register  to view this content.
    Last edited by bakerman2; 03-07-2018 at 11:39 PM. Reason: Typo.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Registered User
    Join Date
    06-15-2016
    Location
    BC
    MS-Off Ver
    excel 2013
    Posts
    52

    Re: Select next empty cell in column, if data in another column meets criteria

    exactly what I needed thank you k1drock

  5. #5
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: Select next empty cell in column, if data in another column meets criteria

    bakerman's code is more efficient i would suggest you use his code

  6. #6
    Registered User
    Join Date
    06-15-2016
    Location
    BC
    MS-Off Ver
    excel 2013
    Posts
    52

    Re: Select next empty cell in column, if data in another column meets criteria

    Thank you both, very appreciative -- both work great but yes will use bakerman2's

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Select next empty cell in column, if data in another column meets criteria

    Was just offering an alternative.
    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. Help with VBA code to display data that meets criteria in another column.
    By MrNew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2016, 02:52 PM
  2. [SOLVED] Select the first row where column B meets criteria
    By The Phil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-18-2016, 04:27 PM
  3. [SOLVED] If column text(3 columns) meets criteria then input value in cell
    By baggypants in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-21-2015, 02:44 AM
  4. Help! Reference a cell in same column if Range meets criteria
    By Trevorrow in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-12-2013, 03:31 PM
  5. Return Data from First Column That Meets Criteria
    By geschinger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-18-2012, 09:30 AM
  6. Trying to count every second cell in a column that meets certain criteria
    By RalphCr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2012, 08:40 AM
  7. [SOLVED] Trying to count cells greater than # in one column if another column meets criteria
    By lorne17 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-14-2012, 07:01 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