Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed (Author was flagged for spam)

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Help with for loops and counting in VBA
Post Flair (click to view more posts with a particular flair)
Post Body

Hello!
I'm an engineering student involved with Formula SAE, a student club in which we build a racecar every academic year. I am responsible for writing and correcting rules tests to evaluate whether a student is proficient enough to go to competition.
Long story short, I've been researching options to do the least amount of work possible to check these damn tests.
I'd like to write a for loop that compares two columns: the Key and the student's answers, and then return the number of cells in both the Key and Answers that match. For example:
Key | John Doe

A | A
C | B
D | C
C | D

and have it return "1" because only one of his answers match.

I'd like it to compare each value of John Doe's input to the Key, if it is true, add 1 to the counter. If it is false, add 0. At the end, I'd like it to return the counter number.
Is this possible? Is there a way to do it without VBA? While I'm very familiar with Excel, I'm a beginner in VBA code.

Author
Account Strength
0%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
137,910
Link Karma
47,538
Comment Karma
89,851
Profile updated: 1 week ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
10 years ago