+ Reply to Thread
Results 1 to 3 of 3

Formula changing with sort

  1. #1
    Forum Contributor
    Join Date
    05-29-2012
    Location
    Walnut, Ca
    MS-Off Ver
    Excel 2010
    Posts
    182

    Formula changing with sort

    I don't know what I am doing wrong. I have a formula that works and when I filter, it stays with the correct row but when I sort by the columns it moves around incorrectly and changes. How do I get the formula to stay the it's correct row.

    13-14 budget.xlsm

    Its the tab titled "Student Worker List". When I sort by any of the columns the formula in column J gets all out of whack. Any suggestions?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Thumbs down Re: Formula changing with sort

    try
    =IF(ISNA(INDEX('Student Budget Balances'!$E$2:$E$13,MATCH(INDEX('Student Worker List'!$D:D,ROW()),'Student Budget Balances'!$A$2:$A$13,0))),"",INDEX('Student Budget Balances'!$E$2:$E$13,MATCH(INDEX('Student Worker List'!$D:D,ROW()),'Student Budget Balances'!$A$2:$A$13,0)))
    edit you have excel 2007 or later so you could use iferror insted
    =IFERROR(INDEX('Student Budget Balances'!$E$2:$E$13,MATCH(INDEX('Student Worker List'!$D:D,ROW()),'Student Budget Balances'!$A$2:$A$13,0)),"")
    Last edited by martindwilson; 09-11-2013 at 06:25 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    05-29-2012
    Location
    Walnut, Ca
    MS-Off Ver
    Excel 2010
    Posts
    182

    Re: Formula changing with sort

    Thank you, this worked like a charm.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 11-20-2012, 06:00 PM
  2. Sort changing values
    By mogabi in forum Excel General
    Replies: 3
    Last Post: 01-17-2011, 04:40 PM
  3. Changing Sort order
    By dkril in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2009, 12:03 PM
  4. changing sort priorities
    By chrislcox31 in forum Excel General
    Replies: 1
    Last Post: 07-10-2009, 09:22 PM
  5. [SOLVED] Preform alphabetical sort without formula in cell changing
    By ace in forum Excel General
    Replies: 1
    Last Post: 04-16-2005, 09:08 AM

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