+ Reply to Thread
Results 1 to 10 of 10

How to use the formula to calculate the student's results in column I?

  1. #1
    Forum Contributor
    Join Date
    09-01-2020
    Location
    bangladesh
    MS-Off Ver
    office 2007
    Posts
    167

    How to use the formula to calculate the student's results in column I?

    Grades A~D Must from left to right in order

    There are Total 6 subjects , they are mathematics,geography,history,English,Chemistry,biological
    Attached Files Attached Files
    Last edited by rayhen; 09-12-2020 at 11:12 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: How to use the formula to calculate the student's results in column I?

    =if(countif(b2:g2,"a")=0,"",countif(b2:g2,"a")&"a")&if(countif(b2:g2,"b")=0,"",(countif(b2:g2,"b")&"b")&if(countif(b2:g2,"c")=0,"",countif(b2:g2,"c")&"c")&if(countif(b2:g2,"d")=0,"",countif(b2:g2,"d")&"d"))
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    09-01-2020
    Location
    bangladesh
    MS-Off Ver
    office 2007
    Posts
    167

    Re: How to use the formula to calculate the student's results in column I?

    First of all thank you alansidman , I just tested the formula you provided and found that I4 did not give an answer, and there was a blank, Everything else works

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: How to use the formula to calculate the student's results in column I?

    Cannot determine the issue. If I change one C to a B or A, then it works. All C's or All D's does not work. Will ask others to intercede and see if they can offer some assistance.

  5. #5
    Forum Contributor
    Join Date
    09-01-2020
    Location
    bangladesh
    MS-Off Ver
    office 2007
    Posts
    167

    Re: How to use the formula to calculate the student's results in column I?

    Okay, thank you for your kind help

  6. #6
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: How to use the formula to calculate the student's results in column I?

    In I2 and down:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to use the formula to calculate the student's results in column I?

    There was a stray ( in Alan's formula, it should be
    =IF(COUNTIF(B2:G2,"a")=0,"",COUNTIF(B2:G2,"a")&"a")&IF(COUNTIF(B2:G2,"b")=0,"",COUNTIF(B2:G2,"b")&"b")&IF(COUNTIF(B2:G2,"c")=0,"",COUNTIF(B2:G2,"c")&"c")&IF(COUNTIF(B2:G2,"d")=0,"",COUNTIF(B2:G2,"d")&"d")

  8. #8
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: How to use the formula to calculate the student's results in column I?

    Quote Originally Posted by alansidman View Post
    Cannot determine the issue.
    Hi,
    there was a problem with the parentheses....
    =IF(COUNTIF(B2:G2,"a")=0,"",COUNTIF(B2:G2,"a")&"a")&IF(COUNTIF(B2:G2,"b")=0,"",COUNTIF(B2:G2,"b")&"b")&IF(COUNTIF(B2:G2,"c")=0,"",COUNTIF(B2:G2,"c")&"c")&IF(COUNTIF(B2:G2,"d")=0,"",COUNTIF(B2:G2,"d")&"d")

  9. #9
    Forum Contributor
    Join Date
    09-01-2020
    Location
    bangladesh
    MS-Off Ver
    office 2007
    Posts
    167

    Re: How to use the formula to calculate the student's results in column I?

    Great, I can already do it, thank you belinda200 and Fluff13 both for your kind help

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to use the formula to calculate the student's results in column I?

    Glad we could help & thanks for the feedback.

+ 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. Formula to calculate student grade level based on DOB
    By ExcelHelps in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-06-2021, 07:49 PM
  2. Need a formula for working out statistics of student results
    By Andarthiel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-27-2016, 04:07 AM
  3. Replies: 9
    Last Post: 02-09-2016, 11:42 AM
  4. Student Examination Results
    By PYEO in forum Excel General
    Replies: 6
    Last Post: 03-25-2014, 06:44 AM
  5. Replies: 1
    Last Post: 06-03-2013, 06:23 PM
  6. Replies: 1
    Last Post: 06-03-2013, 06:14 PM
  7. Replies: 7
    Last Post: 08-12-2010, 03:52 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