Sort function behaving strangely
Our take
I looked around in Microsoft Excel online help but came up empty-handed. Maybe someone here can help.
System information:
Excel information:
I’ve used the SORT function hundreds of times and have never encountered this before. Issue: I highlight (select) my data range, cells C4:J57 (54 rows X 8 columns), but when I go to sort my selection by clicking the Data tab, the three Sort options are grayed out. This function works fine when I perform the same operation on other data ranges of many various sizes. I even copied this range to a new sheet (thinking it could be the actual spreadsheet) but I got the same result. It must be something in the range itself but I don’t see anything weird. TBH, I don’t really know what I’m looking for anyway. Any ideas as to what might be causing this?
[link] [comments]
Read on the original site
Open the publisher's page for the full experience
Related Articles
- Sorting from A-Z Suddenly Not WorkingAfter cell 566, my spreadsheet stopped automatically formatting. I highlighted a bunch of cells underneath #566 and finally got it to format uniformly, but now it won't sort numbers 567-569 from A-Z in the "C" column. It appears that the program thinks anything underneath #566 is a new spreadsheet. I've Googled and tried a bunch of stuff. It's maddening. I do not want to accidentally delete this. I also want to thank the mods here for having the option to post images when you actually can't. I had to rewrite my entire post, which has taken up more time. submitted by /u/Gaygethesksmosin [link] [comments]
- Anomalous Sorting of COUNTIF ColumnsEDIT: Resolved as I was trimming the worksheet to upload a version with data redacted with replacement text. As I was removing extraneous worksheets, the formula broke with a #REF value. When I fixed them, the problem resolved. Looks like I was actually connected to another set of the same data, but since it as outside of the table, it was creating the anomaly inside of it. Essentially the issue outlined in this blog article, except A) I am not using the unnecessary sheet reference that fixes the problem if it's removed and B) the formula displays correctly: https://excelcharts.com/excel-sort-countif-function-mess-fix-it-how-to/ (Unfortunately, the data I'm working on is proprietary, so I can't share specifics. :( Images are mockups that simulate the results I'm getting.) I have a large table on Sheet1. Column A is a Date column that runs back several years. I would like to count instances in text column B going one year back as of the most recent update and then sort that from largest to smallest, so I can make a simple line graph with the top ten items. Updated iterations of this graph will be used in a routine report, I'm ultimately trying to draft a plug and play tool so my Excel-deficient coworkers can just Copy/Paste into Powerpoint. https://preview.redd.it/ad56jbjp0oog1.png?width=364&format=png&auto=webp&s=8fc6b43dfe338b2c93d3ce7945d5fe9b7e45e0e5 On Sheet2 I create a secondary table that will have 2 columns. The text column A and the Count column B. I have entered each unique Data value from Sheet1 into the Data column in Sheet2. In the Count column I enter the following formula: =COUNTIFS('Sheet1'!A:A,">="&MAX('Sheet1'!A:A)-365,'Sheet1'!A:A,">="&MAX('Sheet1'!A:A),'Sheet1'!B:B,A#) (Where # equal the row) The table on Sheet1 has over 20 columns and I ultimately want to create line graphs for the data in several columns. Since there will be several of these graphs, and the data in Sheet1 is appended with new, up to date data at least once a week, it makes more sense to list the range as 'Sheet1'!A:A rather than 'Sheet1'!A1:A# The formula works just fine. https://preview.redd.it/0gpltacq2oog1.png?width=260&format=png&auto=webp&s=0ba8b74005b82fa9f37813dde8f838af29d49b96 But when I try to sort by Count, it does what's pretty much spelled out in the above linked article, moving the Data cell to the correct row, with the formula adjusting to reflect it's new replacement, but returning the value associated with the Data in the row it was in before the sort. So we see "Item27" in row 28 has the highest count, with 56 occurrences. The formula in row 28 column B, as expected, is: =COUNTIFS('Sheet1'!A:A,">="&MAX('Sheet1'!A:A)-365,'Sheet1'!A:A,">="&MAX('Sheet1'!A:A),'Sheet1'!B:B,A28) After the sort, "Item27" is in row 2 (as expected) but is returning a count of 4, the amount of occurrences "Item17" (now sitting in "Item27"'s old position in row 28) returned before the sort. Of course, "Item17" is returning the wrong count as well. "Item1" was obviously displaced by "Item27" and is in it's expected row 19 but returning a count of 56, which is "Item47"'s actual count. Essentially, each "Item#" is returning a count of whatever "Item#" replaced them in their old position in the table. https://preview.redd.it/aknjet2x5oog1.png?width=249&format=png&auto=webp&s=d069620eed3867df4eabae42532654c089f1cef7 HOWEVER, unlike the example in the article, the formula sitting in B2 next to "Item47" is still correct: =COUNTIFS('Sheet1'!A:A,">="&MAX('Sheet1'!A:A)-365,'Sheet1'!A:A,">="&MAX('Sheet1'!A:A),'Sheet1'!B:B,A2) So.... what's the issue and how do I resolve it? Version: Microsoft Excel for Microsoft 365 MSO (v2508) Environment: Desktop My Knowledge: Intermediate submitted by /u/LikeCCClockwork [link] [comments]
- Excel sorting data incorrectly issueI want to sort a data set which contain age ranges 0-4, 5-9, 10- 14.. and so on. Issue comes when 5-9 does not come after 0-4 and instead comes after 45-49 and before 50-54. How to fix this? submitted by /u/BmB9947 [link] [comments]
- Why does Excel struggle so much with mixed data in the same column?I keep running into this with exported files. Same column, but you’ll have: numbers,text, currency,symbols... sometimes even blanks or notes Visually it looks fine, but the moment you try to sort, filter, or calculate… everything breaks. It feels like excel expects everything to be perfectly clean before you even start working. I kind of wish there was a simple way to normalize this automatically without having to fix it manually every time.. submitted by /u/No-Bowler-481 [link] [comments]