Conditional Formula Question

J

Jeremy

I need to set up a formula that allows the following:

79 or less = 0
80=80
81=81
82=82
100=100
101=102
102=104
103=106
104=108
105=110

Can anyone help?

Thanks
 
H

HKaplan

You mean I enter 101 but another cell auto displays 102? Or I enter
101 into a cell but upon hitting enter it displays 102 instead?
 
J

Jeremy

I have a formula that is set in the cell that will result in 101 however If
that happens i need it to say 102
 
H

HKaplan

A vlookup table would work. And use an if statement to first test for
<80. Like this. Lets say the formula in the cell is:
=sum(101+3), which equals 104, but you want 108:

=IF(SUM(101+3<80),0,VLOOKUP(SUM(101+3),mylookuptablerange,2,FALSE))

The mylookuptablerange might be a lookup table like this:
A B
80 80
81 81
82 82
100 100
101 102
102 104
103 106
104 108
105 110

Do you follow?
 
H

HKaplan

My lookup example assumed the numbers aren't always that consistant.
My example would permit changing any number to any other number.
Fred's response is much better if your table is that simple.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sort data 2
SUMIF using criteria from a list 4
Formula for hiest rate 7
Find and Replace Cell Values 3
Query 1
Can this be done? 4
Format an entire row when an ID changes 2
Range compariosn - best of 1

Top