[Excel 2010] Fill cell based on content of another

Solved
nlbmoi Posted messages 427 Registration date   Status Membre Last intervention   -  
 amelie -
Hello

In my file, column C contains birth years; I would like it to automatically fill column D with the corresponding age category based on the year.
How can I do this?

Thank you in advance

7 réponses

f894009 Posted messages 17417 Registration date   Status Membre Last intervention   1 717
 
Re,

Do you have a summary table for years-categories???

(I don’t want to make a complicated formula with lots of IF(...)) There will be an IF and a VLOOKUP formula

A+
1
_guigui_ Posted messages 603 Status Membre 209
 
Hello,
in column D, for example in D1, you type
=C1-YEAR(TODAY())
and then drag down.
0
f894009 Posted messages 17417 Registration date   Status Membre Last intervention   1 717
 
Hello,

formula to copy in D1, then drag down for the other cells

=IF(C1<>"",YEAR(TODAY())-YEAR(C1),"")

standard number format for column D

Have a good continuation
0
nlbmoi Posted messages 427 Registration date   Status Membre Last intervention   24
 
Actually, I don't want a numerical result; I would like it to indicate the relevant category.
For example, if I input 1997 or 1998 in C1, I want it to write "cadet" in D1.
I can see that I need to make a link between the year of birth and the category, but I don't know how to do it (I don't want to create a complicated formula with lots of IF(...)).
0
_guigui_ Posted messages 603 Status Membre 209
 
Already give us the different age categories, but the function could be nice, well it depends on the number of categories.
0
nlbmoi Posted messages 427 Registration date   Status Membre Last intervention   24
 
I have a certain number:
2005 or 2006: pupil
2003 or 2004; chick
2001 or 2002: Benjamin
1999 or 2000: minor
1997 or 1998: cadet
1995 or 1996: junior
That still gives me 6 nested IFs!
0
nlbmoi Posted messages 427 Registration date   Status Membre Last intervention   24
 
Using the VLOOKUP formula (which I didn't know about), I managed to do it.

Thank you
0
amelie
 
How? Can you explain the manipulation? Thank you.
0