Multiple row value-based if/end issue

SteveNL86

Board Regular
Joined
Nov 11, 2014
Messages
109
Office Version
  1. 2016
Platform
  1. Windows
Dear reader,

I'm having an issue with a formula. I'm trying to accomplish the following:

A
B
C
1
Value1Value2Result
2
0,7​
10,1​
Stop
3
0,7​
10,1​
Stop
4
0,8​
9​
Stop
5
0,8​
9​
Stop
6
1​
10,5​
Ok
7
1​
10,5​
Ok
8
1​
10,5​
Ok
9
1,2​
11​
Ok
10
1,2​
11​
Ok
11
1,3​
12​
Ok
12
1,3​
12​
Ok
13
1,5​
12​
Stop
14
1,5​
17​
Stop
15
1,6​
15​
Stop
16
1,6​
15​
Stop

<tbody>
</tbody>

So I have 2 columns with values. The first column can be looked at as a category column. The second column has the results of each participant in their category. In the third column I'm trying to show if their are differences in the values between the participants. However, there are a few rules to keep in mind.

Rule 1: The value in column B of each participant in the same category (A) has to be the same, otherwise stop.
Rule 2: If a participant is in a higher category (Column A: 1,2>1) then the results in column B may not be higher (10.5<11), otherwise stop. For example in the column above; eventhough the participants in category 0,8 have the same result, their result is less than the participants in 0,7 so stop.
Optional Rule 3: This is for a fourth column, in here I'm allowing the results of column B to vary by +1 or -1.

In another thread, with some help, I've come to this formula:
=IF(OR(IFERROR(INDEX(AU$2:AU$100,MATCH(AT2,AT$2:AT$100,0)-1)*ISNUMBER(AU1),0)>INDEX(AU$2:AU$100,MATCH(AT2,AT$2:AT$100,0)),LOOKUP(2,1/(AT$2:AT$100=AT2),AU$2:AU$100)>IF(LOOKUP(2,1/(AT$2:AT$100=AT2),AU$3:AU$101)="",10^6,LOOKUP(2,1/(AT$2:AT$100=AT2),AU$3:AU$101))),"STOP","Ok")

However when I'm changing values it appears not to be fulling working.
I'm hoping anyone can point me in the right direction.

Thanks,
Steve
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I don't know how I'd go about giving it a margin of -1 to +1.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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