+ Reply to Thread
Results 1 to 4 of 4

Formula Trouble When Sorting

  1. #1
    Registered User
    Join Date
    08-05-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    25

    Formula Trouble When Sorting

    Hi All,

    I feel like I am overlooking something simple, so any advice would be greatly appreciated. I have a table of data which includes names, manager names, and data I am pulling from another tab. Now when I go to sort the names in "agent list" the formulas in my "offered" column don't update to accurately reflect the data corresponding with the name.

    For example: David is in cell A22, the formula that pulls back his data is:
    =IF($O$1=1,(SUMIFS(Data!$E:$E,Data!$A:$A,Dashboard!$B$4,Data!$D:$D,Dashboard!A22)),SUMIFS(Data!$E:$E,Data!$A:$A,">="&$P$2,Data!$A:$A,"<="&$P$3,Data!$D:$D,Dashboard!A22))

    If I then sort the "Agent List" A-Z rather than the "offered" column switching to reflect the cell he is now in (a112) it keeps the cell he was originally in (a22) thus giving me the incorrect amount for offered.

    I could use a pivot table, but then I would only be able to sort by names, and not by the data totals.

    Thoughts?

    I've also attached a copy for your reference. The tab named "Dashboard" is where you will find exactly what I am talking about.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,383

    Re: Formula Trouble When Sorting

    Remove the Dashboard!

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-05-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    25

    Re: Formula Trouble When Sorting

    You have saved me so much hassle today, Trevor. I am so thankful!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,383

    Re: Formula Trouble When Sorting

    You're welcome.

+ 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. Trouble with sorting dates
    By txfireman in forum Excel General
    Replies: 14
    Last Post: 04-19-2014, 09:30 AM
  2. Trouble with sorting
    By petevang in forum Excel General
    Replies: 3
    Last Post: 11-23-2012, 11:13 AM
  3. still trouble with sorting
    By speedstr in forum Excel Programming / VBA / Macros
    Replies: 43
    Last Post: 05-24-2012, 05:12 PM
  4. Excel 2007 : Trouble Sorting
    By rev-o-lution in forum Excel General
    Replies: 3
    Last Post: 11-06-2010, 12:00 PM
  5. Trouble Sorting Data
    By gonzo5000 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 08-28-2007, 04:57 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