If/Countif

Fazila

Board Regular
Joined
Nov 19, 2014
Messages
163
I need a formula that compares two columns and tells me if a grade has gone up, down or stayed the same. The table I am trying to populate is similar to the one below:

ABCDE
GradeYear 10 TA4Year 11 TA1
9=sum(countif(index(rawdata,,match(h1,rawdataheadings,0)),{"9+","9","-9"}))=sum(countif(index(rawdata,,match(i1,rawdataheadings,0)),{"9+","9","-9"}))UpWherever there is a grade 9+, 9 or 9- in column H I want to know if the grade in the same row as has gone up i.e. 9 becomes 9+ or -9 becomes 9, gone down or stayed the same. I have converted the + and - to numbers
Same
Down
8
=sum(countif(index(rawdata,,match(h1,rawdataheadings,0)),{"9+","9","-9"}))

<tbody>
</tbody>
=sum(countif(index(rawdata,,match(i1,rawdataheadings,0)),{"9+","9","-9"}))Up
Same
Down
7
=sum(countif(index(rawdata,,match(h1,rawdataheadings,0)),{"9+","9","-9"}))

<tbody>
</tbody>
=sum(countif(index(rawdata,,match(i1,rawdataheadings,0)),{"9+","9","-9"}))Up
Same
Down

<tbody>
</tbody>


Hope this makes sense if anyone can think of a formula that would be really useful.

Thanks
 
Last edited:

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
As a workaround I have created a helper column on my raw data sheet for Up, Down and Same and used this formula:

=COUNTIFS(INDEX(RawData,,MATCH($N$1,RawDataHeadings,0)),">=8.67",INDEX(RawData,,MATCH($P$1,RawDataHeadings,0)),U9)

However, if anyone knows a way without using a helper column that would be great.

Thanks

Fazila
 
Upvote 0

Forum statistics

Threads
1,216,175
Messages
6,129,305
Members
449,499
Latest member
HockeyBoi

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