+ Reply to Thread
Results 1 to 4 of 4

How to always make C5=B5 when I sort my data.

  1. #1
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    How to always make C5=B5 when I sort my data.

    I hope I explain this correctly....I have a table created in my sheet along with a pareto chart. I always want it to be sorted by column B (largest to smallest). Time to time a user will be adding rows or modifying existing rows with different values (only columns A and B).

    C5 is (C5=B5) and the rest of the cells under are basic math formulas.

    Problem is for example, say I changed the value in B7 to 30 which is largest number. If I now sort my data by column B largest to smallest, it screws up my C5. I always want C5 to equal B5. I tried doing an absolute value but it didnt work the way I wanted. By sorting my data, it also moves my formulas, which is the problem.

    Sheet is attached. Try to make C7 = 22. Then sort the data, the C5 will be changed, which I dont want it to do. I like to keep it a table because as the user adds new rows, it will populate the chart automatically.

    Capture.PNG

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to always make C5=B5 when I sort my data.

    Change the formula in C5 to =SUM(C4, B5) and copy down.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: How to always make C5=B5 when I sort my data.

    make cell c5 the following formula

    Please Login or Register  to view this content.
    and then copy down to all table cells in that column

    sorting by column B will no longer affect your cumulated totals. all formulas adapt themselfs automaticly

  4. #4
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Re: How to always make C5=B5 when I sort my data.

    hahaha I cant believe I didnt think of that! Thank you both, both ways worked.

+ 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. [SOLVED] Edit in Macro that make Sort for similar data
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-11-2016, 02:05 PM
  2. Help to make VBA sort, summarize and paste data into desired order/grouping
    By JBoldt in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-22-2016, 03:33 PM
  3. Replies: 2
    Last Post: 05-05-2015, 05:13 AM
  4. Can i write a code to sort data a-z BUT make all/any zeros appear after z
    By Muzza86 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-01-2014, 05:26 AM
  5. Replies: 7
    Last Post: 05-16-2013, 03:32 PM
  6. Replies: 5
    Last Post: 02-06-2013, 06:04 PM
  7. Replies: 1
    Last Post: 03-18-2005, 01:05 PM

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