Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Using Index function to pluck cells?

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).
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Using Index function to pluck cells?

=choose(Z6,F6,K6,0)

--
Regards,
Tom Ogilvy


"Don Wiss" wrote in message
...
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).



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Using Index function to pluck cells?

On Mon, 20 Mar 2006 21:51:14 -0500, Tom Ogilvy wrote:

Don Wiss wrote:
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).
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Using Index function to pluck cells?

Within its limitations, it can be great. It is limited to 29 arguments.

--
Regards,
Tom Ogilvy

"Don Wiss" wrote in message
...
On Mon, 20 Mar 2006 21:51:14 -0500, Tom Ogilvy wrote:

Don Wiss wrote:
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).



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
Using INDIRECT Function and INDEX Function ChristopherG Excel Discussion (Misc queries) 1 June 10th 09 04:07 PM
Index function - problem copying to other cells klafert Excel Worksheet Functions 5 July 1st 07 04:38 PM
Index Function/Match Function M Moore Excel Discussion (Misc queries) 3 September 3rd 06 11:49 AM
How to pluck out initials of a 2 or 3 word name Craig Brody Excel Worksheet Functions 1 September 9th 05 03:59 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM


All times are GMT +1. The time now is 08:12 AM.

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"