# Excel 2007 :: Highest Letter Grade In Range

Nov 28, 2012

Listed below are the grades for a student. Some columns have blanks. I have to find the highest grade (A being the highest) in the range.

I'm going up with the opposite (F) with this formula:
=CHAR(MAX(INDEX(CODE(A22:M22&CHAR(1)),0)))

How do I get A?

I'm using Excel 2007

A
B
C
B

D
E
A

A

B
F

## Excel 2010 :: Letter Grade Calculator

Dec 29, 2013

I created an Excel 2010 macro enabled workbook (.xlsm) which calculates the letter grades of test scores between 1 and 100.

To use the workbook:

1. Put the scores in one column of the open worksheet.

2. Select the first score with the mouse (i.e. make this the "active cell").

3.Click on the "Calculate Grades" button on the sheet.

Public Function LGrade(ByVal score As Variant) As String
'Returns the letter grade based on a test score.
On Error GoTo ErrHandler

Select Case score
Case Is > 100: LGrade = "A+"
Case 95 To 100: LGrade = "A"
Case 90 To 94: LGrade = "A-"
Case 87 To 89: LGrade = "B+"

[code].....

## Change Letter Grade To Number Grade

Mar 30, 2008

I have a range of cells C11:C29,G12:G18,G20:G23,G25:G26,G28:G29,C33:C42,G33:G42,C46:C47,G46:G47,C51:C54,G51:G59,C58:C59 that contains letter grades (egs. A+,C- etc). I need the code for a macro that checks each cell from this range and if the value of the cell is A+ then the cell's value changes to 100, if the cell's value is A then change the cell's value to 98, if cell's value is B+ then change to 88 ...and so on...you get the idea (i will complete the rest of conditions but i just need the basic code).

## Turning Grade % Into Letter Grades

Aug 11, 2007

creating a function to turn a percent (0-100) into a letter grade, I am creating a gradebook spreadsheet.

I think VLOOKUP is the way to go here, but I do not understand vlookup at all no matter how many times I try to look at demos or read how-tos.

I created two columns, one with what the grade entails (93-100 , 90-93 and so on) and the next column has A, A-, etc. But I can't get vlookup to work, any suggestions? I am pretty noob when it comes to excel.

## Assign Consistent Letter Value To Grade Percentage

Oct 9, 2008

Newbie here. I have a very frustrating problem. I am using excel for my gradebook at school. I've tried several different ways to assign a letter grade to an number average. It works fine each different way I do it, VLOOKUP, IF, etc. But, I have about 5 grades out of 100 which give the wrong letter grade. For instance, my scale says that a grade of 85 should be lowest limit of a "B", but I get a "C" returned in the cell instead. Like I said, it only happens on a few grades. The biggest majority work fine. I can't figure out why. Any ideas? Attached is one of the "problems" with a student's grades. Note the Final Avg with a grade of "C", it should be "B".

## Converting A Numeric Cell To A Letter Grade

Feb 14, 2009

I, too, am trying to use excel to the fullest. My first issue is, I would like to convert the numberic grade in one cell to a letter grade in another cell. I am not really good with all the vocabulary, but would love to learn it, and can copy a formula pretty well!!!! Not so good with functions and macros but would love to learn. All help appreciated.

## IF THEN Statements: Assign A Letter Grade To A Number

May 9, 2006

I have figured out how to assign a letter grade to a number, but am having trouble assigning it the other way, a number to a letter grade. For instance: If a student gets an A, I want the column next to it to indicate that the A represents a 4; a B represents a 3; a C represents a 2; D a 1; and F a 0. This will allow an easy grade point average calculation.

A 4 History
C 2 Math
A 4 English
B 3 Physical Ed
D 1 Science

GPA 2.80

## Formula That Would Assign A Letter Grade (in Row W) To The Average In Row V, Based On The School's Scale

Oct 3, 2006

Need to write a formula that would assign a letter grade (in row W) to the average in row V, based on the school's scale. So, row V contains my averages (in % form) and I want row W to have the letter equivalents.

93+=A
85-92=B
75-84=C
67-74=D
<66=F

## Excel 2007 :: Finding Next Highest Value In Array

Sep 12, 2010

