+ Reply to Thread
Results 1 to 5 of 5

Picking up a particular list

  1. #1
    Forum Contributor
    Join Date
    11-13-2010
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    307

    Picking up a particular list

    I have nine columns of numbers (A through J) with numbered headers on Row 1 of 0 through 9 on worksheet 1. (I've also tried by using "name ranging" the headers (i.e.: ZERO, ONE, TWO, etc).

    Each column has a list of numbers up to 50 numbers starting on row 2 down to row 51 (i.e.: A2:A51, etc).

    On worksheet 2 I've used the following coding using numbers in the coding:

    A1 is where I put a number (let's say 2).

    I'm wanting the entire associated list of numbers from Worksheet 1 Column C to appear starting A2 down to A51.

    =IF($A$1>0,OFFSET(CHOOSE('FINAL SORT'!$A$1,0,1,2,3,4,5,6,7,8,9),ROW()-2,0))

    Also tried by name ranging the Row 1 header:

    =IF($A$1>0,OFFSET(CHOOSE('FINAL SORT'!$A$1,ZERO,ONE,TWO,THREE,FOUR,FIVE,SIX,SEVEN,EIGHT,NINE),ROW()-2,0))

    I've also tried as an array and just as a straight copy down.

    And all I get is a #VALUE!

    What have I missed in the coding?
    Last edited by khank; 02-17-2011 at 05:41 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Picking up a particular list

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    11-13-2010
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    307

    Re: Picking up a particular list

    Attach is a sample workbook.

    Sheet 2 -

    Column A coding:

    =IF($C$1>0,OFFSET(CHOOSE(Sheet1!$C$1,ZERO,ONE,TWO,THREE,FOUR,FIVE,SIX,SEVEN,EIGHT,NINE),ROW()-2,0))

    Column C coding:

    =IF($C$1>0,OFFSET(CHOOSE(ALT Sheet1!$A$1,0,1,2,3,4,5,6,7,8,9),ROW()-2,0))

    As you'll see I just want to enter a number on A1, since that wasn't working I though maybe name ranged headers would work C1.

    On "Sheet 1" are the nine columns of numbers with "name range" headers on Row1.

    On "ALT Sheet1" are also the nine columns of number but with number headers on Row1.

    It's obvious I'm missing something. You can see the error I'm getting.
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Picking up a particular list

    In A2:

    =INDEX(Sheet1!$A:$J,ROW(),MATCH($A$1,Sheet1!$A$1:$J$1,0))

    copied down

    in C2:

    =INDEX('ALT Sheet1'!$A:$J,ROW(),MATCH($C$1,'ALT Sheet1'!$A$1:$J$1))

    copied down

    Format all the cells as custom: 0;-0;;@

  5. #5
    Forum Contributor
    Join Date
    11-13-2010
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    307

    Re: Picking up a particular list

    Thank you it works perfectly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1