LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #13   Report Post  
Posted to microsoft.public.excel.misc
DMB
 
Posts: n/a
Default Vlookup and "-" negative numbers are giving me a #N/A

THANKS FOR THE FANCY FORMULE Peo Sjoblom. IT WILL TAKE A LITTLE EFFORT TO
FIGURE IT OUT. This works nice for returning "12" which is one of the
problems I was trying to solve. I still have to deal with the negative issue.
I am currently using If statements which work fine but I have a feeling that
it isn't the most effecient method.

I am currently using:
b5 = -5555

=IF(B5=0,IF(C17=0, 0, IF(B5<0, "N.R.",VLOOKUP(B5,
StrapCapacity,2))),IF(B5<0, "N.R.",VLOOKUP(B5, StrapCapacity,2)))
This formula deals with the negative value

I feel that if this formula could deal with negatives it would look like this:
=VLOOKUP(B5, StrapCapacity,2)
much easier to manage



This is the result of your formul:
=INDEX(Capacity,MATCH(SMALL(INDEX(Capacity,,1),COU NTIF(INDEX(Capacity,,1),"<"&ABS(B5))+1),INDEX(Capa city,,1),0),2)

=12

b5 = -5555
It should be
= 5

-10000 5
0 6
1000 7
2000 8
3000 9
4000 10
5000 11
6000 12
7000 13
8000 14
9000 15


Goes this make sense?
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"