+ Reply to Thread
Results 1 to 6 of 6

if statement with conditional formatting or other solutions

  1. #1
    Registered User
    Join Date
    07-01-2010
    Location
    richmond, california
    MS-Off Ver
    Excel 2003
    Posts
    5

    if statement with conditional formatting or other solutions

    Hello Dear Excel Experts!!

    I have a particular situation, I am taking my exam and practicing some questions from a question bank. I would like to create a spread sheet which I could use to track answers to the questions that I solve. I have the correct answer choices to the questions that i am going to solve, but I would like to create two columns which would named "my answer choices" (suppose column B) and "Correct Answer choices" (suppose column C).

    lets suppose if the correct answer choice of question # 2 is D: if I enter D in column B, the cell should be formatted with green fill, and if I enter any other answer choice (A,B,C OR E), it should be formatted with red fill, at the same time, it should also show correct answer in column C after I enter my choice, otherwise column C should be blank. Just to make sure that I don't cheat ;-)

    I would appreciate if someone can help me figure this out!!

    thanks in advance!

    -Vijay

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: if statement with conditional formatting or other solutions

    Are the correct answers located somewhere else within the spreadsheet? If so, can you upload an example so we can formulate it appropriately.

    Without having the correct references and if you want to try to formulate it yourself, do this.

    In column C, you want to only show if B has something in it. so...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    To handle the conditional formatting, add 2 conditional formatting
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can formulate ANSWER by using an INDEX or LOOKUP

  3. #3
    Registered User
    Join Date
    07-01-2010
    Location
    richmond, california
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: if statement with conditional formatting or other solutions

    Thank you for your reply Quekbc, I attached the excel file with the correct answer choices, it would be helpful if you can illustrate in that.

    Appreciate your help!

    -Vijaydoli
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: if statement with conditional formatting or other solutions

    This should do it.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-01-2010
    Location
    richmond, california
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: if statement with conditional formatting or other solutions

    Thank you, this is perfect!!

  6. #6
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: if statement with conditional formatting or other solutions

    Not a problem Vijay. Good luck with your exams.

+ 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. KPI Dashboard design: solutions to conditional rule
    By ManchesterMatt in forum Excel General
    Replies: 4
    Last Post: 05-18-2015, 01:54 PM
  2. Conditional Formatting with IF statement?
    By Dial1 in forum Excel General
    Replies: 3
    Last Post: 07-23-2014, 02:08 PM
  3. IF Statement and Conditional Formatting
    By mfried7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-26-2012, 09:46 AM
  4. IF statement using formatting criteria (NOT conditional formatting)
    By chelseasikoebs in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2009, 01:57 AM
  5. [SOLVED] If Statement/Conditional Formatting
    By JS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-29-2006, 11:55 AM
  6. Replies: 0
    Last Post: 06-28-2006, 03:35 AM
  7. Use if statement with conditional formatting?
    By q5 in forum Excel General
    Replies: 2
    Last Post: 08-24-2005, 11:05 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