I'm trying to figure out what function to use. I'm working on a form that needs to either display an amount depending on an age group, or highlight some cells depending on the age.
Example:
Cell A1 is 63
My requirements are as follows: Ages 62-65 would show $5,000, Ages 66-70 would show $4,500, Ages 71-75 would show $4,000
I figured I could use the IF function, but I can only figure out how to make it say $5,000 with only one number. How can I use a range of numbers to return the correct amount?
I tried nesting the function to say if it was 62, then say $5,000; if it was 63, say $5,000. But that didn't seem to work and from what I've heard, I can only nest up to 7 functions anyway.
Any help would be appreciated!
Something like this?
To thank someone who has helped you, click on the star icon below their name.
I hate reading
Portfolio
I need a job.I am young and incompetent
Hello,
the easiest would be to create a lookup table that shows the age and the amount side by side. You only need to enter the lowest age for each amount, sort the table in ascending order of age. Then you can use a Vlookup formula with TRUE as the last parameter.
I J 1 Age Amount 2 0 0 3 62 5000 4 66 4500 5 71 4000 6 76 0
=VLOOKUP(B1,I1:J6,2,TRUE)
See attached.
cheers,
JieJenn, please don't force people to open an attachment to see what you are suggesting. Describe your approach in the post.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks