+ Reply to Thread
Results 1 to 3 of 3

Creating new rows based on cell content

  1. #1
    Registered User
    Join Date
    06-11-2015
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    5

    Lightbulb Creating new rows based on cell content

    Hello everyone

    I have this sample file with two sheets(attached). The tables are really straightforward, no formula. As the actual database is pretty long, I want all rows in Sheet 1 with product status (Column F) as "Ended" to be automatically copied to sheet 2.

    In other words,

    If any row in "All purchases" sheet has "Ended", that row should be automatically copied/transferred to "Ended or Abandoned" sheet.

    I was wondering whether there is any combination of IF function/Vlookup/VBA code to achieve that, or at least help me to some extent. Also pls let me know if this is straight out impossible.

    Or maybe there is a way to update individual cells instead of roows instead ?

    Thanks in advance for all your suggestions!
    purchases.xls
    Last edited by natonato; 06-11-2015 at 06:23 AM.

  2. #2
    Registered User
    Join Date
    05-23-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Creating new rows based on cell content

    Hi,

    I'm pretty new to VBA but I wrote something that should do what you want - moving the 'Ended' entries from the first sheet to the second one. Let me know if it works for you
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-11-2015
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    5

    Re: Creating new rows based on cell content

    Knighte, you are amazing. It works like a charm, thank you so much

+ 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. [SOLVED] Would like to delete rows based on cell content
    By cindywylie in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-27-2014, 01:14 PM
  2. Hiding rows based on content of a cell
    By Commissar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2013, 01:05 AM
  3. Hide rows based on cell content
    By garyi in forum Excel General
    Replies: 9
    Last Post: 11-14-2010, 09:10 AM
  4. Deleting Rows based on cell content
    By nuno in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2007, 06:47 AM
  5. Hiding rows based on cell content
    By brutus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-14-2005, 11:40 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