 | Senior Member with 110 posts. | | | | Solved: Excel Vlookup help needed I'm wondering if the Vlookup function can help with what I am attempting to do in Excel.
I'll try to explain what I want I need to have happen.
Cell A will contain a set value which the Vlookup will use as the row reference for the Vlookup.
Cell B will contain a value that represents a column on my reference value list, but it is variable and changes depending on what the initial value is in Cell A.
Cell C is where the final value is shown.
I have found, so far, a Vlookup will only tie on a 1-1 relationship. Can I get it to tie to a 1-many relationship, and how can I get it to do that? I'd prefer not to share the database as it contains very confidential information.
thanks! | | Distinguished Member with 6,988 posts. | | Join Date: Jul 2005 Location: The void AKA edge of the Fens Experience: I bent my wookie :( | | I'm probably barking up the wrong tree but ... are you looking for a two-way lookup? | | Senior Member with 110 posts. | | | | That looks like it!! I tried to use that and it seems really close. The problem I'm runing into is that its returning a value from an incorrect cell. I think we're on the right path, how do I get it to return the value from the correct cell?
Last edited by Ref2335 : 05-Jun-2007 09:57 AM.
| | Distinguished Member with 6,988 posts. | | Join Date: Jul 2005 Location: The void AKA edge of the Fens Experience: I bent my wookie :( | | Create a workbook with a small sample of your data and upload it -- we probably need to look at the cell B thing. | | Senior Member with 110 posts. | | | | Here is a sample of what I'm working on. It seems it is pulling the value from sheet2 column C. Sorry to have to be cryptic on the data in the spreadsheet as its all confidential. | | Distinguished Member with 6,988 posts. | | Join Date: Jul 2005 Location: The void AKA edge of the Fens Experience: I bent my wookie :( | | OK. I see that the combobox on Sheet1 is linked to B32 on Sheet2.
I don't follow the 2nd Choice/3rd Choice/4th Choice thing -- maybe you're thinking of adding more comboboxes later. (?)
But first, try these formulas in B12:E12 of Sheet1:
=INDEX(Sheet2!B$2:B$29,Sheet2!$B$32)
=INDEX(Sheet2!I$2:I$29,Sheet2!$B$32)
=INDEX(Sheet2!E$2:E$29,Sheet2!$B$32)
=INDEX(Sheet2!C$2:C$29,Sheet2!$B$32)
Are we close?
__________________ "Love All The People." Bill Hicks, 1961 - 1994 -- R.I.P.
"I am against religion because it teaches us to be satisfied with not understanding the world." Richard Dawkins
"OK, one last time. These are small... but the ones out there are far away. Small ... far away ..." Father Ted | | Senior Member with 110 posts. | | | | This is actually a spreadsheet that directs buyers where to look to buy parts. the 1st second 3rd etc are alternatives for the part that gets input by the drop down box. The cost field, the field I am having issues with(E12, E13, E14, E15), varies depending on the supplier which varies by where it falls in the heirachy.
B12:E12 are ok, they get populated by the dropdown. There should the same description in that field. | | Distinguished Member with 6,988 posts. | | Join Date: Jul 2005 Location: The void AKA edge of the Fens Experience: I bent my wookie :( | | Sorry, I don't really follow. The cost field ... well, which are the cost fields on Sheet2? sm -- dl -- v -- OEM -- U?
Try this in E12:
=INDEX(Sheet2!$M$2:$Q$29,Sheet2!$B$32,MATCH(D12,Sheet2!$M$1:$Q$1,0))
& copy down to E15. Then if the dropdown is Tube1, the "costs" should be:
more -- not much -- Contact team -- lots
E12 ("more") is picked up from Sheet2!N2 because "dl" matches Sheet2!N1 in Sheet2!M1:Q1.
E13 ("not much") is picked up from Sheet2!M2 because "sm" matches Sheet2!M1 in Sheet2!M1:Q1.
And so on.
Is that any closer?
__________________ "Love All The People." Bill Hicks, 1961 - 1994 -- R.I.P.
"I am against religion because it teaches us to be satisfied with not understanding the world." Richard Dawkins
"OK, one last time. These are small... but the ones out there are far away. Small ... far away ..." Father Ted | | Senior Member with 110 posts. | | | | | | | Distinguished Member with 6,988 posts. | | Join Date: Jul 2005 Location: The void AKA edge of the Fens Experience: I bent my wookie :( |
06-Jun-2007, 11:47 AM
#10 |
I love it when a plan comes together (by accident  ) -- enjoy. |  THIS THREAD HAS EXPIRED.
Are you having the same problem?
We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |  WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
| You Are Using: |
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:05 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd. Content Relevant URLs by vBSEO 3.2.0 | |
|