+ Reply to Thread
Results 1 to 4 of 4

Remove Certain Information From a List and Auto Create New List On Other Sheet

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    17

    Remove Certain Information From a List and Auto Create New List On Other Sheet

    Dear all,

    I have a difficult task to do at work and I need expert help over here again.

    I have made a sample excel file that contains a normal list for an 'Employee database'.

    I would like to be able to automatically port over the information for employees that are still 'Present' and for those that are 'Resigned', I do not want them to appear in the list. And I need the blanks to be removed and the list is being shifted up whenever there is a blank.

    Is that possible with a formula?

    Please see my attached.

    Thank you all for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Remove Certain Information From a List and Auto Create New List On Other Sheet

    In A2 put this ARRAY(confirm using control+shift+enter-not just enter) formula.

    =IFERROR(INDEX(DataBase!A$2:A$34,SMALL(IF(DataBase!$E$2:$E$34="Present",ROW(DataBase!A$2:A$34)-1),ROW(DataBase!A1))),"")

    Copy down and across.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Remove Certain Information From a List and Auto Create New List On Other Sheet

    we need 2 formula
    first at A2 to get new serial number
    =IF(ROW(A1)>COUNTIF(DataBase!$E$2:$E$34;"present");"";ROW(A1))
    copy down

    the second formula (formula array) at B2
    =IF($A2="";"";INDEX(DataBase!B$2:B$34;SMALL(IF(DataBase!$E$2:$E$34="present";MATCH(DataBase!$B$2:$B$34;DataBase!$B$2:$B$34;0));$A2)))

    copy right and down
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-25-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Remove Certain Information From a List and Auto Create New List On Other Sheet

    Oh My God... you guys are great! that was supereasy to copy and paste! Thanks a million!!!

+ 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