Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 791
Default Inserting metal values using data validation

I was wondering what excel tool or function I would use if I wanted to be
able to select a word from a data validation cell, in this case metals for
example

Copper
Aluminium ... etc

Once a metal had been chosen, certain cells in my sheet would take
appropriate preset values.

For example if copper was selected then the cells labelled conductivity,
weight... etc would then change to their set numerical values.

The only way I can think of is using a whole series of IF statements, i.e.
IF cell a1 = Copper, cell value = 0.0000465. But this does not seem like a
very eloquent way of doing it.

Thanks in advance,

Michael
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Inserting metal values using data validation

The only way I can think of is using a whole series of IF statements, i.e.
IF cell a1 = Copper, cell value = 0.0000465. But this does not seem like a
very eloquent way of doing it.


Using either vlookup or index/match would be far easier ways
to extract the details from the reference table

Here's an example file which illustrates it using vlookup:
http://www.savefile.com/files/1434608
DV n vlookup example.xls

The example construct:
Source reference table is assumed in Sheet2, cols A to C, data from row2
down, where col A = Metal, col B = Wt, col C = Conductivity

A defined range, Metal was created via InsertNameDefine
Names in workbook: Metal
Refers to: =Sheet2!$A$2:$A$4

In Sheet1,
DVs to select the metal in B2 down created via selecting the range (say
B2:B4), then clicking Data Validation, Allow: List, Source: =Metal

Then in C3, copied across/filled down:
=IF($B2="","",VLOOKUP($B2,Sheet2!$A:$C,COLUMNS($A: A)+1,0))
will return the results for wt & conductivity for the selected metal in col
B from the reference table in Sheet2
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Michael" wrote:
I was wondering what excel tool or function I would use if I wanted to be
able to select a word from a data validation cell, in this case metals for
example

Copper
Aluminium ... etc

Once a metal had been chosen, certain cells in my sheet would take
appropriate preset values.

For example if copper was selected then the cells labelled conductivity,
weight... etc would then change to their set numerical values.

The only way I can think of is using a whole series of IF statements, i.e.
IF cell a1 = Copper, cell value = 0.0000465. But this does not seem like a
very eloquent way of doing it.

Thanks in advance,

Michael

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 791
Default Inserting metal values using data validation

Thanks heaps, thats a great help!

Michael

"Max" wrote:

The only way I can think of is using a whole series of IF statements, i.e.
IF cell a1 = Copper, cell value = 0.0000465. But this does not seem like a
very eloquent way of doing it.


Using either vlookup or index/match would be far easier ways
to extract the details from the reference table

Here's an example file which illustrates it using vlookup:
http://www.savefile.com/files/1434608
DV n vlookup example.xls

The example construct:
Source reference table is assumed in Sheet2, cols A to C, data from row2
down, where col A = Metal, col B = Wt, col C = Conductivity

A defined range, Metal was created via InsertNameDefine
Names in workbook: Metal
Refers to: =Sheet2!$A$2:$A$4

In Sheet1,
DVs to select the metal in B2 down created via selecting the range (say
B2:B4), then clicking Data Validation, Allow: List, Source: =Metal

Then in C3, copied across/filled down:
=IF($B2="","",VLOOKUP($B2,Sheet2!$A:$C,COLUMNS($A: A)+1,0))
will return the results for wt & conductivity for the selected metal in col
B from the reference table in Sheet2
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Michael" wrote:
I was wondering what excel tool or function I would use if I wanted to be
able to select a word from a data validation cell, in this case metals for
example

Copper
Aluminium ... etc

Once a metal had been chosen, certain cells in my sheet would take
appropriate preset values.

For example if copper was selected then the cells labelled conductivity,
weight... etc would then change to their set numerical values.

The only way I can think of is using a whole series of IF statements, i.e.
IF cell a1 = Copper, cell value = 0.0000465. But this does not seem like a
very eloquent way of doing it.

Thanks in advance,

Michael

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Inserting metal values using data validation

"Michael" wrote:
Thanks heaps, thats a great help!


Welcome. Perhaps you could just take a moment to press the "Yes" button to
the question: "Was this post helpful to you?" from where you're reading this.
It'll ensure a longer shelf life to this thread for the general benefit of
other readers.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Validation with Changing Values Steven M. Britton Excel Discussion (Misc queries) 2 January 5th 07 07:40 PM
Data Validation - combination of values Suzanne Excel Discussion (Misc queries) 3 January 3rd 07 01:11 AM
Data Validation - but not restricting values Jon5001 Excel Discussion (Misc queries) 5 July 26th 06 03:25 AM
using data validation and inserting more than one item in a field pattie Excel Discussion (Misc queries) 1 March 15th 06 02:20 AM
Inserting rows with Data, Formula's and Validation Doug Manning Excel Discussion (Misc queries) 0 September 17th 05 12:26 AM


All times are GMT +1. The time now is 02:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"