+ Reply to Thread
Results 1 to 6 of 6

Formula help for different combinations of 3 multiple choice columns

  1. #1
    Registered User
    Join Date
    09-09-2022
    Location
    Charlotte, NC
    MS-Off Ver
    Office 2021
    Posts
    3

    Formula help for different combinations of 3 multiple choice columns

    Hello all! I am fairly new to Excel, and I'm running into an issue with a formula that is too difficult for me to figure out.

    I am hoping that someone can assist me with a formula to handle three multiple choice columns.

    Column 1: two choices, Buy or Sell
    Column 2: two choices, Yes or No
    Column 3: two choices, Yes or No

    Depending on the combination of the first 3 columns, Column 4 will either be:
    0
    239.60
    -239.60
    299.50
    -299.50

    If Column 1 is "Sell", then column 3 is automatically "No", and Column 4 should be 0. (Column 2 won't matter/have any effect)
    If Column 1 is "Buy", both Column 2 and 3 are "Yes", then Column 4 will be 299.50.
    If Column 1 is "Buy", Column 2 is "Yes", and Column 3 is "No", then Column 4 will be -299.50.
    If Column 1 is "Buy", Column 2 is "No", and Column 3 is "Yes", then Column 4 will be 239.60.
    If Column 1 is "Buy", Column 2 is "No", and Column 3 is "No", then Column 4 will be -239.60.

    Thanks in advance!
    Last edited by crai6m4ck; 09-09-2022 at 01:12 PM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula help for different combinations of 3 multiple choice columns

    Welcome on the excel forum.

    Not sure I can help, but the text below definitly helps other forummembers (to help you).


    HOW TO ATTACH YOUR SAMPLE WORKBOOK:

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    09-09-2022
    Location
    Charlotte, NC
    MS-Off Ver
    Office 2021
    Posts
    3

    Re: Formula help for different combinations of 3 multiple choice columns

    Book1.xlsx

    Something like this?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Formula help for different combinations of 3 multiple choice columns

    This formula replicates the results in D2 and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    09-09-2022
    Location
    Charlotte, NC
    MS-Off Ver
    Office 2021
    Posts
    3

    Re: Formula help for different combinations of 3 multiple choice columns

    Quote Originally Posted by JeteMc View Post
    This formula replicates the results in D2 and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    This is exactly what I was looking for! Thanks!

    Would you be willing to explain how the formula actually works? I'm a novice that would like to understand it.

    Sorry if this is confusing, but this is the way I read it:
    First equation: If A2 equals "sell" then the result is 0. Otherwise, if A2 does not equal "sell" then look to see if B2 equals "yes". If so, the result is 299.5, but if B2 does not equal "yes", then the result is 239.5.
    Second equation: Now, if C2 equals "yes" multiply the result of the first equation by 1, but if it doesn't equal "yes" then multiply the result of the first equation by -1

    Is this correct?

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Formula help for different combinations of 3 multiple choice columns

    Yes, that is correct and isn't confusing at all to me.

+ 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. Multiple Time Stamps depending on choice in Drop Down List Choice
    By insayah in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-25-2022, 09:53 AM
  2. [SOLVED] List all combinations from multiple columns
    By ArcheryWoods in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-18-2021, 08:23 PM
  3. How to Identify the Combinations of True or False in Multiple Columns
    By jdub03 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-26-2019, 12:13 PM
  4. [SOLVED] Find Duplicate Combinations Across Multiple Columns
    By protcg in forum Excel General
    Replies: 6
    Last Post: 02-07-2017, 02:19 PM
  5. Make an multiple choice quiz with randomized choice
    By shaterroi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2015, 11:04 AM
  6. [SOLVED] Generate combinations of multiple columns
    By Codeasaurus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-08-2014, 11:31 AM
  7. Using Macro to generate combinations in multiple columns
    By nirvanaic822 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2013, 06:30 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