Require a way to create if statement for images

mande70

New Member
Joined
Apr 28, 2018
Messages
5
ok so my problem is that i currently have two rows of images, one for home kits and one for away kit images for a football database i entered.

this being my current formula to pull the image dependent on the match that is requested by the user.
=IF(Calculation!$D$31<>"-",INDEX(Kits!$A$2:$B$55,MATCH(Calculation!$B$31,Kits!$A$2:$A$55,0),2),Kits!$D$2)

the formula works for both home and away images, but what im wondering is, is there a way to create a formula that defines the kit selected based upon the colours.

eg at the moment if newcastle is selected black comes up for home and red for away, could i include another area in the formula to allow for the home kit to be displayed in the away column as long as the colour black does not clash with the home team colours. ?

i thought about creating another column for colours, buit how would i add the if statement to the current formula?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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