Now I barely have any experience with Excel, but I still know there's a function to sum up a range of cells. Hell, if I was that person and about to manually type in every single cell in an unbroken sequence of cells and didn't know there is a sum function, I'd still try to look up if there is one, because it just makes sense for there to be one.
While the sum function is the obvious answer excel let's you click on cells to select them, so they might not have written everything out. Although the weird parentheses makes me doubt that
The horrors of enterprise Excel usage are limitless. I've seen Excel being used as a form with large free text inputs, a print template, e-mail, project planner, and a code list where the background colors of the cells have special meaning and are interpreted by the parsing software.
It depends where the row is inserted, but you could use the indirect formula and “hardcore” 92 and it’ll never move (because I don’t think using $e$92 would solve it, that would act the same way)
I'm not sure what you are thinking but my vague thought is that the explicit reference is going to be different than any non explicit version.
If you say e92 it will never not be the cell you explicitly listed, even if its name changes. It is a weirdly precise distinction, the dollar sign or not. Passing the sum action a range will never be as precise.
That does not do the same thing as the submitted text.
If a row is instered anywhere between e7:e92 for any reason - line break, subtotal, whatever - then it will be added as part of the sum and the value of e93 - which used to be e92- will not be used.
The OP will ignore the value in the new inserted row and change all of the cell references after the insert.
The point, if I remember correctly, is that wherever you insert the row, say e20, is that the cell that was e22 becomes e23, e23 becomes e24.... e92 becomes e93...
The absolute version is a uses a $e$92 but that just means that whatever was in e92 becomes e93 and gets ignored...
I feel this is one of the things that law or programming teaches you - there are explicit meaning to things. Part of the submission literally can not be replaced - individually listed items will always be different than a compression even if most of the time it is identical.
I think that just moves the issue to the name definition. In the name definition either you list them all out individually or you select a range....
That might be better because then you have a handy name & place to edit it but you haven't gotten rid of the long list of cells.
I find it fascinating because it is reflects a larger issue of how we mental compress things. The obvious solution is to compress the information to e7:e92 somewhere cause it seems likely that is the experience that people would expect.
But in might not be how things are actually used. People are often smarter & dumber than people expect. Someone could have a keyboard macro they inherented from the person before that automatically inserts a line mid way in this range and does a thing.
If I remember right it automatically does the shorthand, but then will do a variation of the longhand upon edit of the range, say E2:E19,E21:E73 if adding in 20 pushed it out to 2-73, if that makes sense.
Makes sense but feels really weird. Normal when you define a range e2:e25 if you insert a row you would expect it to be included - that is the far more standard & expected situation.
¯_(ツ)_/¯
I don't have excel, don't use excel & can't test it....
This is my old knowledge when I worked for a group that wouldn't let me use anything other than excel so I had to bastardize some solutions. Couldn't even do VB to make use of the macro's...so I may have done something ungodly in the settings to make it work like that, not sure.
Yo why is this guy being downvoted? Isn't he right? As it is, if you were to add a row in the middle, it would update the cells refered to, and the added row would be ig ored by this function, as including it would require adding a specific reference to that cell. A sum function would see that the row was i between the referenced cells, and count the new row too.
The proper solution is a named range, will do what is done here, but without the stupid length. Plus now you have a variable name, making it easier to know what is going on
Because people are stupid and don't use Excel to know basics like these. That program is literally the only Office program worth downloading, and it's aimed for retarded accountants to increase productivity by being as un-fuckable as possible. It does an amazing job if you're not braindead or ignorant, which many people sadly are. Learn the basics of Excel, it will make your life a lot easier. I even edit text in Excel since it's a lot better than fucking Word.
You are right it could totally be a problem of a poor spreadsheet structuring.
Suppose Jim in accounting likes adding a subtotal cell at e20 sometimes. None of your sum versions will handle that correctly and jim refuses to change the choices he has made.
It is almost certainly true that a sum expression in fact acts more like what the final consumer expects to happen, include any data in the range, but we don't know from the OP.
My point is there is a subtle, important difference between a sum function and the one listed. That subtlety is where unexpected behavior spring from.
If you look at some of the other replies, people clearly have lost the distinction.
It looks like this comment contains a code block delimited with triple backticks. Unfortunately reddit does not have universal support for this syntax and your comment will not render correctly on old reddit and most mobile apps.
For the benefit of people on old reddit, this link will take you to a correct rendering of the comment.
/u/RGB755, it would be appreciated, but not required, if you could edit your comment to use the more compatible four space indention format. For single lines or inline code you can use single backticks.
Reddit can't just change that because then old comments will change formatting, so going back to posts made in, say, 2011 that relied on triple backticks not formatting to code blocks will suddenly have code blocks in them.
I tried to do some stuff with excel but all online tutorials didnt work cause it didnt find the functions. I was confused and thought ‚ok i have probably a newer version‘. The problem: My excel is in german so I don‘t have IF but rather WENN. I hope there is a way to change that
Lol that's so dumb. Coding languages should be considered their own language, translating function names is just a recipe for mistakes.
As an American currently working in Germany though, there is a way to just tell your excel to be in English, if you don't mind all the buttons and whatnot also being in English.
Google Sheets translates the fucking syntax so in some locales you use commas to separate arguments and in others you use semicolons. The worst bit is that the locally is a property of the sheet itself, so sharing sheets across international borders is Super Fun.
Just wait until you realize that usage of semicolons and commas mean different things between Excel on Windows and on Mac. I'm not sure, but language might have a role there to.
Edit: Yea, language plays a role here as well. For being such a cleverly designed application, Excel is surprisingly stupid.
It looks like this comment contains a code block delimited with triple backticks. Unfortunately reddit does not have universal support for this syntax and your comment will not render correctly on old reddit and most mobile apps.
For the benefit of people on old reddit, this link will take you to a correct rendering of the comment.
/u/SFM61319, it would be appreciated, but not required, if you could edit your comment to use the more compatible four space indention format. For single lines or inline code you can use single backticks.
I don't get what it is with Microsoft and doing shit like this.
Last week i was setting up a management scope in Exchange online and made a recipient filter for it that had a bunch if users and was (in my opinion at least) nicely formated.
sent it into New-ManagementScope, and apperantly Exchange figured that it wanted a whole bunch of extra parenteses on it and i ended up with something like in OPs image.
It worked, so i didn't bother doing anything more to try and "fix it" but it looked like crap. Figured i'll just never bother doing a Get-ManagementScope from now on.
I just had to fix an Excel spreadsheet where half of the functions used boolean logic but the author didn't know how booleans work, so instead it was all numbers and inequalities (that were inevitably wrong).
Lots of unnamed ranges, hidden cells, indirection, and a few data sources that were located on the author's workstation hard drive with local paths.
If I didn't know any better, I might think he was trying to do code golf.
The data behind this must be interesting to require such code. Feel as though this data could be set out in 4 columns if both the first and second values need adding separately, then the 3rd and 4th added separately together, the compounded the the first set.
31
u/Koyomi_Ararararagi Nov 22 '20
Could this have been generated by a program?
30
u/poison_us Nov 22 '20
If only there was
sumway to make this look better.609
u/[deleted] Nov 22 '20
Basically, none of those parentheses are necessary
112
u/katnajam Nov 22 '20
Somebody doesn't know SUM (E:X;E:Y)
137
u/DasherPack I transcribe code. Sometimes, correctly. Nov 22 '20 edited Nov 22 '20
Image Transcription: Excel Cell
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
21
u/Quietm02 Nov 22 '20
I have seen "code" worse than this in office spreadsheets. It blows my mind.
12
u/[deleted] Nov 22 '20
That's impressive matching parentheses like that
9
u/pkarlmann Nov 22 '20
I bet a lisp compiler would compile this...
7
u/pkarlmann Nov 22 '20
The lisp compiler at least made an ASCII art out of it....
13
u/[deleted] Nov 22 '20
for(int i = 7; i < 93; i++)buffer.append("(");5
u/iiMoe Nov 22 '20
Jesus christ and im not even a christian
5
u/[deleted] Nov 22 '20
Is there any good excel “code”?
3
u/just_fucking_write Nov 22 '20
That actually hurts to look at
2
u/barzamsr Nov 23 '20
Is this LGBT pride?
2
u/hamzy2002 Nov 22 '20
My eyes are burning, the colours are too much
2
u/fatalicus Nov 22 '20
I don't get what it is with Microsoft and doing shit like this.
Last week i was setting up a management scope in Exchange online and made a recipient filter for it that had a bunch if users and was (in my opinion at least) nicely formated.
sent it into New-ManagementScope, and apperantly Exchange figured that it wanted a whole bunch of extra parenteses on it and i ended up with something like in OPs image.
It worked, so i didn't bother doing anything more to try and "fix it" but it looked like crap. Figured i'll just never bother doing a Get-ManagementScope from now on.
1
u/Thenderick Nov 22 '20
Can't you simplify this with something like
Sum(E7:E92)?1
u/redditanomalyy Nov 22 '20
Is it that hard to write sum and select the column... pretty sure a google search would have taken a lot less than this
1
u/ReelTooReal Nov 22 '20
All Excel functions fit in this sub
1
u/0vercoded Nov 22 '20
I feel like most Excel functions fit in this sub
1
u/danfish_77 Nov 22 '20
I just had to fix an Excel spreadsheet where half of the functions used boolean logic but the author didn't know how booleans work, so instead it was all numbers and inequalities (that were inevitably wrong).
Lots of unnamed ranges, hidden cells, indirection, and a few data sources that were located on the author's workstation hard drive with local paths.
If I didn't know any better, I might think he was trying to do code golf.
1
u/root54 Nov 22 '20
Omg. Let me introduce you to
=sum(E8:E92)1
u/PerfectlyDarkTails Nov 22 '20 edited Nov 22 '20
The data behind this must be interesting to require such code. Feel as though this data could be set out in 4 columns if both the first and second values need adding separately, then the 3rd and 4th added separately together, the compounded the the first set.
1
u/cymbal909 Nov 22 '20
I blame those pesky financial calculators that don't use correct syntax. 6/2(2+1) = 1 bullshit
1
u/Whaison1 Nov 22 '20
They just made sure that the equation is really calculated from left to right...
1
u/frostbyte650 Nov 22 '20
Looks like scheme
1
u/morewordsfaster Nov 23 '20
SUMthing is wrong here, I can feel it...
1
u/rzk1911 Nov 23 '20
Like lisp, but more colorful
1
u/[deleted] Oct 20 '21
Lisp in a nutshell
1
u/GaiusCosades Apr 17 '22
Does the Excel Sum function use some algorithm like Kahan Summation, and addition does not?
I would guess so and then this could be more disasterous than one would think, given the right dataset!
1
u/pwuk Aug 22 '22
Excelsior
1
u/sammy-taylor Dec 03 '22
This is some great quality Lisp right here.
1
u/Martie_YT Nov 22 '20
Probably, but light mode doesn’t.
-2
u/Oshgnacknak Nov 22 '20
Read the rules: "Do not post snippets in esoteric languages"
-3
u/xlevidi Nov 22 '20
Haha it's bad because they put parentheses looooooool
Damn this sub has gone downhill