Hi,
I need some advice and this forum and the people on it have been so helpful to me recently...
I've been trying to create a library app on excel and been faced with differing problems as I’ve gone along, each of which I’ve managed to the answer from this site. It’s getting quite complex so need some advice on whether I’ve done this the best way.
I’ve attached an image which would hopefully help explain the problems I’ve got.
It in the form of drop down lists which, dependent on your selection, brings up a separate list for you to choose from. I’ve changed the titles and options in the image but it gives you the idea; If you choose option 1, you then get to pick your colour, then the direction etc.
The practice use for this is going to involve a lot of repeat options hence the repeat choices in the image. Once you’ve made your choice, another formula will bring up a link to a word document. I am planning on differentiating between the choices with a number assigned to each choice; that’s why each one has a number against it.
If you choose option1, then red, then down, a separate cell will use a vlookup formula to tell you picked “112” (1-1-2). If you change to yellow it becomes “122” (1-2-2). Option 2, red, down would be “2518” (2-5-18) and so on.
The numbers were added as the strings would eventually be too long to work practically with. In the image I’ve just used directions in the list, but in reality, the options in the third and fourth drop down lists are going to be very long sentences, so I think it would be far easier to check for a number in a second column that a whole paragraph.
My problems begin with this vlookup. The drop down lists are easy to sort out using =INDIRECT, but the vlookup checks the entire column and returns the first match. So if I choose option1, blue, up, I’m hoping to get 1413 (1-4-13), but instead the vlookup is return the first match it finds in the column for “up” and returning just “1” so I’m getting “141” (1-4-1) instead. And when I choose option 2, blue up, Im trying to get “2829” (2-8-29), but instead I’m getting “241” (2-4-1); it’s return the wrong option from both the second and third drop down lists.
There’s no way I can change the names as it’s important to the whole point of creating it in the first place so is there a way of being able to tell it to return the “up” from the yellow list, instead of from the first “up” it finds which is in the wrong list?
The set up current has the drop down lists in cells D4, D6, D8 & D10 and the code used is:
=IF(COUNTBLANK(D4:D10)=4,"",(IF(D4<>"",VLOOKUP(D4,Lists!A3:B10,2,FALSE),"")&IF(D6<>"",VLOOKUP(D6,Lists!C2:D45,2,FALSE),"")&IF(D8<>"",VLOOKUP(D8,Lists!E2:F298,2,FALSE),"")&IF(D10<>"",VLOOKUP(D10,Lists!G2:H85,2,FALSE),""))*1)
The “IF(COUNTBLANK” code was added to make the box blank if nothing was selected and worked fine in a practice sheet I created when only 3 drop down lists were created, but now it’s got four its stopped and returns #VALUE?
The *1 at the end was to get it to recognize the value returned as a number which it wasn’t doing at first.
Any advice would be appreciated…
Bookmarks