+ Reply to Thread
Results 1 to 8 of 8

IF function with multiple options

  1. #1
    Registered User
    Join Date
    03-24-2016
    Location
    Carson City, NV
    MS-Off Ver
    2010
    Posts
    2

    IF function with multiple options

    I manage a Community Theatre, which has 3 different rates (Resident, non-resident, and commercial) and 2 discounts (Non-profit and City sponsored events). Presently in our excel document that calculates their fees, there are 2 spots that have drop-downs to pick rate and discount, but I need to select both the name of the rate and the percentage. I feel like there should be a way to connect those cells, or at least make the rate cell (C6 and C9) automatically fill in to match the Pricing tier or discount title (B6 and B9)

    In another summary:

    B6 drops down to choose between Commercial, Nonresident Nonprofit, and Resident Nonprofit. C6 drops in 50%, 25%, 0%.
    B9 drops down to choose Not Discounted, Resident Non Profit, and Joint Use/City Sponsored. C9 drops in 0%, 50%, 100%.

    I would like to just choose the items in B6 and B9, and have C6 and C9 automatically fill in with their matching number...

    Hopefully someone can help me out. Thanks!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-28-2016
    Location
    California
    MS-Off Ver
    2007
    Posts
    43

    Re: IF function with multiple options

    oh I'm SO interested in reading the solution to this as I think I may have to do it myself later this week!

  3. #3
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: IF function with multiple options

    Place this in C6...
    Please Login or Register  to view this content.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: IF function with multiple options

    Remove the data validation from C6 then enter this formula:

    =IF(A6="","",VLOOKUP(A6,$O$8:$Q$15,3,0))

    Copy this into C9, then when you change B6 or B9 (actually it is A6 or A9 as you have merged the cells), then C6 or C9 will automatically pick up the appropriate %age.

    Hope this helps.

    Pete

  5. #5
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: IF function with multiple options

    Sorry, forgot the other one. Put this in C9
    Please Login or Register  to view this content.

  6. #6
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: IF function with multiple options

    This is a pretty typical lookup operation.

    Please Login or Register  to view this content.
    You'll have to kill off the data validation on C9 (it's not allowing the formula) and you should probably go ahead and remove it from C6 as well.

    Note this will throw the #N/A error if someone manually enters some other text string in A6/A9. (Which is disbarred by Data Validation right now anyway).

    Also I recommend you remove the merged cells on A6:B6 and A9:B9. Using merged cells with formulas is bad practice -- merging and functions don't play nice with each other.

    EDIT:
    This is basically the same direction as what Pete advised, but I went with INDEX(MATCH) instead of VLOOKUP for construction (I basically never use V/HLOOKUP but that's just my preference), also he wrapped a checker for blank input.
    Last edited by ben_hensel; 03-29-2016 at 06:14 PM.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  7. #7
    Registered User
    Join Date
    03-24-2016
    Location
    Carson City, NV
    MS-Off Ver
    2010
    Posts
    2

    Re: IF function with multiple options

    You all rock. I used Pete's formula, and went ahead and got rid of the merged cells and stuck the stuff in A into B and edited accordingly.

    Thanks!

  8. #8
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: IF function with multiple options

    Glad you found one you liked. It's not often you get several options to choose from.

+ 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: 0
    Last Post: 08-26-2014, 08:44 AM
  2. VBA - 1 pivot filter control multiple pivots with multiple field options
    By bwolsky in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-28-2014, 06:19 PM
  3. IF / OR / Function 3 options
    By Tyriel in forum Excel General
    Replies: 2
    Last Post: 07-15-2013, 02:41 PM
  4. Searching in a excel sheet with multiple conditions and multiple options
    By punna111 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-11-2013, 02:03 PM
  5. IF function with multiple options
    By PAKTIRE in forum Excel General
    Replies: 1
    Last Post: 10-30-2009, 03:09 AM
  6. IF-function with multiple options+sum function
    By PALLE123 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-01-2007, 09:42 PM
  7. If function for multiple options?
    By sbweld in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-31-2006, 07:04 PM

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