Dependent dropdowns + Output with conditions

Rick187

New Member
Joined
Aug 29, 2018
Messages
15
Hi,

I have already setup dependent lists for example if in the "Region" drop down in Cell E4 if you select "EMEA" then all EMEA countries will display in the drop down for cell E5.

This is what the data looks like

[TABLE="width: 500"]
<tbody>[TR]
[TD](Cell D3) Company[/TD]
[TD](Cell E3) ABC[/TD]
[/TR]
[TR]
[TD](Cell D4) Region[/TD]
[TD](Cell E4) EMEA[/TD]
[/TR]
[TR]
[TD](Cell D5) Country[/TD]
[TD](Cell E5) Italy[/TD]
[/TR]
[TR]
[TD](Cell D6) Name[/TD]
[TD](Cell E6) John[/TD]
[/TR]
[TR]
[TD](Cell D7) Output[/TD]
[TD](Cell E7) ABC-Italy-John[/TD]
[/TR]
</tbody>[/TABLE]

In Cell E7 I have this formula - ="https://"&E3&"-"&E5&"-"&E6

If a country is selected like "Italy" I only want the output to show the joined up words with dashes in between them so it will be ABC-Italy-John

However if the value in cell E5 contains "Not country specific" then I would like the output to be "ABC-EMEA-John" so instead of including the country, it will include the region in the output. If a country is selected other than "Not country specific" then the output should include the country and not the region such as "ABC-Italy-John"

Does anyone know if this is possible to do please?

Any help would be appreciated.

Thanks in advance.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
You should be able to nest an IF statement into your E7 cell formula, that way you can modify what the text outputs depending on the value of E5
Instead of
="https://"&E3&"-"&E5&"-"&E6
Try:
="https://"&E3&"-"&IF(E5="Not country specific",E4,E5)&"-"&E6
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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