| View previous topic :: View next topic |
| Author |
Message |
iMisspell Newbie

Joined: 30 Jan 2012 Posts: 3
|
Posted: Mon Jan 30, 2012 2:56 am Post subject: [Solved] Printing number multipule time adding to itself |
|
|
(Printing out a number multipule times while adding to itself?)
Hello all...
Im try to create a spread sheet that will calculate the number of indexes to make a gear with a 'Spin Indexer' and im stuck at the following...
I need to print out a number 'X' amount of times adding to itself, example:
15 needs to be added to itself 24 times:
15, 30, 45, 60, 75, 90, etc (24 times)
OR
18 added to itself 20 times
18, 36, 54, 72, etc (for 20 times)
This info can be printed to a single cell, or mult-rows, it dont matter, i just need the info so i can print it out on paper.
Right now i have the following:
A3 = (number of teeth) input from me, which will be the number that needs to be added to itself (15 or 18 from the example above)
B3 (DEG of index) =(360/A3) which will be the number of times A1 needs to be added to itself
- Two more columns which are not needed here, but ill post them anyway:
C3 =IF(360/A3 = INT(360/A3),"Yes","No") check if the B3 result is a whole number or not (the Spin Indexer can only do 1DEG increments)
D3 =IF(((360/A3)/10) = INT((360/A3) /10),"0",MOD(360/A3,10)) checks if the B3 result is an increment of 10, if not it grabs the last digit for viner pin placement (1DEG increments on the Spin Indexer).
If anyone can lend a hand and help me out that would be great...
Right now i just want to get it done, but an explanation with your response would be nice too
Thanks...[[/i]
Last edited by iMisspell on Mon Jan 30, 2012 11:01 pm; edited 1 time in total |
|
| Back to top |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8984 Location: Lexinton, Kentucky, USA
|
Posted: Mon Jan 30, 2012 9:33 am Post subject: |
|
|
I'm not sure just what you want but the formula in A4 to add A3 to itself is
=A3+A$3
Then just drag the formula down the column as may cells as needed. |
|
| Back to top |
|
 |
iMisspell Newbie

Joined: 30 Jan 2012 Posts: 3
|
Posted: Mon Jan 30, 2012 11:24 am Post subject: |
|
|
Thanks JohnV, getting there - much better then what i have now
How can i do the following ?
A3 = "user input"
B3 = "answer"
Have B3 add to itself (just like you have posted), BUT - instead of me dragging the formula down the column "X" amount of times manuely, it will auto-populate based on the A3 entry ?
Example:
A3 = 4 | B3 = 2
Then have a formula auto generate (4 times (so i do not have to drag down the cells)):
B4 = 4
B5 = 6
B6 = 8
B7 = 10
What you posted does 1/2 of what im looking for (better then nothing), but if possible i would like the "dragging" be auto based on the entry of A3.
Thanks again.
_ |
|
| Back to top |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8984 Location: Lexinton, Kentucky, USA
|
Posted: Mon Jan 30, 2012 12:37 pm Post subject: |
|
|
I don't know how to make a formula auto generate.
If in your last example you are just looking for the ultimate answer of 10 then you can do that in B4 with = B3*A3+1 |
|
| Back to top |
|
 |
ken johnson Super User

Joined: 23 Apr 2009 Posts: 1851 Location: Sydney, Australia
|
Posted: Mon Jan 30, 2012 2:30 pm Post subject: |
|
|
Use a formula that uses the B3 value to determine whether a number or a blank should be returned.
If the lowest possible A3 input is 1 then try this formula in B4 filled down to B363...
| Code: | | =IF(A$3=0;"";IF(ROW(B4)-ROW(B$4)+1>B$3;"";A$3*(ROW(B4)-ROW(B$4)+1))) |
Ken Johnson _________________ If your problem has been solved please add "[Solved]" to the beginning of your first post title (edit button). |
|
| Back to top |
|
 |
iMisspell Newbie

Joined: 30 Jan 2012 Posts: 3
|
Posted: Mon Jan 30, 2012 10:59 pm Post subject: |
|
|
Thank you both, with a slight edit (flipping a column in the second IF condition and print out "loop") i got Ken's example to do what i wanted.
| Code: | | =IF(A$3=0,"",IF(ROW(B4)-ROW(A[$4)+1>A$3,"",B$3*(ROW(B4)-ROW(B$4)+1))) |
| JohnV wrote: | | If in your last example you are just looking for the ultimate answer of 10 then you can do that in B4 with = B3*A3+1 | Nope, you had it correct before, i need them listed - the list of numbers are degrees which somethings needs to spin to, then stop (so you need the full list of numbers).
With your first example, the list would generate points/coordinates byond the number of teeth (the value in A3) - it was not that big of a deal, but if i could have the list stop listing at the correct number of teeth it makes it easier to read and print out to paper.
Here is the "machine" which i need the spread sheet coordinates for:
(top post explains how it works) bbs.homeshopmachinist.net/showthread.php?t=24263&page=2
Here is the spread sheet im working on if anyone is interested:
http://thewwwaddress.com/lathe_motor_pullies-AND-gears.ods
Its not complete (in the mist of working on it), but the 'Spin Indexer' (third) sheet is what i was asking about here.
You change the first columnes value (current 24) to the number of teeth you want to cut a gear to and it will generate how many and what degree points you need to index the 'Spin Indexer' machine to.
Thanks so much guys, you have been a big help.
_ |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|