I am using VLOOKUP with the not_exact_match set to True, however instead of finding the next largest value that is less than value, I want to find a way of returning the next largest value that is greater than value. I have looked at using MATCH and OFFSET to try and increment the returned value by 1.

## Excel 2007 :: How To Remove Letter And Leave Numbers And Chinese Characters

Mar 19, 2013

I need a formula to use on MS Excel 2007 to remove the English letters from a cell A1 and return only the numbers(if any) & Chinese characters to B1.

Please refer to the able below.

Example:

A
B

1
so l首先欢迎大家收听我们的科学与烹饪系列

2

[Code]...

## Highest Letter In A Row

Jan 7, 2010

I'm trying to list the latest revision of a drawing in an issue sheet spreadsheet. What I need is to be able to enter a formula that will find the highest alphanumerical value in the columns beyond. Alphabetic characters take precedence over numerical - i.e., drawing issue numbers usually follow a 00, 01, 02, 03, then switch to A, B, C, D,... order.

To try and illustrate what I mean a little better, I have the following table, with dates in DD/MM format. Sorry it's not laid out too well, my HTML isn't great:

Drawing title latest revision 01/01 02/01 03/01 04/01 05/01 06/01
example010001AB
example02000102
example0300

I want the cells in the "latest revision" column to report the highest value. So, I want it to say this:

Drawing title latest revision 01/01 02/01 03/01 04/01 05/01 06/01
example01B0001AB
example0202000102
example030000

I won't have control over the numbers and letters reached (i.e., the drawing revision could get up to Z or something - or the number revision reach 15 before switching to alphabetic revisions) so I'd rather avoid having to set up a crazy IF function with "00", "01", "02", "03", "04", etc etc. But -

## Compare Actual Grade To Potential Grade And Highlight Cells

Jul 10, 2013

I am compiling a master spreadsheet to analyse progress of students. I have their potential grades in one column and their latest progress grade in another.

I would like an automatic look up of the potential to the progress grade so that if their current grade is BELOW their potential that gets highlighted one colour, if it is above, another colour.

One issue is that the grades are all letters (S, A, B, C, etc.) and that some potential grades are 'dual' (i.e. A/B, S/A) which complicates the issue somewhat.

## Calculate Final Grade Based On Grade Table

Jun 13, 2006

my Excel teacher doesn't even know how to do this! The chapter is Working with Multiple Worksheets and Workbooks, and we went into linking workbooks, linking worksheets, using the VLOOKUP function, and saving workbooks as templates. This is Case Problem 2 and i'll attaching the file.

It says:

1. On the Grading Criteria worksheet, enter the text "Exam Average" in cell A1
and the text "Grade" in cell B1.

2. In the range A2:B6, create a lookup table for the range of grades specified by Professor Templeton. (Hint: Each letter grade should be matched up with the lowest score possible for that grade.)

Here are the specified grades:
0 to 49 = F
50 to 59 = D
60 to 74 = C
75 to 89 = B
90 to 100 = A

3. Insert a formula in Column E of each worksheet to calculate the overall score of each student based on the grade table you entered in the Grading Criteria worksheet.

## Matching Name Range With Achieved Grade?

Sep 15, 2014

I am trying to find lists of students from this worksheet who obtained the Grades in column K4, K12 and K19 together with their own classes. Is there any formula besides Pivot Tables to find them?

## Return 0-100% Grade On Value Depending On Where Value Falls Within Custom Range

Jul 30, 2012

I have a custom range -55% to 55% as part of a grading system for sales growth. I want to return a 0-100% grade depending on where within that -55% to 55% range a sales reps growth for a month falls. For exaple, if a sales rep scores 0% growth for a month, they will receive a 50% grade by where 0% falls within the -55% to 55% range.

## Excel 2007 :: Find Particular Value In Range

Jul 14, 2014

Using Microsoft Excel 2007, VBA

I am trying to display an error message if a range is missing '0' or '100', or is empty.

I figured out how to display error when the selected range is empty, but I cannot figure out how to find if a particular value exists within a range and return an error if there isn't.

## Excel 2007 :: Pivot Table Range

Apr 19, 2013

I prepared a Pivot Table and then i add some data in it but now all data is not showed by Pivot Table.

I do all necessary things like refresh and all but unable to increase a range.

How to increase range for Pivot Table in 2007.

