+ Reply to Thread
Results 1 to 3 of 3

Referencing multiple values in a drop down list, using an 'If' statement

  1. #1
    Registered User
    Join Date
    04-23-2019
    Location
    New York
    MS-Off Ver
    Office 360
    Posts
    1

    Question Referencing multiple values in a drop down list, using an 'If' statement

    Hi, I'm trying to build multiple scenarios in excel, using a combination of drop down menus (Created through data validation -> Lists ->Selecting a range of numbers 1-5) and a market model. The list links to a series of values (i.e. 25% market share links to scenario 1, 20% to scenario 2, etc...)

    Some of my scenarios have the same value (i.e. 1 and 3 have 25% or 2, 4 have 20%). I'd like to be able to create an if statement that captures this. I tried = if(Reference cell = 4, 20%, 25%) and was able to get the formula to work. However when I tried if(Reference cell = 2 or 4, 20%, 25%) I got an error. Any tips on correcting my mistake?

    Thanks!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,438

    Re: Referencing multiple values in a drop down list, using an 'If' statement

    Welcome to the forum!

    Which Office product do you have? I presume Office 365, as there is no 360 version.

    Try this:

    =IF(OR(Reference cell = 2,Reference cell = 4), 20%, 25%)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor jomaor1's Avatar
    Join Date
    10-08-2018
    Location
    Brasil
    MS-Off Ver
    Excel 2016
    Posts
    177

    Re: Referencing multiple values in a drop down list, using an 'If' statement

    Could you elaborate more, or just post an example workbook?

    If I'm understanding it right, you could use Combo Boxes to create that.
    John.

    "I excel at jumping to conclusions"

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 15
    Last Post: 08-10-2017, 02:08 AM
  2. Replies: 1
    Last Post: 07-20-2017, 01:47 AM
  3. Replies: 1
    Last Post: 07-20-2017, 01:44 AM
  4. Formula to select multiple values from a drop down list
    By Kingofnowhere in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-02-2017, 02:48 AM
  5. [SOLVED] Drop Down List to populate multiple values in multiple cells
    By Sgilmore in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-01-2017, 11:17 PM
  6. Drop Down List to populate multiple values in multiple cells
    By Sgilmore in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-27-2017, 11:39 PM
  7. [SOLVED] Need help adding multiple values to items in a drop down list
    By Nannaki in forum Excel General
    Replies: 3
    Last Post: 03-21-2017, 02:01 AM

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