Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 12
Default formula not working

I'm not sure why this isn't working ... please help.

A B
0.999 1
0.799 2
0.699 3
0.599 4
0.499 5
0.399 6
0.299 7
0.199 8
0.99 9

I just need to lookup a value in ,say, C1 and compare to colA and return a
value in colB.
Using: =IF(M41=0,10,IF(M411,0,VLOOKUP(M41,$C$60:$D$68,2) ))
yields #N/A for any value not 0 or 1.
What gives?



  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,440
Default formula not working

You did not include a 4th argument in your VLOOKUP call. That means that the table has to be sorted ascending. Bit it isn't.
Sort your table or use FALSE as 4th argument (which is probably what you require).
Make sure the underlying values match exactly, not just the values shown thru formatting.


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"JayPee" wrote in message ...
| I'm not sure why this isn't working ... please help.
|
| A B
| 0.999 1
| 0.799 2
| 0.699 3
| 0.599 4
| 0.499 5
| 0.399 6
| 0.299 7
| 0.199 8
| 0.99 9
|
| I just need to lookup a value in ,say, C1 and compare to colA and return a
| value in colB.
| Using: =IF(M41=0,10,IF(M411,0,VLOOKUP(M41,$C$60:$D$68,2) ))
| yields #N/A for any value not 0 or 1.
| What gives?
|
|
|


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 12
Default formula not working

Thank you ... sorting colA in ascending order worked!



"Niek Otten" wrote:

You did not include a 4th argument in your VLOOKUP call. That means that the table has to be sorted ascending. Bit it isn't.
Sort your table or use FALSE as 4th argument (which is probably what you require).
Make sure the underlying values match exactly, not just the values shown thru formatting.


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"JayPee" wrote in message ...
| I'm not sure why this isn't working ... please help.
|
| A B
| 0.999 1
| 0.799 2
| 0.699 3
| 0.599 4
| 0.499 5
| 0.399 6
| 0.299 7
| 0.199 8
| 0.99 9
|
| I just need to lookup a value in ,say, C1 and compare to colA and return a
| value in colB.
| Using: =IF(M41=0,10,IF(M411,0,VLOOKUP(M41,$C$60:$D$68,2) ))
| yields #N/A for any value not 0 or 1.
| What gives?
|
|
|



Reply
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula Not working SD Excel Discussion (Misc queries) 1 May 20th 08 05:27 PM
Formula only working sometimes KeK23 Excel Discussion (Misc queries) 2 October 7th 07 11:38 PM
Formula Sometimes Working Sometimes Not merry_fay Excel Discussion (Misc queries) 4 December 6th 06 03:36 PM
Formula not working Cinderella Excel Discussion (Misc queries) 1 August 26th 06 11:47 PM
formula not working Micayla Bergen Excel Discussion (Misc queries) 13 May 23rd 05 01:48 PM


All times are GMT +1. The time now is 11:52 PM.

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

About Us

"It's about Microsoft Excel"