Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
HollywoodSam
 
Posts: n/a
Default Sort does not preserve string of additions

6/4/06 sam <at sign isiusa.com
Sort does not preserve string of additions
Ref rows 1-6 are original data
Ref rows 1-6 copied and sorted by date (col B)
Addition string is then incorrect

ref ORIGINAL DATA
1 4-Jun $1.00 fuel
2 3-Jun $1.00 fuel
3 3-Jun $50.00 other
4 1-Jun $1.00 fuel
5 2-Jun $1.00 fuel
6 Total "fuel" by "+" function $4.00

ref SORTED DATA
4 1-Jun $1.00 fuel
5 2-Jun $1.00 fuel
2 3-Jun $1.00 fuel
3 3-Jun $50.00 other
1 4-Jun $1.00 fuel
6 Total "fuel" by "+" function $53.00

Office Excel 2003 (11.8012.6568) SP2
Part of Office Professional Edition
--end


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Sort does not preserve string of additions

If your data is arranged like this:
Col_A contains dates
Col_B contains amounts
Col_C contains categories

It seems like you're summing the fuel values by specific reference:

Example:
B6=B1+B2+B4+B5

Sorting won't change that kind of formula

Try something like this:
B6: =SUMIF(C1:C5,"fuel",B1:B5)

That will only sum the Col_B values where the Col_C value matches "fuel"

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"HollywoodSam" wrote:

6/4/06 sam <at sign isiusa.com
Sort does not preserve string of additions
Ref rows 1-6 are original data
Ref rows 1-6 copied and sorted by date (col B)
Addition string is then incorrect

ref ORIGINAL DATA
1 4-Jun $1.00 fuel
2 3-Jun $1.00 fuel
3 3-Jun $50.00 other
4 1-Jun $1.00 fuel
5 2-Jun $1.00 fuel
6 Total "fuel" by "+" function $4.00

ref SORTED DATA
4 1-Jun $1.00 fuel
5 2-Jun $1.00 fuel
2 3-Jun $1.00 fuel
3 3-Jun $50.00 other
1 4-Jun $1.00 fuel
6 Total "fuel" by "+" function $53.00

Office Excel 2003 (11.8012.6568) SP2
Part of Office Professional Edition
--end


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sorting data on protected worksheet Sue Excel Discussion (Misc queries) 20 November 7th 06 07:31 PM
Sort Ascending button - Excel 2003 Ann Scharpf Excel Discussion (Misc queries) 0 May 23rd 05 11:11 PM
Sort Ascending button - Excel 2003 bigwheel Excel Discussion (Misc queries) 1 May 23rd 05 11:10 PM
HELP! How do you--> Lock a set of rows but also link worksheets to FRUSTRATED Excel Discussion (Misc queries) 6 December 29th 04 10:05 PM
Data > Sort function amnesia? Dave D Excel Discussion (Misc queries) 1 November 29th 04 10:44 PM


All times are GMT +1. The time now is 05:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"