## Excel 2007 :: Sum Values From Set Range In 4 Different Files?

Jan 16, 2012

I have 4 different excel files in C:Reports (SupplierA.xls, SupplierB.xls, SupplierC.xls and SupplierD.xls) all with a page called "Summary" (like below) in a set range A2:F5.

Fruit
Monday
Tuesday
Wednesday
Thursday
Friday
Apples
2 4 1 7 8 Oranges
2 3 4 6 9 Lemons
4 5 6 6 6 Pears
1 2 3 5 5

I also have a summary excel file in C:Totals called "Supplier Totals" that has a summary page that I want to total up all my suppliers A, B, C and D (same as above A2:F2). How can do this in VBA?

I am using Excel 2007.

## Excel 2007 :: Dynamic Range Into Array?

Aug 10, 2012

Excel 2007 is my version. I'm trying to build an array from a dynamic range. I will know the column letter and lastrow.I think I could do this via a FOR and NEXT routine but there has to be a more efficient way. Here is my inefficient code idea:

Code:
Dim orgctarray(65000) As Variant 'because I don't know how long the array will need to be
Dim cnt as integer
Dim startrow as integer[code]....

So as you see, technically, I need to take sheet1.range("B3:B" & lastrow) and turn it into a vb array (I don't want to copy the data to some hidden worksheet and do the work there)I'd also like to remove duplicates and sort orgctarray alphabetically after I have completed building it.

## Excel 2007 :: See If Value Falls Within Specified Date Range?

Jan 30, 2013

Secondly, I'm using Excel 2007.

In column B3:B367, I have dates for every day of the year. In column D3:D367, I have body weight for every day of the year. This gets filled in on a daily basis.

What I'm looking to do:

1. Find the first daily weight for the month.
2. Find today's weight.
3. See if today's weight falls within the specified month.
4. Compare the first daily weight of the month with today's weight.

I am able to accomplish #1 with LOOKUP, #2 with LOOKUP, and #4 with IF/THEN. For the life of me, I cannot comprehend how to do #3.

## Excel 2007 :: Create PDF File Using Range Name

Jul 15, 2014

I would like to create a PDF file from a RANGE Name, excel 2007, attach it to MS Outlook 2007, Once in Outlook I will select the recipient, add some remarks and hit send. I can do this now with a workbook but not a range.

## Remove Duplicates In A Dynamic Range Using Excel 2007

Jul 21, 2009

I am using the follwoing code which works as it is supposed to except that it does not remove the duplicate entries, almost as though the code skips that step. How can I fix this?

## Excel 2007 :: Declaring Worksheet And Range As Variables

Dec 22, 2011

Using Excel 2007, I'm trying to figure out (and not succeeding!) on how to declare worksheet and range - in order to:

input a formula to cell xfd1, then copy down to xfd2:xfd100 - and here's what I've been playing about with

Code:
Sub filldownxfd()
Dim src As Range, out As Range, wks As Worksheet
Dim sRangeName As String
Workbooks.Item(1).Sheets.Item ("Sheet1")
Dim example As Range
Set example = Range("xfd2:xfd100")

[code]....

## Excel 2007 :: Add Shapes In Range Of Cells To ShapeRange

Feb 3, 2012

Using Excel 2007.

I have shapes in 3 different rnages of cells on a cell worksheet:
R1 = \$D\$5:\$D & lngRows (row=32)
R2 = \$G\$5:\$G & lngRows (row = 51)
R3 = \$M\$5:\$M & lngRows (row = 50)

I need to set the properties of the shapes in each range differently The shapes in R1 are Left + 46 But the shapes in the other 2 ranges need to be just left My problem is in this bit

Code:

'Set properties for each shape in ShapeRange
For Each sh In ws.Shapes

I need to be able to set properties for each range separately instead of the entire sheet. Full code below (only Range \$D at the moment - works)

Code:

Option Explicit
'Purpose: Add small rectangles to database table/fields for
' brainstorming and documenting relationships and queries
'
'Resources:

[Code]....

## Excel 2007 :: Removing Duplicates Within Time Range

May 28, 2012

I am using Excel 2007 on Windows 7. I would like to remove duplicates as follows: If column A = column A, column B = column B, and the two rows are within one hour of each other, then remove all duplicates, leaving one instance of the row. As you can see, sometimes the duplicates are right next to each other, and sometimes have rows between them. (Rows 1 & 2, Rows 30 & 32). Even though this sample doesn't show it, sometimes there can be tens of duplicates within an hour, not just two.

Excel 2007
ABCD1EruptionI Can't Stand The Rain (78)3/7/20129:12:55
AM2EruptionI Can't Stand The Rain (78)3/7/20129:10:02
AM3ChicagoJust You 'N' Me (73)3/7/20129:05:59

[Code] .........

## Excel 2007 :: Monitoring Change In Certain Range At Worksheet?

Jul 9, 2012

I wish to monitor a change in a certain columns at some worksheets. I have - after having consulted John Walkenbach' fantastic book Excel 2007 Power programming with VBA - understood how I do to monitor a change in specific worksheet, by using the Intersect-function in the change-event on that particular worksheet. That works fine.

My situation is that I have an application that I start out with a certain number of workheets in a workbook, and in the course of the work that the application does, it now and then adds worksheets, and these worksheets I would like to monitor for change in a special column. I know, by looking at the names of the worksheets which ones of those in the collection that I want to check.

I therefore used, not the Worksheet_Change event but the Workbook_SheetChange. It doesn't work quite well. I guess my question for now would be:

The call to this event looks like this:

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)

