Vlookup Question

Cameron419

New Member
Joined
Apr 18, 2017
Messages
7
Hello, can I have more than one lookup value in a vlookup to return a value in another cell when a selection is made in a dropdown list?

The example I have is:

Dropdown list Columns:
C17
C18
C19
C20

If the user selects from the dropdown list a region that starts with a L in front of it, I need a note to pop up in C21. I can only get this note to pop up if the selection of a region that starts with a L is made in C17 but if it is not made in C17 and it is selected in C18 or C19 or C20, the note will not appear in C20.

Here is my vlookup currently:
=IF(ISNA(VLOOKUP(C17,'Periods & COGS'!V2:W41,2,FALSE)),"",(VLOOKUP(C17,'Periods & COGS'!V2:W41,2,FALSE)))

This is the result note when the selection is made at C17:
[TABLE="width: 332"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]SELECT UP TO 4 SERVICING PLANTS[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]C17 - PLANT 1[/TD]
[TD]L - Detroit[/TD]
[/TR]
[TR]
[TD]C18 - PLANT 2[/TD]
[TD]No Selection [/TD]
[/TR]
[TR]
[TD]C19 - PLANT 3[/TD]
[TD]No Selection[/TD]
[/TR]
[TR]
[TD]C20 - PLANT 4[/TD]
[TD]No Selection[/TD]
[/TR]
[TR]
[TD="colspan: 2"]C21 -*Note: Advanced Notice of 4 Weeks for Pricing is Required Before First Order is Submitted

Thanks[/TD]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
would =if(or(left(c17,1)="L",left(c18,1)="L",left(c19,1)="L",left(c20,1)="L"),"note","") or similar work for you ?
 
Upvote 0
Hello, I'll give it a try this morning. I tried an Index formula and it didn't work so I'm hopeful...

I'll let you and thank you, I appreciate your response.
 
Upvote 0
Another couple of options:

=IF(SUMPRODUCT(0+(LEFT(C17:C20,1)="L")),"Note","")
=CHOOSE(SUMPRODUCT(0+(LEFT(C17:C20,1)="L"))+1,"No L","One L","Two L","Three L","Four L")
 
Upvote 0
The Formulas you all provided have helped me with a project in a lot of areas of the workbook I'm automating. I hope to convey that this request that was solved was awesome!!!! Thank you again!!!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top