Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
nospaminlich
 
Posts: n/a
Default Entering array in single cell

I want to create an array in a single cell and use that as a lookup. I
thought I'd found exactly what I need on Chip Pearson's site which describes
precisely what I'm trying to do but when I follow the instrucions my lookup
formula results in #REF!

If I try and enter the array with Ctrl-Shft-Enter I get the "the formula you
typed contains an error " message.

I'm confused! I must be missing something really obvious. The info from
Chip Pearson's site is below. I'd be grateful for an idiot's guide on
exactly how to get this to work.

Thanks a lot


----------------
........create a define name called "Grades" which refers to the array:

={0,"F";60,"D";70,"C";80,"B";90,"A"}

Then, use VLOOKUP to convert the number to the grade:

=VLOOKUP(A1,Grades,2)

where A1 is the cell contains the numeric value.
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi

i'm guessing you missed or misunderstood the
.......create a define name called "Grades" which refers to the array:
={0,"F";60,"D";70,"C";80,"B";90,"A"}


what this means is to choose insert / name / define - in the top line type
Grades
in the refers to box type
={0,"F";60,"D";70,"C";80,"B";90,"A"}
exactly as written (copy & paste) and commit using the enter key - (not
control & shift & enter)


Now try the VLOOKUP statement in a cell, again just using enter to commit.

Cheers
JulieD


"nospaminlich" wrote in message
...
I want to create an array in a single cell and use that as a lookup. I
thought I'd found exactly what I need on Chip Pearson's site which
describes
precisely what I'm trying to do but when I follow the instrucions my
lookup
formula results in #REF!

If I try and enter the array with Ctrl-Shft-Enter I get the "the formula
you
typed contains an error " message.

I'm confused! I must be missing something really obvious. The info from
Chip Pearson's site is below. I'd be grateful for an idiot's guide on
exactly how to get this to work.

Thanks a lot


----------------
.......create a define name called "Grades" which refers to the array:

={0,"F";60,"D";70,"C";80,"B";90,"A"}

Then, use VLOOKUP to convert the number to the grade:

=VLOOKUP(A1,Grades,2)

where A1 is the cell contains the numeric value.



  #3   Report Post  
nospaminlich
 
Posts: n/a
Default

Thanks a lot Julie. That's fixed it.

You were right. I misunderstood that part. I thought you had to enter the
array in a cell and the Define Name referred to that cell but I've got it now.

Thanks again
  #4   Report Post  
JulieD
 
Posts: n/a
Default

you're welcome and thanks for the feedback

"nospaminlich" wrote in message
...
Thanks a lot Julie. That's fixed it.

You were right. I misunderstood that part. I thought you had to enter
the
array in a cell and the Define Name referred to that cell but I've got it
now.

Thanks again



  #5   Report Post  
nospaminlich
 
Posts: n/a
Default

Just a thought....

The array here is relatively quick and easy to type in. If you wanted to
use the same principle for a much larger array is it possible to convert info
in a range of say A2:C40 into a format that could be copied into the Define
Name box thus allowing the info in those cells to be deleted? If so, how?

Thanks a lot



  #6   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

use

=YourRange

press enter, select the formula in the formula bar and press F9, copy.
Note that named formulas can only hold I believe 255 characters

--

Regards,

Peo Sjoblom

"nospaminlich" wrote in message
...
Just a thought....

The array here is relatively quick and easy to type in. If you wanted to
use the same principle for a much larger array is it possible to convert

info
in a range of say A2:C40 into a format that could be copied into the

Define
Name box thus allowing the info in those cells to be deleted? If so, how?

Thanks a lot



  #7   Report Post  
nospaminlich
 
Posts: n/a
Default

Excellent, thanks

"Peo Sjoblom" wrote:

use

=YourRange

press enter, select the formula in the formula bar and press F9, copy.
Note that named formulas can only hold I believe 255 characters

--

Regards,

Peo Sjoblom

"nospaminlich" wrote in message
...
Just a thought....

The array here is relatively quick and easy to type in. If you wanted to
use the same principle for a much larger array is it possible to convert

info
in a range of say A2:C40 into a format that could be copied into the

Define
Name box thus allowing the info in those cells to be deleted? If so, how?

Thanks a lot




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
Toggle multiple values in single cell Chandni Excel Worksheet Functions 5 February 10th 05 12:48 AM
how to add two data validation lists to a single cell? Mike Peter Excel Worksheet Functions 1 December 8th 04 08:22 PM
Paste rows of numbers from Word into single Excel cell BecG Excel Discussion (Misc queries) 1 December 8th 04 04:55 PM
how do i set up a single cell continual entry in excel to total f. mike@swallow Excel Discussion (Misc queries) 1 December 7th 04 12:29 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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