1) How - in what way - should I use the first argument, the "Sh as Object"? Can I/Should I give it a name?

The error message I get when I use an instruction like this:

If Not Intersect(Target, Range(M:M)) Is Nothing Then
'Do Stuff
end if

The method 'Intersect' in the object '_Global' failed

(M is the column that I want to check)

## Excel 2007 :: Copy And Paste A Range Using Do Loop?

Jul 27, 2012

Here is my situation:

Background:
- Excel VBA 2007
- I have a macro that inserts a set of vlookups in range D3:D8.
- When D3:D8 has been filled, I need the macro to COPY the Vlookups in D3:D8, skip down one cell, and paste in the next set of open spaces.
- I have a Do statement that isn't working, and and IF...THEN that quits the loop when a blank cell is found (This means the range of vlookups is no longer needed).

Objectives:
- Fix Do...Loop so it copies D3 throuh D8, skips a cell below D8, and Pastes in the next section? - There will sometimes be only one section to paste in, and sometimes 20. It is dynamic.

Code:

Sub InsertVLookup2()
' This macro inserts the VLookup into cell B2
Dim lastcolumn As Long
Range("D3").Formula = "=VLOOKUP(\$A2,INDIRECT(""'"" & B\$1 & ""'!A:I""),9,FALSE)"
Range("D3").Select

[Code] .......

## Excel 2007 :: Sum Cells Based On Date Range Input

May 28, 2014

I am using Excel 2007.

Sheet 1 - I have columns filled with dates (weekdays only) For example 28-May, 29-May, 30-May up to 28-Nov. Above 10 rows below each date columns and each cell has some values.

28-May29-May30-May
0.50.50.5
1.01.01.0
1.01.01.0
1.01.01.0
1.01.01.0
1.01.01.0
1.01.01.0

Sheet 2 - I have Start date defined in B1 Cell, and End date defined in B2 Cell

I need defining the formula to sum all the cell values fall between the date range defined in Sheet 2 B1 and B2.

For Example if B1=28-May B2=30-May, I want the sum of all the numbers come under the range of 28-May to 30-May, with this above example, it should be 19.5.

## Excel 2007 :: Automatically Selecting Cells - Highlight As Range

Jul 29, 2008

I'm new to Excel 2007... whilst I'm managing to find most things I'm used to using in 2003, I have an issue in one workbook that I can't figure out.

When I click in some single cells (not all), that cell and several below it automatically highlight as a range... left-clicking initially highlights the cell, but as you release the mouse button, the others below it also highlight.

## Excel 2007 :: Deselect All Cells In Range Except Top Left Cell

Apr 13, 2013

I have a range selected (A4:C15).I would like to deselect the range and make A4 the active cell. Is this possible without a macro?

With a macro, one could use:
Application.Goto Selection.Cells(1)

I generally select a large number of cells and would like to go back to the start cell in the range. I could do it by pressing the left and right arrow keys but is there a shortcut that will allow me to do the same?