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
Database (or the like) from Excel Sheet Ratedr Excel Discussion (Misc queries) 3 September 21st 06 09:52 PM
Row from database in Excel sheet John Smith[_18_] Excel Programming 1 January 11th 06 04:37 PM
How to insert Excel sheet to a DB2 database fandecine Excel Programming 1 August 15th 05 09:31 PM
Database connected Excel sheet on Web Amit Bhavsar Excel Programming 0 December 3rd 04 04:54 PM
Updating database from excel sheet with macro Suzana Excel Programming 2 December 16th 03 08:11 AM


All times are GMT +1. The time now is 06:44 AM.

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"