Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Gail Gurman
 
Posts: n/a
Default Where is the bug in my array?

I've created an array of grade values:

{"A+","A","A-","B+","B","B-","C+","C","C-","D+","D","D-","F";4.3,4,3.7,3.3,
3,2.7,2.3,2,1.7,1.3,1,0.7,0.5}

The problem is that when use LOOKUP to look for "C-", I get 2.7 (which is
the value for B-) when I should get 1.7. (I.e., LOOKUP("C-", Array) returns
2.7, where Array is the array above.)

Here is the same array, formatted in rows (all I did was copy and paste it
into Notepad and add spaces):

{"A+","A","A-","B+","B","B-","C+","C","C-","D+","D","D-","F";
4.3, 4, 3.7, 3.3, 3, 2.7, 2.3, 2, 1.7, 1.3, 1, 0.7, 0.5}

Can anyone see what is causing this error?

Thanks in advance!
  #2   Report Post  
Gail Gurman
 
Posts: n/a
Default

Gail Gurman wrote in
:

I've created an array of grade values:

{"A+","A","A-","B+","B","B-","C+","C","C-","D+","D","D-","F";4.3,4,3.7,
3.3, 3,2.7,2.3,2,1.7,1.3,1,0.7,0.5}
The problem is that when use LOOKUP to look for "C-", I get 2.7 (which
is the value for B-) when I should get 1.7. (I.e., LOOKUP("C-", Array)
returns 2.7, where Array is the array above.)
Can anyone see what is causing this error?


Yet again, I solved my own problem. Turns out the elements in the first row
have to be in ascending order, so they have to be {"A","A-","A+",...}.
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
Working with array equations OkieViking Excel Discussion (Misc queries) 2 January 23rd 05 07:43 AM
Transpose into a _working_ transposed array Fred Holmes Excel Discussion (Misc queries) 1 January 13th 05 11:31 PM
What instead of an array formula part 2 Reg Besseling Excel Discussion (Misc queries) 2 December 10th 04 07:35 AM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM
Keeping Array values? MJSlattery Excel Worksheet Functions 0 November 5th 04 08:25 PM


All times are GMT +1. The time now is 09:29 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"