Comparing Textual Data producing numerical information

Rameses

Board Regular
Joined
Mar 3, 2010
Messages
137
Hi all

OK I am tracking Students BTEC grades (a UK course) and am going round and round in circles

The Data Range is the same in both columns A&B. This is arrayed order below

Dist*
Dist
Merit
Pass
Fail

Column A is students Targeted Grade and column B is Students current Progress
I want to compare both these columns and in column C want to add in a value to express the difference between their targeted and current grades (therefore showing how much the students are passing or failing their BTEC course)

Some examples are as follows

If A1 = Dist
and B1 = Merit
Then C1 should show -1

A1=Merit
B2 = Fail
C1 should show -2

A1 = Pass
B1 = Dist
C1 should show 2

C range would therefore be from 4 to -4

After I have done this I then want to add conditional formatting to column c but I can do this ok

Please, please help

many thanks

Rameses
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi

In C1:
=MATCH(A1,$S$1:$S$5,0)-MATCH(B1,$S$1:$S$5,0)

S1:S5 has the list of 5 possibilities.
 
Upvote 0
You are fantastic :)

Thankyou so much for that

a) I wonder is there anyway I can put the range into the formula rather than creating an extra column?

Also... I know this is a long shot but...

b) If there is only 1 piece of data entered into either A1 or B1 can it record an "N" into C1

c) And if both A1 and B1 are blank could it record nothing into the cell (But still have the formula applying)

many thanks

Now your greatest fan :)

Rameses
 
Upvote 0
a) can be done, but a very bad idea. Maintenance should be as easy as possible, rather than changing formulas.

b) + c)

=IF(A1&B1="","",IF(OR(A1="",B1=""),"N",MATCH(A1,$S$1:$S$5,0)-MATCH(B1,$S$1:$S$5,0)))
 
Upvote 0
Hi there

I am so grateful

I have decided to get rid of some of my older formlas (which work) when tracking other types of grades as those you have provided are so much simplar, shorter and easier to understand and use..!!!!

For a) the data range would never change so would not need any maintainence hence I wanted to include it in the formula...???

But what you have provided wow....hours i have puzzled over this ... it shows theres always an answer for anything!

many thanks

Rameses
:)
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,500
Members
449,090
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top