Conditional formatting with INDEX & MATCH

Mazbuka

New Member
Joined
Sep 23, 2018
Messages
23
Office Version
  1. 365
Platform
  1. Windows
I'm learning INDEX/MATCH & have a little problem with conditional formatting

Below example looking at air fares by airline to various destinations, in cell D10 I return the correct cost based on the selections of airline & destination in B10 & C10, it works fine:

=INDEX($B$3:$F$7,MATCH($B$10,$A$3:$A$7,0),MATCH($C$10,$B$2:$F$2,0))


However, if I want to apply conditional formatting to B3:F7 and use the same formula, so starting at B3 and pasting format down & across to F7

=B3=INDEX($B$3:$F$7,MATCH($B$10,$A$3:$A$7,0),MATCH($C$10,$B$2:$F$2,0))

As F4 & F7 have the same cost, each are highlighted when my selection is Amsterdam & Qantas (or Manchester & Qantas) as it's fomatting based on the result, 1,896...

How do I get it to only format the cell at the selected intersection?


1ABCDEF
2ETIHADBAAIR FRANCEEMIRATESQANTAS
3DUBLIN1,8501,7331,8001,9552,013
4MANCHESTER1,9741,7121,9361,8211,896
5LONDON1,7232,0032,0022,1121,982
6PARIS1,7151,8142,0211,8882,061
7AMSTERDAM2,0532,0121,7432,1141,896
8
9FLY TOAIRLINECOST
10AMSTERDAMQANTAS1,896

<tbody>
</tbody>
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I think you're getting over-complicated with INDEX/Match. This seems to work fine for me:

[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=AND($A3=$B$10,B$2=$C$10)[/FONT]
 
Upvote 0
Solution
Ha, that was really a case of me not seeing the woods for the trees! Such a simple fix, thanks Claire.
 
Upvote 0

Forum statistics

Threads
1,215,391
Messages
6,124,673
Members
449,178
Latest member
Emilou

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