runnin4tay5000
New Member
- Joined
- Jul 28, 2008
- Messages
- 10
Hi all...I have a bunch of data in a table, and I am trying to write a custom function to call that data based on the function inputs. Here is an example of the data:
[TABLE="width: 512"]
<tbody>[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Motor[/TD]
[TD]HP[/TD]
[TD]RPM[/TD]
[TD]Alpha[/TD]
[TD]Beta[/TD]
[TD]Gamma[/TD]
[/TR]
[TR]
[TD]EE[/TD]
[TD]5[/TD]
[TD]3600[/TD]
[TD].93[/TD]
[TD].03[/TD]
[TD].30[/TD]
[/TR]
[TR]
[TD]EE[/TD]
[TD]7.5[/TD]
[TD]3600[/TD]
[TD].98[/TD]
[TD].1[/TD]
[TD].2[/TD]
[/TR]
[TR]
[TD]EE[/TD]
[TD]10[/TD]
[TD]3600[/TD]
[TD].86[/TD]
[TD].25[/TD]
[TD].4[/TD]
[/TR]
[TR]
[TD]EE[/TD]
[TD]15[/TD]
[TD]3600[/TD]
[TD].7[/TD]
[TD].5[/TD]
[TD].5[/TD]
[/TR]
[TR]
[TD]EE[/TD]
[TD]20[/TD]
[TD]3600[/TD]
[TD].89[/TD]
[TD].5[/TD]
[TD].45[/TD]
[/TR]
</tbody>[/TABLE]
the table I have is 86 rows. The Alpha, Beta and Gamma columns are used in an equation, the Motor, HP and RPM are user inputs in the function that will be used to reference the data in the table. In my spreadsheet I can do an index/match to easily pull the data I need, but i need to create a custom function and do an index/match in the function based off the user inputs.
How can I "save" the data I have into the function (or somewhere) that will allow me to call it from my function? This function will be used across my company, so it needs to follow the function or .xla where the functions are ported across my company. Thank you in advance for the help!
[TABLE="width: 512"]
<tbody>[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Motor[/TD]
[TD]HP[/TD]
[TD]RPM[/TD]
[TD]Alpha[/TD]
[TD]Beta[/TD]
[TD]Gamma[/TD]
[/TR]
[TR]
[TD]EE[/TD]
[TD]5[/TD]
[TD]3600[/TD]
[TD].93[/TD]
[TD].03[/TD]
[TD].30[/TD]
[/TR]
[TR]
[TD]EE[/TD]
[TD]7.5[/TD]
[TD]3600[/TD]
[TD].98[/TD]
[TD].1[/TD]
[TD].2[/TD]
[/TR]
[TR]
[TD]EE[/TD]
[TD]10[/TD]
[TD]3600[/TD]
[TD].86[/TD]
[TD].25[/TD]
[TD].4[/TD]
[/TR]
[TR]
[TD]EE[/TD]
[TD]15[/TD]
[TD]3600[/TD]
[TD].7[/TD]
[TD].5[/TD]
[TD].5[/TD]
[/TR]
[TR]
[TD]EE[/TD]
[TD]20[/TD]
[TD]3600[/TD]
[TD].89[/TD]
[TD].5[/TD]
[TD].45[/TD]
[/TR]
</tbody>[/TABLE]
the table I have is 86 rows. The Alpha, Beta and Gamma columns are used in an equation, the Motor, HP and RPM are user inputs in the function that will be used to reference the data in the table. In my spreadsheet I can do an index/match to easily pull the data I need, but i need to create a custom function and do an index/match in the function based off the user inputs.
How can I "save" the data I have into the function (or somewhere) that will allow me to call it from my function? This function will be used across my company, so it needs to follow the function or .xla where the functions are ported across my company. Thank you in advance for the help!