+ Reply to Thread
Results 1 to 14 of 14

Conditional formatting I think?

  1. #1
    Registered User
    Join Date
    10-15-2020
    Location
    England
    MS-Off Ver
    latest
    Posts
    9

    Unhappy Conditional formatting I think?

    Hi all

    Pretty new to excel really but keen to use it for my job and trying to test out the basics

    I have excel with 4 questions, each question has the same 2 answers. Depending on the combination of answers selected will determine the overall answer. How do i get excell to automatically populate the overall answer for me based on the combination of answers? What formulas do i need and for th
    Attached Files Attached Files

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

    Re: Conditional formatting I think?

    Your attachment doesn't make much sense to me. Please describe what you are trying to achieve a bit more fully. Do you want to generate all the combinations of those two words in four positions?

    Pete

  3. #3
    Registered User
    Join Date
    10-15-2020
    Location
    England
    MS-Off Ver
    latest
    Posts
    9

    Re: Conditional formatting I think?

    sorry for the poor explaining on my behalf. so the 4 questions. A, B, C and D all have the same 2 responses (buyer and Seller) so one possible cominbation could be A buyer B Seller C Buyer D Seller. hope that makes sense so far. With those responses AB, BS, CB, DS. In the Term box the final answer is for example is 1. If question A was seller instead of buyer the final answer would be 2. Sorry if im not explaining this well

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

    Re: Conditional formatting I think?

    Hello Robertkeegan0610 and Welcome to Excel Forum.
    Like Pete_UK I am not sure what you want, however I will make a guess and see where it goes.
    To get a value for Term, there would need to be a list of possible permutations, by the way there are 16, and I have put 5 possibilities in Q5:T9
    The formula that then populates cell N5 is: =INDEX(P5:P9,AGGREGATE(15,6,(ROW(P5:P9)-ROW(P4))/(Q5:Q9=A5)/(R5:R9=C5)/(S5:S9=J5)/(T5:T9=L5),1))
    Let us know if you have any questions.
    Attached Files Attached Files
    Last edited by JeteMc; 10-19-2020 at 10:30 AM. Reason: Corrected error.
    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
    10-15-2020
    Location
    England
    MS-Off Ver
    latest
    Posts
    9

    Re: Conditional formatting I think?

    Quote Originally Posted by JeteMc View Post
    Hello Robertkeegan0610 and Welcome to Excel Forum.
    Like Pete_UK I am not sure what you want, however I will make a guess and see where it goes.
    To get a value for Term, there would need to be a list of possible permutations, by the way there are 256, and I have put 5 possibilities in Q5:T9
    The formula that then populates cell N5 is: =INDEX(P5:P9,AGGREGATE(15,6,(ROW(P5:P9)-ROW(P4))/(Q5:Q9=A5)/(R5:R9=C5)/(S5:S9=J5)/(T5:T9=L5),1))
    Let us know if you have any questions.
    Thank you so much! That is exactly what I was looking for I just didn't know how to word it best. I don't think I'll need all 256 possibilities as the way I want my questionnaire to work is that once the respondent switches from seller to buyer, then they cannot change back. I'm sure there's a way to lock in that but I'll master the INDEX and AGGREGATE functions first before I try anything else.

    Once again thank you

    EDIT

    Spoke to soon , for some reason the possibilities I want that I've put in term possibilities section don't all work. I think its the option "Seller" that causes an issue but I dont know what I'm missing. Any help would be greatly appreciated
    Attached Files Attached Files
    Last edited by Robertkeegan0610; 10-18-2020 at 04:18 PM. Reason: Attachment

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

    Re: Conditional formatting I think?

    There is an extra space at the end of the word Seller in cells C2 and D2 on Sheet2.
    Remove the extra space and then reselect Seller in cells J5 and L5 on Sheet1.
    Let us know if you have any questions.

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

    Re: Conditional formatting I think?

    By the way, you can generate all those combinations by using this formula in A5 of Sheet2:

    =INDEX(A$1:A$2,MOD(INT((ROWS($1:1)-1)/2^(COLUMNS(A:$D)-1)),2)+1)

    Copy across into B5:D5, then copy those four formulae down to row 20.

    Hope this helps.

    Pete

  8. #8
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Conditional formatting I think?

    Please update your forum profile to tell us specifically which version of Excel you are using.

    In future, please make your thread titles more explicit: tell us what you are trying to do, not a guess at how it should be done.
    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.

  9. #9
    Registered User
    Join Date
    10-15-2020
    Location
    England
    MS-Off Ver
    latest
    Posts
    9

    Re: Conditional formatting I think?

    Quote Originally Posted by JeteMc View Post
    There is an extra space at the end of the word Seller in cells C2 and D2 on Sheet2.
    Remove the extra space and then reselect Seller in cells J5 and L5 on Sheet1.
    Let us know if you have any questions.
    Thank you that worked perfectly

    Is there way to do the reverse, so if term possibilities has a dropdown list, changing the term would change the buyer seller combo?

  10. #10
    Registered User
    Join Date
    10-15-2020
    Location
    England
    MS-Off Ver
    latest
    Posts
    9

    Re: Conditional formatting I think?

    Quote Originally Posted by Pete_UK View Post
    By the way, you can generate all those combinations by using this formula in A5 of Sheet2:

    =INDEX(A$1:A$2,MOD(INT((ROWS($1:1)-1)/2^(COLUMNS(A:$D)-1)),2)+1)

    Copy across into B5:D5, then copy those four formulae down to row 20.

    Hope this helps.

    Pete
    Yes that did help, I will use that when I expand the file with more options in my next version once ive cracked this

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

    Re: Conditional formatting I think?

    Is there way to do the reverse, so if term possibilities has a dropdown list, changing the term would change the buyer seller combo?
    If the question is, would putting Seller (without a trailing space) into cell J5 on Sheet1 change cell C2 on Sheet2 then the answer is no, in fact if you try to type Seller (without a trailing space) into cell J5 (Sheet1) you'll get a popup error message.
    If that isn't the question, then please restate.

  12. #12
    Registered User
    Join Date
    10-15-2020
    Location
    England
    MS-Off Ver
    latest
    Posts
    9

    Re: Conditional formatting I think?

    Quote Originally Posted by AliGW View Post
    Please update your forum profile to tell us specifically which version of Excel you are using.

    In future, please make your thread titles more explicit: tell us what you are trying to do, not a guess at how it should be done.
    Okay I will do, sorry still all a bit new

  13. #13
    Registered User
    Join Date
    10-15-2020
    Location
    England
    MS-Off Ver
    latest
    Posts
    9

    Re: Conditional formatting I think?

    Quote Originally Posted by JeteMc View Post
    If the question is, would putting Seller (without a trailing space) into cell J5 on Sheet1 change cell C2 on Sheet2 then the answer is no, in fact if you try to type Seller (without a trailing space) into cell J5 (Sheet1) you'll get a popup error message.
    If that isn't the question, then please restate.
    Sorry my poor communication there, this isn't to do with the trailing space anymore. It is back to the original function of the spreadsheet.
    So as I change the options between buyer and seller. The term box changes, 1 through to 5. Is it possible to change the term box via a drop down list and the buyer and seller boxes change due the change in the term box. So pretty much the reverse of the original function. So if someone didn't know there term they would use the buyer seller questions. But if the knew there term but not how that term was worked out they selected a term to reveal the buyer seller combination. I hope that explains it a bit more clearly

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

    Re: Conditional formatting I think?

    As long as the term isn't typed into cell N5 as that would overwrite the formula in that cell. Also data validation will overwrite a formula if one is placed in A5:L5.
    You could type or use data validation to choose a term in another cell, as modeled in cell N6.
    At that point you could use the following formula (modeled in A6:D6) to display the buyer/seller arrangement: =INDEX(Q5:Q9,MATCH($N6,$P5:$P9,0))
    Let us know if you have any questions.
    Attached Files Attached Files

+ 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. [SOLVED] Conditional Formatting based on another cells Conditional Formatting
    By chriskay in forum Excel General
    Replies: 4
    Last Post: 08-22-2019, 05:33 AM
  2. [SOLVED] Override conditional formatting (in general, without changing the conditional formatting)
    By Stormin' in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2017, 07:15 AM
  3. Conditional Formatting Removing Previous Conditional Formatting?
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 01:02 PM
  4. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  5. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  6. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  7. Replies: 3
    Last Post: 05-15-2012, 04:13 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