+ Reply to Thread
Results 1 to 6 of 6

Help with if then formula

  1. #1
    Registered User
    Join Date
    10-03-2014
    Location
    Houston, Texas
    MS-Off Ver
    2013
    Posts
    93

    Help with if then formula

    Hello,
    I need a formula that will lookup whether or not an answer is correct in a cell and then calculate the total percentage.
    I'm attaching the file.
    The answers in red are incorrect. The correct answer for that column will not be red. Then I need to total the percentage correct (out of 40 questions). I started doing it by hand but it's taking too long and I have several other teachers that need it done as well. I need a faster way!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Help with if then formula

    1. "I need a formula that will lookup..."
    LOOKUP where? You only have one sheet in the file.

    2. "The answers in red are incorrect. The correct answer for that column will not be red."
    The cells have been manually coloured.
    The only way to determine the colour of a cell (unless it's set by Condtional Formatting - in which case just use the same conditions) is by VBA, formulas can't do this.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    10-03-2014
    Location
    Houston, Texas
    MS-Off Ver
    2013
    Posts
    93

    Re: Help with if then formula

    I'm sorry I was confusing. The color is really irrelevant. It just shows me what answers are correct. I added a sheet with the correct answers. See if it makes more sense now.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Help with if then formula

    There's probably another way

    =SUMPRODUCT(--(B7:AO7=Sheet2!A$2:AN$2))/40*100
    and copy down the column

  5. #5
    Registered User
    Join Date
    10-03-2014
    Location
    Houston, Texas
    MS-Off Ver
    2013
    Posts
    93

    Re: Help with if then formula

    Thanks so much!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Help with if then formula

    Quote Originally Posted by trfountain22 View Post
    Thanks so much!
    welcome to the forum

    For future reference, please take a moment to read the forum rules and use thread titles that are descriptive of your problem - not what you think the answer might be. (think google search terms?).

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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: 3
    Last Post: 01-10-2019, 09:34 AM
  2. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  3. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  4. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  5. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  6. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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