Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2015, 07:41 AM
cazclocker cazclocker is offline Need help with drop-down menu please Windows 7 64bit Need help with drop-down menu please Office 2010 64bit
Novice
Need help with drop-down menu please
 
Join Date: Jan 2015
Posts: 5
cazclocker is on a distinguished road
Default Need help with drop-down menu please

I'm making a very simple excel spreadsheet for use in the machining industry, and it uses a drop-down list to offer different metal alloys commonly used in machining.



I want the drop-down list to offer a list of metals expressed in English words, number codes, or some combination. For example, "12L14" and "1144" are both commonly-known designations for steel alloys...or..."360" is a designation for a brass alloy. At any rate, I need the drop-down list to offer the choices using terms a machinist will understand.

My problem is that I can't figure out how to make a number associate itself with the different metal alloy designations - the numbers are used in a specific math formula for calculating the needed speed to set a milling machine or lathe to cut that particular metal. Each alloy has a certain numerical value called "surface feet per minute" that allows it to be machined well, so each metal alloy has a different number.

Some examples of the alloy designations with their SFPM numbers would be:
1144 = 50
Drill Rod = 50
12L14 = 80
Brass = 150
Aluminum = 250
Etc., etc., etc.

So how can I offer a drop-down list that offers metal alloy choices while elsewhere in the workbook a formula inserts a number for calculation that is unique to that metal alloy? I can write the formula with no problem, I just don't see how I can make the formula pick up the specific number I need based on the metal alloy the user chooses from my drop-down list.

Thanks in advance.
Reply With Quote
  #2  
Old 01-05-2015, 11:50 AM
gebobs gebobs is offline Need help with drop-down menu please Windows 7 64bit Need help with drop-down menu please Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Before I get into the how (if you need me to), see if the attached works to your liking.
Attached Files
File Type: xlsx MaterialSFPM.xlsx (11.0 KB, 10 views)
Reply With Quote
  #3  
Old 01-05-2015, 12:50 PM
cazclocker cazclocker is offline Need help with drop-down menu please Windows 7 64bit Need help with drop-down menu please Office 2010 64bit
Novice
Need help with drop-down menu please
 
Join Date: Jan 2015
Posts: 5
cazclocker is on a distinguished road
Default

Quote:
Originally Posted by gebobs View Post
Before I get into the how (if you need me to), see if the attached works to your liking.
Thanks for that. I think I see where you're going with that, but I would like the SFPM number to not appear in the 1st tab where the operator enters his variables. There are only two variables: metal alloy designation, and the diameter of the proposed cutting tool.

So...although I appreciate your input, I still need a way to associate a number with a given metal alloy designation.

Thanks...
Reply With Quote
  #4  
Old 01-05-2015, 01:10 PM
gebobs gebobs is offline Need help with drop-down menu please Windows 7 64bit Need help with drop-down menu please Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Quote:
Originally Posted by cazclocker View Post
So...although I appreciate your input, I still need a way to associate a number with a given metal alloy designation.
Let me see if I got this right. You want to enter a particular alloy grade (e.g. 12L14, 1018, etc.) and then calculate some equations using the value for SFPM that it looks up, right?
Reply With Quote
  #5  
Old 01-05-2015, 01:49 PM
cazclocker cazclocker is offline Need help with drop-down menu please Windows 7 64bit Need help with drop-down menu please Office 2010 64bit
Novice
Need help with drop-down menu please
 
Join Date: Jan 2015
Posts: 5
cazclocker is on a distinguished road
Default

Quote:
Originally Posted by gebobs View Post
Let me see if I got this right. You want to enter a particular alloy grade (e.g. 12L14, 1018, etc.) and then calculate some equations using the value for SFPM that it looks up, right?
Yes, exactly. I think you've got it! I want a list of metal alloys to be selectable from a drop-down list. That way my end users will merely choose their metal alloy by the names that they are familiar with. But since a formula can't know what the SFPM number for that alloy is, I would like (if possible) for a number to be somehow automatically associated with the particular alloy the user chooses. So that way, the user's alloy choice will "trigger" the correct SFPM number to be used in the formula for RPM calculation.
Reply With Quote
  #6  
Old 01-05-2015, 02:15 PM
gebobs gebobs is offline Need help with drop-down menu please Windows 7 64bit Need help with drop-down menu please Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

See attached. The user selects the alloy and enters the stock diameter. The formula for the RPM then is (I think):

=IFERROR(12*VLOOKUP(A2,MaterialSFPM,2,FALSE)/(PI()*C2),"")

Since the vlookup to find the SFPM is included in the formula, the SFPM column is superfluous and can be deleted.

For 1/4" stock brass, the formula returns 2292. If this is overly precise and you would like it rounded to the closest hundred (included as RPM rounded):

=IFERROR(ROUNDUP(12*VLOOKUP(A2,MaterialSFPM,2,FALS E)/(PI()*C2),-2),"")

For the closest, ten, change that -2 near the end to -1. Easy peasy. :-) It would probably be a good idea, once you have it all fleshed out, to lock any formula cells and protect the sheet. If you need any further help with that or anything else, let me know.
Attached Files
File Type: xlsx MaterialSFPM.xlsx (13.2 KB, 9 views)
Reply With Quote
  #7  
Old 01-05-2015, 03:34 PM
cazclocker cazclocker is offline Need help with drop-down menu please Windows 7 64bit Need help with drop-down menu please Office 2010 64bit
Novice
Need help with drop-down menu please
 
Join Date: Jan 2015
Posts: 5
cazclocker is on a distinguished road
Default

Quote:
Originally Posted by gebobs View Post
See attached. The user selects the alloy and enters the stock diameter. The formula for the RPM then is (I think):

=IFERROR(12*VLOOKUP(A2,MaterialSFPM,2,FALSE)/(PI()*C2),"")

Since the vlookup to find the SFPM is included in the formula, the SFPM column is superfluous and can be deleted.

For 1/4" stock brass, the formula returns 2292. If this is overly precise and you would like it rounded to the closest hundred (included as RPM rounded):

=IFERROR(ROUNDUP(12*VLOOKUP(A2,MaterialSFPM,2,FALS E)/(PI()*C2),-2),"")

For the closest, ten, change that -2 near the end to -1. Easy peasy. :-) It would probably be a good idea, once you have it all fleshed out, to lock any formula cells and protect the sheet. If you need any further help with that or anything else, let me know.
By jove, I think you've got it! You seem to have used a formula that I've never tried...the "IFERROR" formula. I think I can take that and run with it, but I might be back soon with another question or two.

Thank you!
Reply With Quote
  #8  
Old 01-05-2015, 04:07 PM
gebobs gebobs is offline Need help with drop-down menu please Windows 7 64bit Need help with drop-down menu please Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Glad I could help. The iferror in this case only accounts for if the alloy cell is blank, in which case the vlookup would return an error otherwise.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with drop-down menu please HELP -- Drop Menu for Reoccuring Data?? cscaudle Word 1 03-02-2014 10:19 AM
Drop down menu with different value to display name swsquish Word 1 09-04-2012 08:45 PM
Word 2003: Symbols in Drop Down Menu Morvo2031 Word 0 08-14-2012 07:11 AM
Number of files shown in drop down menu airpinto Office 1 10-02-2010 08:03 AM
Merge fields & Drop down menu's ShadeTree Word 0 03-09-2010 08:19 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:54 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft