+ Reply to Thread
Results 1 to 2 of 2

Copy, eliminate, consolidate

  1. #1
    Registered User
    Join Date
    07-28-2009
    Location
    Chicago, Il
    MS-Off Ver
    Excel 2007
    Posts
    67

    Copy, eliminate, consolidate

    Hello all,
    I have a project and to be honest with you not even sure how i can do this so thought somebody may have an idea for me. this is what i have right now

    Bookcisco.xls

    now what i need to do is this. i need to macro this information out to another sheet and do this if C= yesterdays date and B= "Login/Not Entered" then copy that row and place in sheet2. then i need if c=yesterdays date and B="End_OF_Shift" then copy row and place under the "Login/Not entered" Row and this has to keep happening until the end of data or blank row.
    can this be done with a macro or should it be a formula in the cells on sheet 2. the problem with the formula is it will not consolidate all the data

    need some serious help here

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy, eliminate, consolidate

    You can use the AUTOFILTER to do this manually, macro not required. The Data > Filter > Autofilter allows you to filter the data in place, hiding the rows that don't match what you want.

    Some people find that once they start using the AutoFilter they no longer need to actually copy stuff off to another sheet, but you can. If you activate the filter, filter column C by yesterday's date, then filter column B by the string of interest, you can then copy everything still visible to another sheet and only the visible rows will get copied.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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