Results 1 to 22 of 22

Value based on dropdown selection (multiple entries separated by comma)

Threaded View

  1. #1
    Registered User
    Join Date
    05-09-2020
    Location
    Yerevan
    MS-Off Ver
    Office 365
    Posts
    20

    Value based on dropdown selection (multiple entries separated by comma)

    Hello,

    I have two sheets in my excel named: "Risk Level" and "Jurisdiction Risk Register".

    In sheet "Risk Level", cell E2, I have the option to select countries (the list of countries comes from "Jurisdiction Risk Register" sheet). There is a VBA code, which allows me to select multiple countries separated by comma.

    My goal is to have a specific value in cell F2 (highlighted in blue) based on dropdown selection in cell E2. The logic is as follows:

    Rule 1. If E2 contains any country that is classified "CRITICAL", then the value of F2 should be equal to "PROHIBITED"
    Rule 2. IF E2 contains any country that is classified "VERY HIGH", then the value of F2 should be equal to "HIGH"
    Rule 3. IF E2 contains any country that is classified "HIGH", then the value of F2 should be equal to "HIGH"
    Rule 4. IF E2 contains any country that is classified "MEDIUM", then the value of F2 should be equal to "MEDIUM"
    Rule 5. IF E2 contains country(ies) that are all classified "LOW", then the value of F2 should be equal to "LOW"

    The country risk classification is based on column D in sheet named "Jurisdiction Risk Register"

    The above five rules are in order of their priority meaning that Rule 1 overrides Rule 2 which overrides Rule 3 and so on. For example, if cell E2 is equal to "Russia, Armenia" then the value of F2 should be "CRITICAL" (Here Russia is classified as "CRITICAL" /Rule 1/, while Armenia is classified as "MEDIUM" /Rule 4/)

    I know this might sound a little bit complicated but any help is much appreciated.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 05-10-2022, 05:01 PM
  2. Replies: 6
    Last Post: 09-15-2021, 05:20 AM
  3. Split comma separated entries to new rows
    By dandi10 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-02-2020, 07:59 PM
  4. Multiple Dropdown selection & Column Groupings based on dropdown selection
    By rabrol in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2018, 10:23 AM
  5. [SOLVED] Split comma separated entries to new row
    By trefix in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-26-2014, 04:56 AM
  6. [SOLVED] VBA: To Split comma separated entries to new rows
    By Cytokine in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-19-2014, 08:58 PM
  7. Replies: 3
    Last Post: 03-30-2013, 08:36 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1