Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Question for excel guru's


neurosis
 Share

Recommended Posts

Im creating an excel file to calculate my drill speeds/feeds/chiploads/etc automatically. This isnt something important, its just a project to help me learn excel. Anyway, When I enter a formula and copy it down, it changes the values accordingly (a1 becomes a2 etc). Is there a way to copy the cell formula down yet have it leave "ONE" of the values to a single cell in all of the copies? so if you were doing =a2+f2 then copy down would be a3+f3, I would like to have it be a3+f2 leaving the f2 for all of the copies. Is this possible?

Link to comment
Share on other sites

Also, a shortcut to get the absolute reference is to press F4 in Excel, or Shift+F4 in Open Office after you either type in a cell value, or click on a cell to input that value in a formula.

 

Example for Open Office:

in a cell enter "=B2" then press Shift+F4.

It will change to $B$2, as you press Shift+F4 additional times it will toggle through $B2, B$2, $B$2. What that is doing is giving you an abolute reference to the column, the row, or the column and row.

 

The example above didn't work because the $ needs to proceed the column or row, so F$2$ is invalid (should be $F$2). F$2 is absolute reference to only row 2 although it works for your application apparently.

Link to comment
Share on other sites

One more question. Bare with me here... This is my first day even attempting to mess with excel. Now I have my columns set how I want them. When I copy the formula's down the rows it automatically enters numbers or text when there is nothing for it to go by. How do I keep it from entering the garbage unless there is something for it to reference? I hope that made sense. I removed the formulas from the rest of the rows and only have two rows entered right now for testing. I put it on the ftp site

Text_&_post_files_&_misc/DRILL_CHIP_LOAD_calculator.xls

if anyone wants to check it out. I could use some suggestions. Im going to be using it to help me create my tool libraries. I'll make another one for endmills etc.

Link to comment
Share on other sites

The easiest thing for you might be to use a formula (using your chipload column formula as an example) like:

code:

=IF(ISBLANK(B3)=0;(IF(B3/64<$L$9;B3/64;$L$9));"blank")

Replace "blank" in the above formula with "" so it gives you a blank cell. I just put that there for illustration.

 

Note there is a difference between a cell where you don't see anything and a truly blank cell. If you get 0.000 as a result, its because you have a space or other character in the B column. Highlight the cells and press Delete -> Delete All

 

This example is just nesting another IF statement with what you have. It tests to see if B3 is blank. If it is not blank, it uses your formula, if it is blank it gives "". Since the cell reference is not absolute, as you copy it should populate with a cell address from the proper row.

 

You could just copy that formula down the column for a few hundred cells or however many then lock them. To do that without dragging the little crosshair, you can select the cells you want using Shift+PgDn then Edit -> Fill -> Down

 

There are other ways to do this also. This is one might not be the most elegant, but it's pretty simple.

 

For Excel you could use the ISEmpty function

 

[ 03-19-2008, 01:17 AM: Message edited by: Jerosu ]

Link to comment
Share on other sites

Heh.... that got a little complicated. I can see how it works sorta. The only thing i dont quite understand is why after the (B3) you have to have the =0 .

 

One more thing too.. I try the same thing in the chip load reduction column and it doesnt seem to work. Is that because the column that its referencing has a formula in it and is not truly blank? How do you solve that problem? It wants to put a 0 in there.

 

I also notice that

 

code:

IF(ISBLANK(B3)=0;IF(B3/64<L$9;B3/64;L$9);"")  

works too but im not really sure what the difference is. there are extra () in your original that i forgot to put in but it worked anyway.

 

[ 03-19-2008, 01:58 AM: Message edited by: Neurosis ]

Link to comment
Share on other sites

Thank you Jerosu. Youve been a ton of help. In open office it works flawlessly! Im going to change it so that it works in excel and save it so that it will work in either. Then im going to add all of the drills and diameters and see the result. If it helps to build my tool library in mastercam i'll start endmill sheet.

 

Thanks again.

 

DRILL_CHIP_LOAD_calculator_FINAL.xls

 

if you want to check it out its done now.

 

[ 03-19-2008, 11:18 AM: Message edited by: Neurosis ]

Link to comment
Share on other sites

The math for the formula quit working. If you look at row 111 in the I column the math doesnt work out. The feed rate column formula says to multiply H (the rpm) and C (the chipload) and if you calculate it out its not doing the math correctly. Its the easiest formula int he whole sheet and for some reason when the rpm falls between the min and max numbers the math fails.

 

code:

=IF(ISBLANK(B111)=FALSE,H111*C111,"")  

H111 = 7903 and C111 = .0045. The answer should be 35.56 but its coming out to 35.813.

 

The values get worse after that. Row 111 - 126 are all coming up with 35.813 even though the values in the H and C colums are different in every row. its not making any sense to me.

Link to comment
Share on other sites

Damn..... the math is working better than I thought. So the fields are rounding numbers "ie the c111 and H111" but the formula is using the whole numbers?? I should have done some calculations before freaking out. I notice the difference in the ipr is only about .00004. Strange that it rounds that way for quite a while.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...