Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-01-2014, 12:22 PM
amaka amaka is offline When I sort my data, the sumif report changes Windows 8 When I sort my data, the sumif report changes Office 2010 64bit
Novice
When I sort my data, the sumif report changes
 
Join Date: Feb 2014
Posts: 4
amaka is on a distinguished road
Default When I sort my data, the sumif report changes


Im relatively new to excel so please excuse me if the answer is obvious. I have a sheet with several columns. On sheet 2 I have sumif reports on based on the criteria in a specific range. When that range (text) is sorted, I get an accurate result. But when I sort any other column so that the criteria range is not 'arranged' the sumif report changes. please help This is the sumif equation
=SUMIF('Price all products'!B12:B23875,"hnd",'Price all products'!BDE12:BDE23875)
Reply With Quote
  #2  
Old 02-01-2014, 08:43 PM
BobBridges's Avatar
BobBridges BobBridges is offline When I sort my data, the sumif report changes Windows 7 64bit When I sort my data, the sumif report changes Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

Someone else may correct me, amaka, but I do think it's obvious. Your SUMIF function is looking at the values between rows 12 and 23875; but after you sort the data, I suppose that there are a different set of values in that range. Perhaps one of the values that was in row 33 is now in row 8, so it's outside the summed range; and some value that was in row 35133 is now in row 8305, so it's now inside that range.

I can't see your data so I can't be sure. But that's the first thing I think of.
Reply With Quote
  #3  
Old 02-02-2014, 12:18 PM
amaka amaka is offline When I sort my data, the sumif report changes Windows 8 When I sort my data, the sumif report changes Office 2010 64bit
Novice
When I sort my data, the sumif report changes
 
Join Date: Feb 2014
Posts: 4
amaka is on a distinguished road
Default sumif report changing when I sort

thanks a lot for responding however, I am attempting to upload the excel sheet to demonstrate the issue better. The filter is a row 12 so, the sorted values never go above 12. Also, the last row with any data in is is 738 so there is no way the data is outside the range. please see the attached file.
Attached Files
File Type: xlsx sumif but has tobe sorted.xlsx (55.0 KB, 9 views)
Reply With Quote
  #4  
Old 02-06-2014, 09:31 PM
BobBridges's Avatar
BobBridges BobBridges is offline When I sort my data, the sumif report changes Windows 7 64bit When I sort my data, the sumif report changes Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

I dunno, amaka, maybe you accidentally uploaded the wrong workbook. The one I'm looking at doesn't have any data past row 51:
Code:
=SUMIF('Price all products'!B12:B51,"hnd",'Price all products'!#REF!)
And the last range in the function has the #REF error. If this is the right workbook, maybe you deleted a bunch of rows to make the example simpler?
Reply With Quote
  #5  
Old 03-18-2014, 09:45 AM
amaka amaka is offline When I sort my data, the sumif report changes Windows 8 When I sort my data, the sumif report changes Office 2010 64bit
Novice
When I sort my data, the sumif report changes
 
Join Date: Feb 2014
Posts: 4
amaka is on a distinguished road
Default Still getting the wrong sumif report if I sort my data. SOS

Hello

This problem is literally driving me nuts. Please see the attached excel sheet. When The raw data sheet of all product is sorted by product I get a sunif in Jul on the premium sheet of 85200 which is wrong. When the price sheet is sorted by Product, I get a sumif value of 107800, the correct one.

How can I keep the sumif function correct regardless of the sorting in the original sheet.
Attached Files
File Type: xlsx excel question.xlsx (112.0 KB, 10 views)
Reply With Quote
  #6  
Old 03-18-2014, 12:55 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline When I sort my data, the sumif report changes Windows 7 64bit When I sort my data, the sumif report changes Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Not quite sure but I get 106800 by changing the sum range start row to 5 instead of 4 Like
Code:
 =SUMIF('all products'!B5:B23213,"premium",'all products'!BX5:BX23209)+SUMIF('all products'!B5:B23213,"premium",'all products'!CA5:CA23209)+SUMIF('all products'!B5:B23213,"premium",'all products'!CD5:CD23209)+SUMIF('all products'!B5:B23213,"premium",'all products'!CG5:CG23209)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #7  
Old 03-19-2014, 04:55 AM
amaka amaka is offline When I sort my data, the sumif report changes Windows 8 When I sort my data, the sumif report changes Office 2010 64bit
Novice
When I sort my data, the sumif report changes
 
Join Date: Feb 2014
Posts: 4
amaka is on a distinguished road
Default sumif report changing when I sort

Thanks, that seems to have fixed it!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
When I sort my data, the sumif report changes Projects Cash Flow Report in Excel not creating monthly data gardwr Project 2 09-02-2013 09:10 AM
When I sort my data, the sumif report changes Cannot Convert Text Cell to number format to be able to sort the data jyfuller Excel 10 06-19-2013 05:31 PM
When I sort my data, the sumif report changes Button Filtering Data in a 2010 Report runswick Word 1 10-20-2012 11:03 AM
sort data in excel cabot Excel 1 08-17-2012 09:41 AM
When I sort my data, the sumif report changes Sort Data rkeles Excel 6 02-04-2012 01:31 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:06 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft