Index Match error

Dexir

New Member
Joined
Oct 27, 2018
Messages
40
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
Greetings all! i have this sheet, i am trying to figure out this result with Index match, the (Red filled cell) for reference that what i want. with If condition its work, but too lengthy at all. please give a solution.
Thanks in advance!
Working2.xlsx
ABCDEFGH
1SecondaryPrimary
2slab 110100
3slab 215200
4slab 325300
5slab 450400
6slab 5100500
7slab 6200600
8slab 7700700
9
10Town StatusDeal SlabTotal SalesOk/Not Ok
11SecondarySlab 115OkNot OK
12SecondarySlab 218
13SecondarySlab 328
14SecondarySlab 455
15SecondarySlab 5106
16SecondarySlab 6202
17SecondarySlab 215
18PrimarySlab 1101
19PrimarySlab 2201
20PrimarySlab 3301
21PrimarySlab 4401
22PrimarySlab 5501
23PrimarySlab 6601
24PrimarySlab 7701
25
Sheet1
Cell Formulas
RangeFormula
E11E11=IF(AND(INDEX($B$2:$C$8,MATCH($B11,$A$2:$A$8,0),MATCH($A11,$B$1:$C$1,0)>=$C11),(INDEX($B$2:$C$8,MATCH($B11,$A$2:$A$8,0),MATCH($A11,$B$1:$C$1,0))<=$B3)),"Ok","Not Ok")
G11G11=IF(A11=B$1,IF(AND(B11=A$2,$C11>=$B$2,C11<B$3),"OK","Not OK"))
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Looks like you have some of the brackets in the wrong place. Try
Excel Formula:
=IF(AND(INDEX($B$2:$C$8,MATCH($B11,$A$2:$A$8,0),MATCH($A11,$B$1:$C$1,0))>=$C11,INDEX($B$2:$C$8,MATCH($B11,$A$2:$A$8,0),MATCH($A11,$B$1:$C$1,0))<=$B3),"Ok","Not Ok")
 
Upvote 0
Thanks, but with this formula the one condition is correct.
=IF(AND($C11>=(INDEX($B$2:$C$8,MATCH($B11,$A$2:$A$8,0),MATCH($A11,$B$1:$C$1,0)))),"Ok","Not Ok")
i want to add other below mention condition too.
=IF($C11<=B3,"Ok","Not Ok")
and this is the criteria table. i cannt go out of this.
Working2.xlsx
ABC
1SecondaryPrimary
2slab 110100
3slab 215200
4slab 325300
5slab 450400
6slab 5100500
7slab 6200600
8slab 7700700
Sheet1



=IF(E17=AA$1,IF(AND(K17=AA$2,P17>=$AB$2,P17<AB$3),"OK",IF(AND(K17=AA$3,P17>=$AB$3,P17<AB$4),"OK",IF(AND(K17=AA$4,P17>=$AB$4,P17<AB$5),"OK",IF(AND(K17=AA$5,P17>=$AB$5,P17<AB$6),"OK",IF(AND(K17=AA$6,P17>=$AB$6,P17<AB$7),"OK",IF(AND(K17=AA$7,P17>=$AB$7,P17<AB$8),"OK",IF(AND(K17=AA$8,P17>=$AB$7,),"OK",IF(AND(E17=$AC$1,K17=$AC$2,P17>=$AD$2,P17<$AD$3),"OK",IF(AND(E17=$AC$1,K17=$AC$3,P17>=$AD$3),"OK","Not OK"))))))))))
this is the final formula, i hope you understand.
WS Hangama Sales Tracking Nationallys.xlsx
AAABACAD
1SecondarySecondaryPRIMARY
2Slab 110Slab 1100
3Slab 215Slab 2200
4Slab 325
5Slab 450
6Slab 5100
7Slab 6200
8Slab 7700
Shop Detail


 
Upvote 0
i hope you understand.
Fraid not, especially when that formula uses completely different cells.
Please explain (in words) what you are trying to do.
 
Upvote 0
=IF(AND(INDEX($B$2:$C$8,MATCH($B11,$A$2:$A$8,0),MATCH($A11,$B$1:$C$1,0))>=$C11,INDEX($B$2:$C$8,MATCH($B11,$A$2:$A$8,0),MATCH($A11,$B$1:$C$1,0))<=$B3),"Ok","Not Ok")
This formula working good sir!
but as well as i drag the formula down, the B3 change to B4 and so on.
i just want it to just fix in the criteria table.
it just stay between these:
Slab 1 = 10-14
Slab 2 = 15-24
Slab 3 = 25-49
so on. and primary too.
and Slab data is mixed, not in sequence as i post in below table.
Working2.xlsx
ABC
1SecondaryPrimary
2slab 110100
3slab 215200
4slab 325300
5slab 450400
6slab 5100500
7slab 6200600
8slab 7700700
Sheet1
 
Upvote 0
That does not explain what you are trying todo.
 
Upvote 0
I have criteria table like this:
Working2.xlsx
ABC
1Table No 1
2SecondaryPrimary
3slab 110100
4slab 215200
5slab 325300
6slab 450400
7slab 5100500
8slab 6200600
9slab 7700700
Sheet1

and this is the data file:
Working2.xlsx
ABC
11Table No 2
12Town StatusDeal SlabTotal Sales
13SecondarySlab 110
14SecondarySlab 517
15PrimarySlab 423
16SecondarySlab 455
17PrimarySlab 2106
18SecondarySlab 3199
19SecondarySlab 215
20PrimarySlab 799
21SecondarySlab 2201
22PrimarySlab 2301
23SecondarySlab 4401
24PrimarySlab 3501
25PrimarySlab 6601
26SecondarySlab 1701
Sheet1

Now what i want is that if C13 is less than Slab 1=10 than it should show "Not Ok", and if C13 is greater than Slab 2=15 than it show "Not Ok"
if stay between slab 1=10 and slab 2=15 than it show "Ok". i hope you understand..
sorry for my english
 
Upvote 0
What happens for Slab 7 as there is no Slab 8?
 
Upvote 0
There is no Slab 8 and Slab 7=700 or plus should show "Ok".
 
Upvote 0
Ok how about this for 2021
Fluff.xlsm
ABCDE
1SecondaryPrimary
2slab 110100
3slab 215200
4slab 325300
5slab 450400
6slab 5100500
7slab 6200600
8slab 7700700
9
10Town StatusDeal SlabTotal SalesOk/Not Ok
11SecondarySlab 115Not Ok
12SecondarySlab 218OK
13SecondarySlab 328OK
14SecondarySlab 455OK
15SecondarySlab 5106OK
16SecondarySlab 6202OK
17SecondarySlab 215OK
18PrimarySlab 1101OK
19PrimarySlab 2201OK
20PrimarySlab 3301OK
21PrimarySlab 4401OK
22PrimarySlab 5501OK
23PrimarySlab 6601OK
24PrimarySlab 7701OK
Data
Cell Formulas
RangeFormula
E11:E24E11=LET(a,FILTER(FILTER($B$2:$C$8,$A$2:$A$8>=B11),$B$1:$C$1=A11),IF(AND(C11>=INDEX(a,1),C11<IFERROR(INDEX(a,2),10000)),"OK","Not Ok"))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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