Let’s say that it is this: C1=SUMIF($B$1:$B$100,“GoA”,$A$1:$A$100)
Sometimes my data in A1:B100 extends beyond row 100. I’m having trouble getting dopey intern to pay attention to the size of the data that he’s pasting into cols A&B, so I’m trying to help him out by setting up a check that will raise a flag if it’s out of whack.
I can count up the number of non-empty cells in col A (or B) quite easily, =COUNT(A:A).
What I want to do is check the cell references in the formula of C1 to see what they are, in particular, the “100” part of it and then compare it to the COUNT.
Any ideas how to do that or suggestions for another approach?
(Sometimes I border my ranges with a row of repeated characters such as Jables (no, seriously, a row of "="s or "x"s or "-"s), to show that, “Hey, you’ve got to keep your data inside of these bounds,” but that’s not fool proof either.)
The real answer is “Get rid of Excel for what you’re doing here, fool,” but I don’t have that sort of power/authority.
SUMIF sucks, format-wise. Which of your columns is being summed and which has the “GoA” in it? I cannot tell at a glance.
Use SUMPRODUCT((A1:A100=“GoA”)*(B1:100)).
See, now EVERYONE knows exactly which column is being summed and which has the condition. And, add as many conditions as you want, and EVERYONE will know that they are conditions. Heck, add another cross-producting column.
Note the extra parentheses at the beginning and end to denote the SUMPRODUCT’s beginning and ending.
Then you, as the intern’s teacher, need to emphasize how important it is, and how Excel sometimes does not know what you mean to do (like in defaulting two-digit years).
You can use a designated entry to denote the final one ‘XXX’ or some such. Then use a match function to set your sum range to 1 less than that. It will adjust automatically from there.
Well, I did take over a person’s work once. There were files on a network drive… that linked to his laptop, which was taken and repurposed. Seems he worked mainly from his laptop (reasonable, when the network is not in your building), and when he left, he copied some files to the network, but not all of them. Yay, me, I get to start from scratch!
For links, I’ll do it only if the files are in the same folder. So, if the folder gets copied (mine are usually yearly), the links inside the files get changed automatically.