+ Reply to Thread
Results 1 to 4 of 4

Macro Needed to Auto-Populate Rows Based on the Conditions of a Cell

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    7

    Macro Needed to Auto-Populate Rows Based on the Conditions of a Cell

    I looked around on the forums and can't find a macro that fits my needs. I have a cell that is preforming a COUNTIF function: =COUNTIFS(Main!BM:BM,"No",Main!CQ:CQ,"No") and I need a macro which will copy the rows for any which match the conditions listed and auto-populate the current worksheet.

    I am also wondering if there is a formula which could achieve this. I was thinking I could do something to the effect of =IF(COUNTIFS(Main!BM:BM,"No",Main!CQ:CQ,"No"),TRUE,FALSE where the value if TRUE populates the rows meeting the COUNTIF conditions; I'm just unsure of a formula which could do this.

    Thanks!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,558

    Re: Macro Needed to Auto-Populate Rows Based on the Conditions of a Cell

    I'm sure there is a formula but I'd be inclined to go with an Advanced Filter with crews "No" on those columns and "Copy to Another Location".

    If it's something you do regularly you could record and tweak a macro.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    09-11-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Macro Needed to Auto-Populate Rows Based on the Conditions of a Cell

    HI,

    I have the same issue. I am trying to populate rows in to a new workbook based on the condition of the cell after formatting the same. I am able to conditionally format the cells using VBA but unable to figure out how to copy those entire rows to a new workbook.

    any help would be appreciated.
    Thanks in advance

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,070

    Re: Macro Needed to Auto-Populate Rows Based on the Conditions of a Cell

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    Never use Merged Cells in Excel

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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