INDEX & MATCH

Unlucky

Board Regular
Joined
Dec 3, 2014
Messages
58
Office Version
  1. 2016
Platform
  1. Windows
I'm trying to report a percentage from a table, based on Month & Year and Program identification criteria. I am currently using the formula: {=INDEX($Q$2:$Q$49,MATCH(1,($O$2:$O$49=B$3)*($P$2:$P$49=$G$1)),0)} but what is returned is not even close.

Of note, the reporting table is set up so that the Program and calendar year can be changed by a drop down menu.

Bottom Line: the Index & Match formula is not reporting the correct information for each month in a calendar year.

Here is the reporting table:

Cell Formulas
RangeFormula
B3:M3B3=B2&" - "&$A$7
B4:M4B4=INDEX($Q$2:$Q$49,MATCH(1,($O$2:$O$49=B$3)*($P$2:$P$49=$G$1)),0)
B5:M5B5=INDEX($Q$2:$Q$49,MATCH(1,($O$2:$O$49=B$6)*($P$2:$P$49=$G$1)),0)
B6:M6B6=B2&" - "&$A$8
B7:M7B7=SIGN(B4-B5)
A5A5=(A4)-1
A7:A8A7=RIGHT(A4,2)
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B7:M7Other TypeIcon setNO
Cells with Data Validation
CellAllowCriteria
A4List=$E$9:$E$13
G1List=$B$9:$B$13
 

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
Here is the data (source table)

TEST LOG FOR FORMULAS.xlsx
OPQ
1MONTHPROGRAMPERCENT
2JAN - 22A55.00%
3FEB - 22A76.00%
4MAR - 22A77.00%
5APR - 22A74.00%
6MAY - 22A87.00%
7JUN - 22A82.00%
8JUL - 22A80.00%
9AUG - 22A51.00%
10SEP - 22A89.00%
11OCT - 22A88.00%
12NOV - 22A88.00%
13DEC - 22A92.00%
14JAN - 21A90.00%
15FEB - 21A90.00%
16MAR - 21A91.00%
17APR - 21A99.00%
18MAY - 21A94.00%
19JUN - 21A92.00%
20JUL - 21A89.00%
21AUG - 21A87.00%
22SEP - 21A89.00%
23OCT - 21A90.00%
24NOV - 21A96.00%
25DEC - 21A97.00%
26JAN - 22B37.00%
27FEB - 22B34.00%
28MAR - 22B31.00%
29APR - 22B65.00%
30MAY - 22B67.00%
31JUN - 22B70.00%
32JUL - 22B72.00%
33AUG - 22B75.00%
34SEP - 22B76.00%
35OCT - 22B77.00%
36NOV - 22B73.00%
37DEC - 22B79.00%
38JAN - 21B12.00%
39FEB - 21B11.00%
40MAR - 21B10.00%
41APR - 21B12.00%
42MAY - 21B15.00%
43JUN - 21B22.00%
44JUL - 21B37.00%
45AUG - 21B39.00%
46SEP - 21B45.00%
47OCT - 21B41.00%
48NOV - 21B43.00%
49DEC - 21B40.00%
FORMULA TEST
Cell Formulas
RangeFormula
O2O2=B2&" - "&$A$7
O3O3=C2&" - "&$A$7
O4O4=D2&" - "&$A$7
O5O5=E2&" - "&$A$7
O6O6=F2&" - "&$A$7
O7O7=G2&" - "&$A$7
O8O8=H2&" - "&$A$7
O9O9=I2&" - "&$A$7
O10O10=J2&" - "&$A$7
O11O11=K2&" - "&$A$7
O12O12=L2&" - "&$A$7
O13O13=M2&" - "&$A$7
O14O14=B2&" - "&$A$8
O15O15=C2&" - "&$A$8
O16O16=D2&" - "&$A$8
O17O17=E2&" - "&$A$8
O18O18=F2&" - "&$A$8
O19O19=G2&" - "&$A$8
O20O20=H2&" - "&$A$8
O21O21=I2&" - "&$A$8
O22O22=J2&" - "&$A$8
O23O23=K2&" - "&$A$8
O24O24=L2&" - "&$A$8
O25O25=M2&" - "&$A$8
O26O26=B2&" - "&$A$7
O27O27=C2&" - "&$A$7
O28O28=D2&" - "&$A$7
O29O29=E2&" - "&$A$7
O30O30=F2&" - "&$A$7
O31O31=G2&" - "&$A$7
O32O32=H2&" - "&$A$7
O33O33=I2&" - "&$A$7
O34O34=J2&" - "&$A$7
O35O35=K2&" - "&$A$7
O36O36=L2&" - "&$A$7
O37O37=M2&" - "&$A$7
O38O38=B2&" - "&$A$8
O39O39=C2&" - "&$A$8
O40O40=D2&" - "&$A$8
O41O41=E2&" - "&$A$8
O42O42=F2&" - "&$A$8
O43O43=G2&" - "&$A$8
O44O44=H2&" - "&$A$8
O45O45=I2&" - "&$A$8
O46O46=J2&" - "&$A$8
O47O47=K2&" - "&$A$8
O48O48=L2&" - "&$A$8
O49O49=M2&" - "&$A$8
 
Upvote 0
You have a closing bracket in the wrong place, it should be
Excel Formula:
=INDEX($Q$2:$Q$49,MATCH(1,($O$2:$O$49=B$3)*($P$2:$P$49=$G$1),0))
 
Upvote 0
Solution
Wow! That was too easy. I can't believe that I missed that!

You're awesome! Thank you very much!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,262
Messages
6,171,080
Members
452,377
Latest member
bradfordsam

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