Getting Information from Two Different Columns

illogical90

New Member
Joined
Mar 6, 2019
Messages
7
Hello All,


I need support in below, I have two columns with different targets (column X for Official and column Y for Stretched). What I am trying to extract that there is a cell which contains drop down list of "Official" and "Stretched" if that cell contains "Official" than the certain column will show me only Official Targets or when I will select "Stretched" it gives the values of Stretched targets. I did something but I am unable to combine formulas which can give information for both at the same time.


Will be thankful for your help.


Regards.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
you could use an IF to choose between the 2 different formulas for the drop down with "Official" OR "Stretched"

=IF ( cell with drop down = "official" , lookup official target formula , IF (
cell with drop down = "stretched", lookup stretched target formula, "" ))
 
Upvote 0
You have too many commas in the second vlookup. Change your formula to: =IF(Parameters!A2="Stretched",VLOOKUP(A2,Targets!A2:G39,7,FALSE, IF(Parameters!A2="Official",VLOOKUP(A2,Targets!A2:G39,6,0)))
 
Upvote 0
You have too many commas in the second vlookup. Change your formula to: =IF(Parameters!A2="Stretched",VLOOKUP(A2,Targets!A2:G39,7,FALSE, IF(Parameters!A2="Official",VLOOKUP(A2,Targets!A2:G39,6,0)))

Hi Jma,

It still gives me the error of too many arguments. :S
 
Upvote 0
OK I have just reread your original post, and realise that whet you are trying to do can't be done using vlookup. Vlookup will only ever return the first match. Try googling 'excel cascading dropdown list' - there are several solutions that appear.
 
Upvote 0
try closing the vlookup bracket formula in your first vlookup
change
=IF(Parameters!A2="Stretched",VLOOKUP(A2,Targets!A2:G39,7,FALSE, IF(Parameters!A2="Official",VLOOKUP(A2,Targets!A2:G39,6,0)))
to
=IF(Parameters!A2="Stretched",VLOOKUP(A2,Targets!A2:G39,7,FALSE), IF(Parameters!A2="Official",VLOOKUP(A2,Targets!A2:G39,6,0),"Condition if A2 does not = either"))

VLOOKUP(A2,Targets!A2:G39,6,0)
o needs to be the word true or false normally - 0 will

=IF(Parameters!A2="Stretched",VLOOKUP(A2,Targets!A2:G39,7,FALSE), IF(Parameters!A2="Official",VLOOKUP(A2,Targets!A2:G39,6,false),"Condition if A2 does not = either"))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,198
Members
453,022
Latest member
RobertV1609

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