+ Reply to Thread
Results 1 to 5 of 5

List sorting problem with external cell references

  1. #1
    Registered User
    Join Date
    02-08-2008
    Posts
    4

    List sorting problem with external cell references

    Hi All,

    I'm not totally sure which forum is most appropriate for this question, so hopefully I chose the right one.

    I have a list that I'm trying to create. This list has four sets of columns. The cells in the "Mode Freq." column reference both the P, Q, and R cells in their respective rows as well as the numerical cells in the top three rows to make its calculation.

    What I'd like to do is create a list out of the data in B4 through E31 (the data in columns P, Q, R, and Mode Freq.). I can do this fine.

    The next thing I want to do is to be able to sort the mode frequencies, either ascending or descending. When I sort the list the Mode Freq. cells do not continue to "look" at their original three cells at the top to gather their information.

    For example, if during sorting, one of the rows was moved down five rows, the Mode Freq. cell is now looking to cells B6, B7, and B8 (instead of B1, B2, B3) and the calculations are all messed up. Is there a way to make this list sortable?

    Below is a link to the file.

    http://www.bicyclerecordings.com/various/RoomModes.xls
    Last edited by VBA Noob; 11-07-2008 at 04:19 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    your example image does not exist.

    It would be better if you posted an example file rather than a picture
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    02-08-2008
    Posts
    4
    Oops.

    Here's the file in question: http://www.bicyclerecordings.com/various/RoomModes.xls

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    You need to anchor your references to B1,B2 and B3 using $ so for example your formula in E5 copied down would be
    Please Login or Register  to view this content.
    . Whether you drag down or sort, those will be absolute references and won't change. Is that what you are looking for?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    02-08-2008
    Posts
    4
    Perfect, thanks!

+ 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