+ Reply to Thread
Results 1 to 3 of 3

Add a code to select between men and women for different category

Hybrid View

AlexiaDin Add a code to select between... 11-05-2022, 01:44 PM
Glenn Kennedy Re: Add a code to select... 11-05-2022, 02:10 PM
Glenn Kennedy Re: Add a code to select... 11-05-2022, 02:10 PM
  1. #1
    Registered User
    Join Date
    11-05-2022
    Location
    England
    MS-Off Ver
    365
    Posts
    1

    Question Add a code to select between men and women for different category

    Hello everyone!

    I have the following information:
    Date of birth, age, gender and different categories.

    I want the code to take the date of birth and the gender information and select the respective category. I already did it for the Men. However, excel is putting everyone like a Men and I want it to separate men and women.

    I want to create the following categories:

    For Men:

    Pre poussin
    Poussin
    Benjamin
    Minime
    Cadet
    Junior
    Senior
    Veteran

    For women:

    Pre poussine
    Poussine
    Benjamine
    Minime F
    Cadette
    Junior F
    Senior F
    Veteran F

    Which code do I need to add in order to recognise as women and add it to the good category?

    Here is the excel file: Stats.xls

    If you have any suggestions, please let me know.

    Thank you!!
    Last edited by AlexiaDin; 11-05-2022 at 01:46 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Add a code to select between men and women for different category

    One way:
    =IF(A2="","",INDEX($H$2:$I$9,MATCH(YEAR(A2),$G$2:$G$9,-1),MATCH(C2,$H$1:$I$1,0)))

    see file.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Add a code to select between men and women for different category

    BtW... You have O365, why are you using the OBSOLETE .xls extension?

+ 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. [SOLVED] how to select lowest random number within each category
    By anita2017 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-11-2017, 11:39 AM
  2. Return Name of Winner for Select Category?
    By paconsta in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-09-2012, 08:40 AM
  3. Replies: 3
    Last Post: 06-16-2009, 04:22 PM
  4. Ranking Top 5 Men & Women Scores
    By Killer17 in forum Excel General
    Replies: 6
    Last Post: 09-24-2008, 03:58 AM
  5. Replies: 1
    Last Post: 05-24-2008, 06:42 AM
  6. [SOLVED] How do I select all values within a category in Excel?
    By dmz_asdf in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-12-2006, 12:50 AM
  7. 62% OF CANADIAN WOMEN HAVE THIS.WHAT IS IT?
    By kresmagezi in forum Excel General
    Replies: 1
    Last Post: 11-09-2005, 04: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