Hi
try the formula. It should find the value that is equal or larger than
3 (if your data is sorted ascending)
--
Regards
Frank Kabel
Frankfurt, Germany
"cambridge" schrieb im
Newsbeitrag ...
That is the basic formula for vlookup, but if it doesn't find 3 in
the data,
I want to add 1 to the 3 and have it look for 4. This is what I have
tried
and it doesn't totally work:
=if(vlookup($d3,a1:a20,1,false)=d3,d3,if(vlookup(( $d3+1),a1:a20,1,false
)=(d3+1),(d3+1),0)
This formula actually works but if I want to nest another IF
statement for
d3+2, it tells me I have too many arguements. I would like to nest
up to 5
times.
"Frank Kabel" wrote:
Hi
if your data is sorted ascending try:
=VLOOKUP(3,A1:A20,1,TRUE)
--
Regards
Frank Kabel
Frankfurt, Germany
"cambridge" schrieb im
Newsbeitrag
...
I am trying to use vlookup and nested IF functions, but cannot
get it
to
work-maybe I am not using the right funtions. I have a number
that I
want to
look up and if it is not found, I want to add 1 to it and look
that
up. I
only need to do it about 5 times so I thought if I used vlookup &
nested IF's
I could get it. Here is example:
A
1 2
2 5
3 6
4 7
I want to start with looking up 3 and if it is there, return 3
but if
it
isn't, add 1 to the 3 and look it up and return it, and if it
isn't
add 2 to
the 3, look it up and return it and if it isn't, return 0.
Any ideas?
|