Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2006

Tip: Looking for answers? Try searching our database.

Using Index function to pluck cells?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Don Wiss - 21 Mar 2006 01:52 GMT
Z6 is our index number. It can be either 1, 2, or 3. Putting numbers in an
array like this works:

=INDEX({1;1;0},Z6)

But I want it to pluck values from cells. So I tried this, which doesn't
work:

=INDEX({F6;K6;0},Z6)

I really don't want to move the values to adjacent cells to make a range.
Suggestions?

Don <www.donwiss.com> (e-mail link at home page bottom).
Tom Ogilvy - 21 Mar 2006 03:51 GMT
=choose(Z6,F6,K6,0)

Signature

Regards,
Tom Ogilvy

> Z6 is our index number. It can be either 1, 2, or 3. Putting numbers in an
> array like this works:
[quoted text clipped - 10 lines]
>
> Don <www.donwiss.com> (e-mail link at home page bottom).
Don Wiss - 21 Mar 2006 04:24 GMT
>> But I want it to pluck values from cells. So I tried this, which doesn't
>> work:
>>
>> =INDEX({F6;K6;0},Z6)

>=choose(Z6,F6,K6,0)

Thank you. I was not aware of the Choose function.

Don <www.donwiss.com> (e-mail link at home page bottom).
Tom Ogilvy - 21 Mar 2006 06:46 GMT
Within its limitations, it can be great.  It is limited to 29 arguments.

Signature

Regards,
Tom Ogilvy

> >> But I want it to pluck values from cells. So I tried this, which doesn't
> >> work:
[quoted text clipped - 6 lines]
>
> Don <www.donwiss.com> (e-mail link at home page bottom).
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.