Using intervals in excel forumals?

Anonymous
2020-04-09T15:45:20+00:00

Hi there!

So I'm making a spreadsheet to help me keep up with my class grades for uni, and I've run into a bit of an issue. This isn't necessarily stopping me, it could just make things much more efficient.

So, I'm trying to have a cell, let's say A2, read a number in A1 and based off that number spit out a string as a letter, such as "A", "B", "C" and so forth. I've experimented with the logical IF functions and using OR and AND with it, but it's not as efficient due to the lack of (my knowledge of) intervals. I'm calculating my numerical grade to the hundredths place, so if I use IF((OR(A2=90, A2=91, . . .to 100)), "String") it only covers 91, 92, 93 and so on. I was hoping there's a way to cover every number from 90-100 including all the decimals in between. I've been trying to find some form of interval notation or something like that but either I'm not looking hard enough or it's not that common of an issue. Any help would be appreciated!

(Not sure if this is useful, but from the information tab:)

I'm running Version 2002 (Build 12527.20278)

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points MVP Volunteer Moderator
    2020-04-09T16:00:16+00:00

    For example:

    =LOOKUP(A2,{0,60,70,80,90},{"F","D","C","B","A"})

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more