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

(Cell D3) Company(Cell E3) ABC
(Cell D4) Region(Cell E4) EMEA
(Cell D5) Country(Cell E5) Italy
(Cell D6) Name(Cell E6) John
(Cell D7) Output(Cell E7) ABC-Italy-John

<tbody>
</tbody>

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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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