Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7850603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:54:50+00:00 2026-06-02T18:54:50+00:00

Ive written a function to calculate what MARK a student gets, based on a

  • 0

Ive written a function to calculate what MARK a student gets, based on a scoring table.
Why does my function work only for A mark?

This what the excel sheet looks like

COLUMN:    A      B      C      
        Student  SCORE  MARK
    1    adsf     90     A
    2    asgfd    89     FALSE     

    3     A       90    100
    4     B       81    89
    5     C       71    80
    6     D       61    70
    7     E        56   60
    8     Fx       0    55

This is the function:

{=IF(B1>=$B$3:$B$8,IF(B1<=$C$3:$C$8,$A$3:$A$8))}

I’m using {} brackets for array functions. (CTRL SHIFT ENTER)

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T18:54:51+00:00Added an answer on June 2, 2026 at 6:54 pm

    You’re on the right track but your formula is returning an array not a single value. Wrapping the result in LOOKUP should give the desired result:

    =LOOKUP("Z",IF(B1>=$B$3:$B$8,IF(B1<=$C$3:$C$8,$A$3:$A$8))
    

    This returns the last matching grade since “Z” is larger than any other text value in the range.

    A simpler method is:

    =LOOKUP(-B1,-C$3:C$8,A$3:A$8)
    

    The negative signs are needed so that the lookup values are in ascending order.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've written a small function in C, which almost do the same work as
I've written a pair of AES encrypt/decrypt functions based on this example . It
Ive got this function as a html helper which should write a javascript function
I've written a function that (should) takes an infinite list of booleans and calculate
Ive written a pdo wrapper class with a query function to automatically take an
I've written a function to output an enum as RadioButtons in a group (based
I've written this function: function contain_special($string){ # -- Check For Any Special Chars --
I've written a function in C# that does a numerical differentiation. It looks like
I've written a function which makes an asynchronous request using jQuery. var Site =
I've written a function which contains as a variable an array A whose entries

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.