Was working, now NOT working!

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,843
Office Version
  1. 2010
Platform
  1. Windows
Hi…
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
This is going to be long winded so please stick with it…
<o:p> </o:p>
I have a workbook for the 20 team English Premiership which is working. I want a workbook for the 20 team French League so I use “save as” in my English Premiership workbook and create the French book.
<o:p> </o:p>
I basically then change the 20 team names to French teams and change the club badges for each team… I’ve been doing this for a while, obviously as I develop my workbooks and nothing has gone wrong…
<o:p> </o:p>
Today it has!!!
<o:p> </o:p>
It’s to do with when I select a fixture (i.e. team A v Team B)… their club badges should be displayed but for some reason incorrect badges are OCCASIONALLY being displayed. It’s not random, some selections display correctly, other selections ALWAYS display incorrectly (So I might select team A v team B and it will display correctly… when I select team G v team H then for some reason the new workbook has started displaying the badge for Team B)…
<o:p> </o:p>
As everything was correct prior to me saving I’m totally lost here…
<o:p> </o:p>
My formulas are:
<o:p> </o:p>
Home Team…
<o:p> </o:p>
My Picture is called PcHome which is defined as =INDIRECT("Badges!$B$"&MATCH(Played!$AS$10,List,2))
<o:p> </o:p>
Away Team
<o:p> </o:p>
My Picture is called PCAway which is defined as
=INDIRECT("Badges!$B$"&MATCH(Played!$AS$11,List,2))
<o:p> </o:p>
List is defined as =OFFSET(Badges!$A$1,,,COUNTA(Badges!$A:$A))
<o:p> </o:p>
A strange symptom of my problem is… Played!$AS$10 and Played!$AS$11 can be different teams YET, they SOMETIMES they display the same picture.
<o:p> </o:p>
Can anyone see my problem please… what is the “2” doing in my MATCH? Just in case, my team names are in Badges!A1:A20 and the club badges in Badges!B1:B20.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi…
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
This is going to be long winded so please stick with it…
<o:p></o:p>
I have a workbook for the 20 team English Premiership which is working. I want a workbook for the 20 team French League so I use “save as” in my English Premiership workbook and create the French book.
<o:p></o:p>
I basically then change the 20 team names to French teams and change the club badges for each team… I’ve been doing this for a while, obviously as I develop my workbooks and nothing has gone wrong…
<o:p></o:p>
Today it has!!!
<o:p></o:p>
It’s to do with when I select a fixture (i.e. team A v Team B)… their club badges should be displayed but for some reason incorrect badges are OCCASIONALLY being displayed. It’s not random, some selections display correctly, other selections ALWAYS display incorrectly (So I might select team A v team B and it will display correctly… when I select team G v team H then for some reason the new workbook has started displaying the badge for Team B)…
<o:p></o:p>
As everything was correct prior to me saving I’m totally lost here…
<o:p></o:p>
My formulas are:
<o:p></o:p>
Home Team…
<o:p></o:p>
My Picture is called PcHome which is defined as =INDIRECT("Badges!$B$"&MATCH(Played!$AS$10,List,2))
<o:p></o:p>
Away Team
<o:p></o:p>
My Picture is called PCAway which is defined as
=INDIRECT("Badges!$B$"&MATCH(Played!$AS$11,List,2))
<o:p></o:p>
List is defined as =OFFSET(Badges!$A$1,,,COUNTA(Badges!$A:$A))
<o:p></o:p>
A strange symptom of my problem is… Played!$AS$10 and Played!$AS$11 can be different teams YET, they SOMETIMES they display the same picture.
<o:p></o:p>
Can anyone see my problem please… what is the “2” doing in my MATCH? Just in case, my team names are in Badges!A1:A20 and the club badges in Badges!B1:B20.
Maybe this...

Replace the 2 in your MATCH function with 0.

The 2 is the same as using 1 for the match_type argument which tells the MATCH function to find a "closest match" if an exact match isn't found. When you use 2 (or any number >0, but it's supposed to be 1) the MATCH function expects the data to be sorted in ascending order and if it's not then the results you can get will be unpredictable.
 
Upvote 0
I don't get this...

In the book that isn't working I put in last season's French teams and badges and everything worked as expected...

I then got the book working with this season's data by changing that 2 in the MATCH to a 0...

Surely I just haven't been lucky with all my books working when that 2 in the MATCH has been the problem?
 
Upvote 0
Hi Biff,

I wrote my #3 before seeing your reply... Yes the 0 is working and I do see why that would solve that problem... BUT, I had 11 books on the go last season, 11 different leagues and this problem (the exact match issue) wasn't in any of them...

Amazing if you ask me but I'm just an idiot trying to learn excel...!

Thanks for your reply and advice. :)
 
Upvote 0
Hi Biff,

I wrote my #3 before seeing your reply... Yes the 0 is working and I do see why that would solve that problem... BUT, I had 11 books on the go last season, 11 different leagues and this problem (the exact match issue) wasn't in any of them...

Amazing if you ask me but I'm just an idiot trying to learn excel...!

Thanks for your reply and advice. :)
Hey, we have something in common! :beerchug:
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,763
Members
452,940
Latest member
rootytrip

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