+ Reply to Thread
Results 1 to 2 of 2

Urgent Help

  1. #1
    Registered User
    Join Date
    12-26-2006
    Posts
    18

    Exclamation Urgent Help

    Hey guys. I need some urgent help in excel.

    I have a spreadsheet that basically contains many rows with people. I need to write a macro or formula that will select the people based on 3 criteria and copy them into another part of the spreadsheet. If for example someone belongs in brooklyn (the criteria is met) and they will (the whole row) be put into the brooklyn section. In other words, one part of the spreadsheet is basically data entry. I want the macro to search (or go through the rows) and pull out people that say belong in brooklyn and insert those people into the brooklyn part of the spreadsheet. I have been breaking my head over this and cant seem to figure it out. Please help. Thanks to everyone in advance.
    A B C D E
    1 Name Borough Type Processing Date Hiring Date
    2 John Smith Brooklyn Outside 01/01/07 01/01/07
    3 Joe Blow Bronx Outside 01/01/07 01/02/07
    4 Jane Doe Bronx JTP 01/02/07 01/03/07

    IF IN (A2:E4) colums B=Brooklyn and E<>null value(has a value) , copy correcponding row into location X.

    Please help. Thank you.

  2. #2
    Valued Forum Contributor
    Join Date
    12-16-2004
    Location
    Canada, Quebec
    Posts
    363
    Try this macro
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Denis

    Please always attach the sample workbook without sensitive information when asking for help

    To add a module
    Press Alt + F11 (this is the Visual Basic Environment)
    Insert Menu, select Module
    Past code there
    Close Visual Basic Environment (X)

+ 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