Lookups

  • Thread starter Thread starter Judd
  • Start date Start date
J

Judd

I am tring to do a Lookup on a negative number. Not a
specific negative number, but the first time the number
becomes negative. I don't know to put this into the
Lookup formula as the Lookup Value.
 
If you set the Range_lookup to TRUE and the lookup_value
to 0 provided there is no 0 in your lookup array, Vlookup
will return the largest value that is less than or equal
to lookup_value, ie the first negative number.

Matt
 
=INDEX($A$1:$A$6,MATCH(1,INDEX(--($A$1:$A$6<0),0,1),0))

will give you the first negative number from A1:A6.
 

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

getting #N/A when vlookup is a negative number 3
Lookup returning wrong results 0
Lookup 5
Return a value when the number is negative 3
VLookup 1
Help needed 0
lookup 4
unsorted lookup 2

Back
Top