Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Another Problem 3

Status
Not open for further replies.

dik

Structural
Apr 13, 2001
26,055
Can someone show me how to 'skip' cells to provide data every 'n'th year, in the sheet attached, I've used 3 years as 'n', but, it could be 5 or 10 or whatever. incrementing each year from a fixed amount to an uniform increase.

Dik
 
Replies continue below

Recommended for you

Thanks Hoaok... I'll have to sit down and sort it out... The increment is annual, not occurrance... good place to start, and I use variables all the time... it's a more correct approach...

Thanks, Dik
 
Those solutions are a WHOLE lot more complex than necessary and don't give contiguous output.
Better is to learn what the OFFSET function can do for you.

"People will work for you with blood and sweat and tears if they work for what they believe in......" - Simon Sinek
 
 http://files.engineering.com/getfile.aspx?folder=e66f30fb-55b3-4b9f-9d90-d0a91a3bf65c&file=BigInch's_Solution.xls
Just another way, modify formula in cell C9 of original spreadsheet:
Code:
=IF(MOD(C7-$B$7,$C$4),"",$C$3+(C6-1)*$C$2)
and copy it along row 9.
 
Lots of good solutions. All work.
Fwiw, I like the elegance of BigInch's solution.
Easier to build, understand, maintain, and gather the output (for example lookup)

=====================================
(2B)+(2B)' ?
 
I get thousands of milepost and elevation data points along pipeline routes. Most are totally unnecessary for any purpose, so I have to immediately eleminate 99 out of every 100 or even thousands at a time, or I have to grab groups of points within intervals to scan for high and low points within the range. I came up with using the offset method as an easy way to extract only a setof the points within any interval that looks useful at the time, or even extract random points within set intervals. The offset function is quite versitile at those tasks. The contiguous output is useful for easily plotting elevation profiles too.

"People will work for you with blood and sweat and tears if they work for what they believe in......" - Simon Sinek
 
Looks like that's just more proof that you can give water, but can't make them drink. :)

"People will work for you with blood and sweat and tears if they work for what they believe in......" - Simon Sinek
 
BigInch... your solution method is good, and I will use it, but not for this project. I like your OFFSET function approach and will use it. The one presented by Yakpol is similar to mine, except he, more clearly, uses the MOD function and not the INT function that I used. The final method I posted is modified from his. It can be used as the framework for a Condominium Costing program where the sums along the bottom are the expenditures for the year and the horizontal sum, modified for present or future, value can be determined. If you use an interval of 4 years in your example, the values don't change... whereas the completed one automatically adjusts the data to show each of four years...

If you needed a professional nutcracker that cost 1000 today, but the cost increased by 10 each year, but you only needed the services each three or four years... the final example accommodates that... and I can copy the lines easily... You can easily change the info in case the nutcracker was 1500 today and increased 20 each year but you only needed the services every six years.

Your OFFSET function approach to data is an excellent one, and I will use it... thanks...

Dik
 
 http://files.engineering.com/getfile.aspx?folder=61f08fb2-09e0-4560-b374-75897c0de286&file=finaltest.xls
If by "interval" you mean "skip year" = 4, my spreadsheet certainly changes when equal to 4 and seems to get the correct answers.
In fact I believe mine works for any "skip year" value >= 0

Are you using Excel?


"People will work for you with blood and sweat and tears if they work for what they believe in......" - Simon Sinek
 
Using an early Excel and the light green table changes with yours. It's the long horizontal one that I want to be able to have different intervals to sum that doesn't. Sorry, I wasn't clear. You can see from the last posting that I can sum/modify any and all of the years in question. As I noted, I liked your solution, and will use the method for other work. Sorry, I didn't mean to criticise your effort; it's a good solution for a different type of problem.

I posted the final method for others to gain from this brief 'learning excursion'...

Dik
 
I guess I still don't get what you want to do, but no matter. If you got what you need now, we're cool.
No offense taken at all. Totally cool.

"People will work for you with blood and sweat and tears if they work for what they believe in......" - Simon Sinek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor