+ Reply to Thread
Results 1 to 3 of 3

HOW DO I SORT NAMED CELLS ? (the name stays in the original place)

  1. #1
    Claude38
    Guest

    HOW DO I SORT NAMED CELLS ? (the name stays in the original place)

    Hello,

    I have an array of cells containing questions and answers. I want to
    present those question in a different order every time. So I generate a list
    of random numbers associated with the question-answer duets and I use those
    numbers to change the order when I need to. But for future processing, each
    answer cell has a name, and the name stays in its original place after
    sorting, which seems strange to me.

    Is there a way around this problem ?

    Thanks for helping.
    Claude

  2. #2
    Earl Kiosterud
    Guest

    Re: HOW DO I SORT NAMED CELLS ? (the name stays in the original place)

    Claude,

    Sorting effectively copies cells, not moves cells, something most apparent
    when you have formulas in the table that's been sorted, but also with range
    names -- they stay put. Perhaps you can use a name column instead of range
    names.
    --
    Earl Kiosterud
    www.smokeylake.com

    "Claude38" <[email protected]> wrote in message
    news:[email protected]...
    > Hello,
    >
    > I have an array of cells containing questions and answers. I want to
    > present those question in a different order every time. So I generate a
    > list
    > of random numbers associated with the question-answer duets and I use
    > those
    > numbers to change the order when I need to. But for future processing,
    > each
    > answer cell has a name, and the name stays in its original place after
    > sorting, which seems strange to me.
    >
    > Is there a way around this problem ?
    >
    > Thanks for helping.
    > Claude




  3. #3
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Claude,

    Sorting moves cell contents, not cells, but for your problem you could move the name to the column before the answer (ie, don't use the 'Name' feature, put a name in a cell) and use
    =Match("required-name",D:D,1)
    for names in column D to return to you the row number for your answer.
    I don't think the Match likes to find numbers even if described as text, but 'label9' etc works ok.

    Assuming that the answers are in culumn E and the 'Match' is in cell F1,
    =Indirect("E"&F1)
    should provide the answer you need.


    Quote Originally Posted by Earl Kiosterud
    Claude,

    Sorting effectively copies cells, not moves cells, something most apparent
    when you have formulas in the table that's been sorted, but also with range
    names -- they stay put. Perhaps you can use a name column instead of range
    names.
    --
    Earl Kiosterud
    www.smokeylake.com

    "Claude38" <[email protected]> wrote in message
    news:[email protected]...
    > Hello,
    >
    > I have an array of cells containing questions and answers. I want to
    > present those question in a different order every time. So I generate a
    > list
    > of random numbers associated with the question-answer duets and I use
    > those
    > numbers to change the order when I need to. But for future processing,
    > each
    > answer cell has a name, and the name stays in its original place after
    > sorting, which seems strange to me.
    >
    > Is there a way around this problem ?
    >
    > Thanks for helping.
    > Claude

+ 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