+ Reply to Thread
Results 1 to 10 of 10

EXCEL - Match Name, Sort, Check if "Active"

  1. #1
    Forum Contributor
    Join Date
    10-15-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    218

    EXCEL - Match Name, Sort, Check if "Active"

    Hello All,

    I recently posted a question to how match and sort a list of names to positions. However, I forgot that they needed a third variable which is only list those that are active. (Thank you RobertMika for this)

    Please see spreadsheet attached that has the formula I wanted to list the names in order; but doesn't filter out just the actives.

    Can someone please update the formula for me to only show active people...

    Thanks in advance, it's much appreciated.

    _Jason
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: EXCEL - Match Name, Sort, Check if "Active"

    Have you considered a pragmatic solution and sorting the Employee status data using the Active column as the key, then changing the Index range in the formulae to use row 86 instead of 105.

    That has the advantage of not overcomplicating the formula.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    10-15-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: EXCEL - Match Name, Sort, Check if "Active"

    Quote Originally Posted by Richard Buttrey View Post
    Have you considered a pragmatic solution and sorting the Employee status data using the Active column as the key, then changing the Index range in the formulae to use row 86 instead of 105.

    That has the advantage of not overcomplicating the formula.
    Hi Richard,

    That would work if it weren't for the fact this is just a small portion of a much larger spreadsheet. The Active and Departed is constantly changing and in reality I would be scan the whole column with a range $c:$c.

  4. #4
    Forum Contributor
    Join Date
    10-15-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: EXCEL - Match Name, Sort, Check if "Active"

    Quote Originally Posted by JasonNeedsHelp View Post
    Hello All,

    I recently posted a question to how match and sort a list of names to positions. However, I forgot that they needed a third variable which is only list those that are active. (Thank you RobertMika for this)

    Please see spreadsheet attached that has the formula I wanted to list the names in order; but doesn't filter out just the actives.

    Can someone please update the formula for me to only show active people...

    Thanks in advance, it's much appreciated.

    _Jason

    Somewhere I think I need to put the IF statement

    IF('Data-EmployeeStatus'!$C$1:$C$12000="Active"

    But I don't know where and how to close this off.
    Last edited by JasonNeedsHelp; 02-07-2014 at 12:17 PM.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: EXCEL - Match Name, Sort, Check if "Active"

    Quote Originally Posted by JasonNeedsHelp View Post
    Hi Richard,

    That would work if it weren't for the fact this is just a small portion of a much larger spreadsheet. The Active and Departed is constantly changing and in reality I would be scan the whole column with a range $c:$c.
    I don't see why that should rule this out as a technique. It could easily be encapsulated in a macro which you could run automatically at the press of a button

  6. #6
    Forum Contributor
    Join Date
    10-15-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: EXCEL - Match Name, Sort, Check if "Active"

    Quote Originally Posted by Richard Buttrey View Post
    I don't see why that should rule this out as a technique. It could easily be encapsulated in a macro which you could run automatically at the press of a button
    Hi Richard,

    Yes, I wouldn't rule it out as a technique for others. But formyself I would want to just include it in the formula I already have in my example calculating the match name and sorting it inside the cell (provided by RobertMika)

    =IFERROR(INDEX('Data-EmployeeStatus'!$A$2:$A$105,SMALL(IF('Data-EmployeeStatus'!$B$2:$B$105=Results!A$1,ROW('Data-EmployeeStatus'!$B$2:$B$105)-ROW($B$2)+1),ROWS($A$2:A2))),"")


    I just need to add in the other portion of "IF('Data-EmployeeStatus'!$C$1:$C$12000="Active" that I read and saw somewhere else that works. But i'm able to get it to work as I don't know where in the formula to put it and how to close off the if false portion.

    Although I agree your technique is viable I rather have the formula that calculate automatically as information is updated then a macro that I would have to run separately to the formula that's already on my sheet.

    Thanks,

  7. #7
    Forum Contributor
    Join Date
    10-15-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: EXCEL - Match Name, Sort, Check if "Active"

    anyone able to help?

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: EXCEL - Match Name, Sort, Check if "Active"

    How about this:
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Quang PT

  9. #9
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,372

    Re: EXCEL - Match Name, Sort, Check if "Active"

    Please see the file, hope it works
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    10-15-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: EXCEL - Match Name, Sort, Check if "Active"

    Both you guys, Bebo021999 and Azumi, have it perfect.

    Thanks!!!!

+ 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. Replies: 5
    Last Post: 01-23-2014, 11:02 AM
  2. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  3. "Form and macro" to delete "Active" cell contents.
    By wanty in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2013, 11:33 PM
  4. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  5. create links to check boxes marked "good" fair"and "bad"
    By pjb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2006, 09:25 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