Share via

Cond.query

Anonymous
2017-08-11T11:40:26+00:00

Hi expert

Need your input

use a formula to define age in column E

>=80 is old,>=60  to <=79 is retired,>=35 to <=59 is middle,<=34 ,is youth

thz

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2017-08-11T13:01:39+00:00

Hi,

And another from one who didn't miss the 'Old' category<g>

=LOOKUP(E1,{0,35,60,80},{"Youth","Middle","Retired","Old"})

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2017-08-11T13:07:31+00:00

Well done, Old-timer!

I can never get the right numbers in LOOKUP

Hurray - we can now edit our replies once more

best wishes

B

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2017-08-11T12:57:49+00:00

    =IF(E1<=34,"Youth",IF(E1<=59,"Middle",IF(E1<=79,"Retired","Old")))

    From one who missed OLD by a few years

    best wishes

    Was this answer helpful?

    0 comments No comments