Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Database (or the like) from Excel Sheet

I have an excel sheet that looks like the following

style weight1 weight2
x 1.5 2.5
y 1.7 2.9
z 2 3.1

and so on (except that my database has over 1000 styles with weights,
etc) What I want to do is build a simple database that when I search
for y, for example, it will return to me the weight 1 and weight 2
result. For example it would have a line that says... Style? ____
and I put in y and then it says weight1=x
weight2=y

OR, I could have a dropdown menu that has all of the styles in it and
when I select the style I wanted, it displays the weights 1 and 2....or
anything like that. Can anyone help me with starting that and also
maybe if you have a better idea of what to do, it would be appreciated

  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Database (or the like) from Excel Sheet

You could use data|validation to create that dropdown.
http://www.contextures.com/xlDataVal01.html

Then use =vlookup() to return the other info:
http://www.contextures.com/xlFunctions02.html

(Both links are to Debra Dalgleish's site.)

With the style dropdown in A1 of sheet1,
put this in B1:
=if(a1="",vlookup(a1,sheet2!a:c,2,false))
and this in C1:
=if(a1="",vlookup(a1,sheet2!a:c,3,false))

(and the table on Sheet2 in columns A:C.)

Ratedr wrote:

I have an excel sheet that looks like the following

style weight1 weight2
x 1.5 2.5
y 1.7 2.9
z 2 3.1

and so on (except that my database has over 1000 styles with weights,
etc) What I want to do is build a simple database that when I search
for y, for example, it will return to me the weight 1 and weight 2
result. For example it would have a line that says... Style? ____
and I put in y and then it says weight1=x
weight2=y

OR, I could have a dropdown menu that has all of the styles in it and
when I select the style I wanted, it displays the weights 1 and 2....or
anything like that. Can anyone help me with starting that and also
maybe if you have a better idea of what to do, it would be appreciated


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Database (or the like) from Excel Sheet

i think i did that exactly as written and all I get is a false. I sent
you a file that I cannot, unfortunately, post to the NGs for all to
look at. If there is anyway you could help I would greatly appreciate
it
Dave Peterson wrote:
You could use data|validation to create that dropdown.
http://www.contextures.com/xlDataVal01.html

Then use =vlookup() to return the other info:
http://www.contextures.com/xlFunctions02.html

(Both links are to Debra Dalgleish's site.)

With the style dropdown in A1 of sheet1,
put this in B1:
=if(a1="",vlookup(a1,sheet2!a:c,2,false))
and this in C1:
=if(a1="",vlookup(a1,sheet2!a:c,3,false))

(and the table on Sheet2 in columns A:C.)

Ratedr wrote:

I have an excel sheet that looks like the following

style weight1 weight2
x 1.5 2.5
y 1.7 2.9
z 2 3.1

and so on (except that my database has over 1000 styles with weights,
etc) What I want to do is build a simple database that when I search
for y, for example, it will return to me the weight 1 and weight 2
result. For example it would have a line that says... Style? ____
and I put in y and then it says weight1=x
weight2=y

OR, I could have a dropdown menu that has all of the styles in it and
when I select the style I wanted, it displays the weights 1 and 2....or
anything like that. Can anyone help me with starting that and also
maybe if you have a better idea of what to do, it would be appreciated


--

Dave Peterson


  #4   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Database (or the like) from Excel Sheet

I had a typo. Try these:

=if(a1="","",vlookup(a1,sheet2!a:c,2,false))
and
=if(a1="","",vlookup(a1,sheet2!a:c,3,false))


Ratedr wrote:

i think i did that exactly as written and all I get is a false. I sent
you a file that I cannot, unfortunately, post to the NGs for all to
look at. If there is anyway you could help I would greatly appreciate
it
Dave Peterson wrote:
You could use data|validation to create that dropdown.
http://www.contextures.com/xlDataVal01.html

Then use =vlookup() to return the other info:
http://www.contextures.com/xlFunctions02.html

(Both links are to Debra Dalgleish's site.)

With the style dropdown in A1 of sheet1,
put this in B1:
=if(a1="",vlookup(a1,sheet2!a:c,2,false))
and this in C1:
=if(a1="",vlookup(a1,sheet2!a:c,3,false))

(and the table on Sheet2 in columns A:C.)

Ratedr wrote:

I have an excel sheet that looks like the following

style weight1 weight2
x 1.5 2.5
y 1.7 2.9
z 2 3.1

and so on (except that my database has over 1000 styles with weights,
etc) What I want to do is build a simple database that when I search
for y, for example, it will return to me the weight 1 and weight 2
result. For example it would have a line that says... Style? ____
and I put in y and then it says weight1=x
weight2=y

OR, I could have a dropdown menu that has all of the styles in it and
when I select the style I wanted, it displays the weights 1 and 2....or
anything like that. Can anyone help me with starting that and also
maybe if you have a better idea of what to do, it would be appreciated


--

Dave Peterson


--

Dave Peterson
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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
import specific fields only from excel to database [email protected] Excel Discussion (Misc queries) 0 August 26th 06 10:26 AM
Desktop Shortcut to Specific Sheet in Excel joe_ssi Excel Discussion (Misc queries) 1 August 11th 06 06:12 PM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
make an excel worksheet (sheet 2) open w/ the cursor located in t. animated text in excel worksheet Excel Discussion (Misc queries) 0 February 10th 05 10:29 PM


All times are GMT +1. The time now is 03:22 AM.

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

About Us

"It's about Microsoft Excel"