Outline ·
[ Standard ] ·
Linear+
Need help with Excel functions, To find Gender using IC number Q&A
|
TSvictorian
|
Dec 27 2018, 11:31 AM, updated 7y ago
|
|
Hi let’s say I have a pool of data and some of the genders are unspecified in an excel sheet. What excel formulas should I use to find the gender using the IC. Something like “if last digit of IC is odd numbers, Gender = Male” and so on. Tenks guys
|
|
|
|
|
|
Flame Haze
|
Dec 27 2018, 11:36 AM
|
|
Use the =ISODD(A1) function, then =IF(A2=TRUE,"Male","Female")
This post has been edited by Flame Haze: Dec 27 2018, 11:38 AM
|
|
|
|
|
|
GPKGB
|
Dec 27 2018, 11:38 AM
|
New Member
|
get last digit =MID(A1, LAST NUMBER, 1)
if statement =IF(MOD(A1,2)=0,"FEMALE","MALE")
This post has been edited by GPKGB: Dec 27 2018, 11:39 AM
|
|
|
|
|
|
SUS2feidei
|
Dec 27 2018, 11:39 AM
|
|
my way, not very efficient way
1.Copy the list into new column 2.Text to column only the last digit into new cell 3. Use if function in the single digit cell, if odd = male, even = female
|
|
|
|
|
|
ihm11
|
Dec 27 2018, 11:43 AM
|
Getting Started

|
ic even=female, odd=male is a myth
|
|
|
|
|
|
winter01942
|
Dec 27 2018, 11:46 AM
|
|
QUOTE(ihm11 @ Dec 27 2018, 11:43 AM) ic even=female, odd=male is a myth most of the time it works, so guna je la
|
|
|
|
|
|
cracksys
|
Dec 27 2018, 11:47 AM
|
|
the best way is to use INDEX MATCH.
|
|
|
|
|
|
jmas
|
Dec 27 2018, 11:47 AM
|
|
QUOTE(Flame Haze @ Dec 27 2018, 11:36 AM) Use the =ISODD(A1) function, then =IF(A2=TRUE,"Male","Female") simpler formula =IF(ISODD(RIGHT(A1,4)),"MALE","FEMALE") The RIGHT is to capture last 4 digit only.
|
|
|
|
|
|
jmas
|
Dec 27 2018, 11:48 AM
|
|
QUOTE(cracksys @ Dec 27 2018, 11:47 AM) the best way is to use INDEX MATCH. INDEX MATCH is best way comparing to VLOOKUP but this is not what he asking for.
|
|
|
|
|
|
Flame Haze
|
Dec 27 2018, 11:52 AM
|
|
QUOTE(jmas @ Dec 27 2018, 11:47 AM) simpler formula =IF(ISODD(RIGHT(A1,4)),"MALE","FEMALE") The RIGHT is to capture last 4 digit only. I learnt something today Excel is god program for audit work
|
|
|
|
|
|
v1n0d
|
Dec 27 2018, 11:53 AM
|
|
QUOTE(cracksys @ Dec 27 2018, 11:47 AM) the best way is to use INDEX MATCH. Thank you for recommending a rocket launcher when all he needed was a revolver.
|
|
|
|
|
|
SUSAmeiN
|
Dec 27 2018, 11:54 AM
|
|
QUOTE(jmas @ Dec 27 2018, 11:47 AM) simpler formula =IF(ISODD(RIGHT(A1,4)),"MALE","FEMALE") The RIGHT is to capture last 4 digit only.
|
|
|
|
|
|
Subcrevv90
|
Dec 27 2018, 11:59 AM
|
Getting Started

|
=IF(ISEVEN(RIGHT(A2,1)),"FEMALE","MALE")
|
|
|
|
|
|
agent sawyer
|
Dec 27 2018, 12:00 PM
|
New Member
|
QUOTE(victorian @ Dec 27 2018, 11:31 AM) “if last digit of IC is odd numbers, Gender = Male” and so on. Tenks guys =IF(ISODD(RIGHT(target cell,1))="True","Male","Female") You're welcome
|
|
|
|
|
|
cracksys
|
Dec 27 2018, 12:17 PM
|
|
QUOTE(v1n0d @ Dec 27 2018, 11:53 AM) Thank you for recommending a rocket launcher when all he needed was a revolver. helping is never my intention.
|
|
|
|
|
|
pokchik
|
Dec 27 2018, 01:36 PM
|
|
QUOTE(PauMaster @ Dec 27 2018, 11:49 AM) this will pop-up:
|
|
|
|
|
|
Askzra
|
Dec 27 2018, 01:39 PM
|
Getting Started

|
QUOTE(jmas @ Dec 27 2018, 11:47 AM) simpler formula =IF(ISODD(RIGHT(A1,4)),"MALE","FEMALE") The RIGHT is to capture last 4 digit only. +1 use this TS.
|
|
|
|
|
|
viex
|
Dec 27 2018, 01:44 PM
|
Getting Started

|
If I, I would use regular expression lagi senang
|
|
|
|
|
|
jmas
|
Dec 27 2018, 01:55 PM
|
|
QUOTE(agent sawyer @ Dec 27 2018, 12:00 PM) =IF(ISODD(RIGHT(target cell,1)) ="True","Male","Female") You're welcome Redundant, IF function itself already checks for TRUE/FALSE.
|
|
|
|
|
|
hirano
|
Dec 27 2018, 01:57 PM
|
|
QUOTE(jmas @ Dec 27 2018, 11:47 AM) simpler formula =IF(ISODD(RIGHT(A1,4)),"MALE","FEMALE") The RIGHT is to capture last 4 digit only. Can ayam ask u if ayam got excel question in future?
|
|
|
|
|