Hi
How should I use IF or IFS function to deal with the situation below. Many thanks!
I would to assign the number "1" for the age group of 1960s, "2" for the 1970s and "3" for the 1980s.
Current data:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Age Group[/TD]
[/TR]
[TR]
[TD]1/1/1960[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]31/12/1969[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/1/1970[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]31/12/1979[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/1/1980[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]31/12/1989[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Proposed result:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Age Group[/TD]
[/TR]
[TR]
[TD]1/1/1960[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]31/12/1969[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1/1/1970[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]31/12/1979[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1/1/1980[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]31/12/1989[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
How should I use IF or IFS function to deal with the situation below. Many thanks!
I would to assign the number "1" for the age group of 1960s, "2" for the 1970s and "3" for the 1980s.
Current data:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Age Group[/TD]
[/TR]
[TR]
[TD]1/1/1960[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]31/12/1969[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/1/1970[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]31/12/1979[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/1/1980[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]31/12/1989[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Proposed result:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Age Group[/TD]
[/TR]
[TR]
[TD]1/1/1960[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]31/12/1969[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1/1/1970[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]31/12/1979[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1/1/1980[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]31/12/1989[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]