+ Reply to Thread
Results 1 to 9 of 9

Separate Male from Female

  1. #1
    Forum Contributor
    Join Date
    07-26-2016
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    117

    Separate Male from Female

    Hi!

    Is there a way to separate males from females from a continuous list of students in sheet1 into sheet2?

    Please see the attachment for example.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Separate Male from Female

    Paste in B21 on Sheet 2 and copy down...

    =IFERROR(INDEX(Sheet1!$B$2:$B$12,SMALL(IF(Sheet1!$C$2:$C$12=LEFT($A$20,1),ROW(Sheet1!$B$2:$B$12)-ROW(Sheet1!$B$2)+1),ROWS($B$21:B21))),"")

    IMPORTANT
    • This is an array formula
    • Enter the formula >> press F2 then >> CTRL + SHIFT + ENTER
    • If entered correctly, the formula will be enclosed in {brackets}
    • Do not enter the {brackets} manually
    HTH
    Regards, Jeff

  3. #3
    Forum Contributor
    Join Date
    07-26-2016
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    117

    Re: Separate Male from Female

    Thanks for the quick reply Sir. I will have to make further testing with the code but right now it works for the females, I have to test it out for the males. I'll be back for further queries if something comes up.

    Thank you again sir.

  4. #4
    Forum Contributor
    Join Date
    07-26-2016
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    117

    Re: Separate Male from Female

    Hello!

    I tried the formula with my attachment. I found out the there were names not being reflected, like the first and the last three (3) students in female were not in promo sheet.
    Attached Files Attached Files

  5. #5
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Separate Male from Female

    Looks Like you have a small typo in your formula. Change the highlighted value B57 to B56. Enter the formula >> press F2 then >> CTRL + SHIFT + ENTER

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  6. #6
    Forum Contributor
    Join Date
    07-26-2016
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    117

    Re: Separate Male from Female

    oh my...been looking at the formula for so long and I didn't noticed that very minute detail yet it has a very big effect on the formula/output. Thanks mike for pointing it out...
    Last edited by Simply_Me; 04-02-2017 at 05:50 AM.

  7. #7
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Separate Male from Female

    Have you consider the use of a pivot table
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  8. #8
    Registered User
    Join Date
    03-28-2019
    Location
    Trivandrum
    MS-Off Ver
    2013
    Posts
    1

    Re: Separate Male from Female

    could you please share the equation for finding male and female in 2 different excel sheets.

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Separate Male from Female

    Administrative Note:

    Hello Rohini Krishnakumar & Welcome to the forum,

    We are happy to help; however, while you feel your request is similar to this thread, experience has shown things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please start a new thread - See Forum rule #4

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

+ 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. Automatically adding Mr or Ms to male/female
    By TTej in forum Excel General
    Replies: 7
    Last Post: 10-03-2017, 11:49 AM
  2. PT Slab male and female
    By jaydev in forum Excel General
    Replies: 7
    Last Post: 01-28-2017, 12:12 PM
  3. Getting totals for all male and all female
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-09-2014, 09:32 PM
  4. Male or Female Return Value
    By Doogster in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2014, 04:19 AM
  5. [SOLVED] Formula for male and female staff on rota
    By bigtiger1 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 08-06-2013, 07:03 AM
  6. Excel Male / Female Column
    By ringrim in forum Excel General
    Replies: 5
    Last Post: 08-13-2008, 05:28 PM
  7. IF male or female IF age is in range...THEN...
    By mtmagent in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2006, 03:14 AM

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