Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 142
Default vlookup error even though data available

I have the following function
=LOOKUP(F11,{"A+","B+","C+","D+","A-","B-","C-","D-","A","B","C","D","F"},{100,85,70,55,90,75,60,45,9 5,80,65,50,40})
and when say cell F11 = A it returns #N/A even though the equivalent should
be 90 or if F11 = B or B- returns 100, is there anything wrong with this
formula. Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup error even though data available

The lookup_vector *must* be sorted in ascending order. Try it like this:

=LOOKUP(F11,{"A","A-","A+","B","B-","B+","C","C-","C+","D","D-","D+","F"},{95,90,100,80,75,85,65,60,70,50,45,55, 40})

--
Biff
Microsoft Excel MVP


"Jerry" wrote in message
...
I have the following function
=LOOKUP(F11,{"A+","B+","C+","D+","A-","B-","C-","D-","A","B","C","D","F"},{100,85,70,55,90,75,60,45,9 5,80,65,50,40})
and when say cell F11 = A it returns #N/A even though the equivalent
should
be 90 or if F11 = B or B- returns 100, is there anything wrong with this
formula. Thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 142
Default vlookup error even though data available

thanks a lot it did work. I have this formula and I would like to only be
true if the conditions are met, for instance if p2r2+6 then returns the
value of increase, under 6+ decrease otherwise no change.
=IF(ISERROR(MATCH(P2,R2,0)),IF(P2R2+5,"Decreased" ,"Increased"),"No Change")
This formula only works even if p2r2 regardless but not how I want my
response

"T. Valko" wrote:

The lookup_vector *must* be sorted in ascending order. Try it like this:

=LOOKUP(F11,{"A","A-","A+","B","B-","B+","C","C-","C+","D","D-","D+","F"},{95,90,100,80,75,85,65,60,70,50,45,55, 40})

--
Biff
Microsoft Excel MVP


"Jerry" wrote in message
...
I have the following function
=LOOKUP(F11,{"A+","B+","C+","D+","A-","B-","C-","D-","A","B","C","D","F"},{100,85,70,55,90,75,60,45,9 5,80,65,50,40})
and when say cell F11 = A it returns #N/A even though the equivalent
should
be 90 or if F11 = B or B- returns 100, is there anything wrong with this
formula. Thanks in advance




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup error even though data available

If I understand your requirements, try this:

=IF(COUNT(P2,R2)=2,IF(P2=R2,"No
change",IF(P2R2+6,"Increase","Decrease")),"")

--
Biff
Microsoft Excel MVP


"Jerry" wrote in message
...
thanks a lot it did work. I have this formula and I would like to only be
true if the conditions are met, for instance if p2r2+6 then returns the
value of increase, under 6+ decrease otherwise no change.
=IF(ISERROR(MATCH(P2,R2,0)),IF(P2R2+5,"Decreased" ,"Increased"),"No
Change")
This formula only works even if p2r2 regardless but not how I want my
response

"T. Valko" wrote:

The lookup_vector *must* be sorted in ascending order. Try it like this:

=LOOKUP(F11,{"A","A-","A+","B","B-","B+","C","C-","C+","D","D-","D+","F"},{95,90,100,80,75,85,65,60,70,50,45,55, 40})

--
Biff
Microsoft Excel MVP


"Jerry" wrote in message
...
I have the following function
=LOOKUP(F11,{"A+","B+","C+","D+","A-","B-","C-","D-","A","B","C","D","F"},{100,85,70,55,90,75,60,45,9 5,80,65,50,40})
and when say cell F11 = A it returns #N/A even though the equivalent
should
be 90 or if F11 = B or B- returns 100, is there anything wrong with
this
formula. Thanks in advance






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
VLOOKUP Error evoxfan Excel Discussion (Misc queries) 4 July 10th 09 03:57 AM
Error of slope taking into account error of the data points cer144 Excel Worksheet Functions 5 July 7th 08 07:26 PM
vlookup error [email protected] Excel Worksheet Functions 5 May 31st 07 02:52 PM
vlookup error Vlookup not accurate Excel Discussion (Misc queries) 0 October 4th 06 06:21 PM
VLookup N/A Error WandaSG Excel Discussion (Misc queries) 5 December 12th 05 07:48 PM


All times are GMT +1. The time now is 07:48 AM.

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"