Hello everyone,
I need to find a 'best' value from a series of values, based on a ranking, and need to write an IF statement to choose, in a specific order.
I have 3 columns with dates of birth, DOB1, DOB2, DOB3. Not all columns are populated for each row.
I need to fill in a 4th column, DOB_final, with a DOB, based on the ranking of
DOB1 > DOB2 > DOB3
I need to write an IF statement for DOB_final that says
IF DOB1 is not blank, DOB_final = DOB1
IF DOB1 is blank, DOB_final = DOB2
IF DOB1 and DOB2 are blank, DOB_final = DOB3
I am trying to look at IF / AND statements, n cannot find an example or think of one that'll do what I need.
Can anyone help please ?
I need to find a 'best' value from a series of values, based on a ranking, and need to write an IF statement to choose, in a specific order.
I have 3 columns with dates of birth, DOB1, DOB2, DOB3. Not all columns are populated for each row.
I need to fill in a 4th column, DOB_final, with a DOB, based on the ranking of
DOB1 > DOB2 > DOB3
I need to write an IF statement for DOB_final that says
IF DOB1 is not blank, DOB_final = DOB1
IF DOB1 is blank, DOB_final = DOB2
IF DOB1 and DOB2 are blank, DOB_final = DOB3
I am trying to look at IF / AND statements, n cannot find an example or think of one that'll do what I need.
Can anyone help please ?