Thread: [Solved] 30 Shift Rolling Average
View Single Post
 
Old 05-30-2014, 12:28 PM
BobBridges's Avatar
BobBridges BobBridges is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

No thoughts about the "something" prohibiting you from attaching the sample, until you describe in more detail. What exactly prohibits you? What are the symptoms? Do you fall ill every time you try? Does the IRS spring an audit on you, thus distracting you? Or (just guessing here) do you get some kind of error message, and if so, what does it say?

Meanwhile this doesn't sound too hard. I expect you're adding new shifts by typing in a new row at the bottom of a worksheet or inserting a new one at the top, right? If the latter, you want a formula that will average one of the columns in the top 30 rows—data rows, excluding the worksheet headers if any—but a formula that at the same time won't "follow" the data down as you insert new rows.

If you want the bottom 30 rows, I'm sure it's almost as easy but I'm thinking about how to spot the last row in a formula. Of course you can write a worksheet function of your own to do this, but it oughta be easy enough using just standard worksheet formulae.
Reply With Quote