FREQUENCY and INDIRECT…

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,843
Office Version
  1. 2010
Platform
  1. Windows
I have a workbook that looks at the last 5 football seasons and gives me answers!
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
Anyway as this season is about to finish I need to add those results to my book and drop a season so that I keep my 5 years of data.
<o:p> </o:p>
I’ve been playing around with this book for months now and I’ve just about got it to work apart from the following.
<o:p> </o:p>
It’s reliant on named ranges so I need to remove a range called Teams05 (2005) and replace it with Teams (2010) for example.
<o:p> </o:p>
So if you can imagine this, the current layout of my data is blocks of columns by year on a single sheet…
<o:p> </o:p>
2009-2010 2008-2009 2007-2008 2006-2007 2005-2006
<o:p> </o:p>
I’m about to obliterate 2005 – 2006 and “over-write” that data with 2010-2011
<o:p> </o:p>
All I then want to do is remove the named ranges specific to 2005-2006 and replace them with 2010-2011 ranges.
<o:p> </o:p>
Basically I’m using these formula from another book that is working but I can’t get my INDIRECT correct.
<o:p> </o:p>
{=SUM(IF(FREQUENCY(IF(Teams<>"",MATCH("~"&Teams,Teams&"",0)),ROW(Teams)-ROW(A2)+1),1))} is working
<o:p> </o:p>
I’ve replaced that with…
<o:p> </o:p>
{=SUM(IF(FREQUENCY(IF(INDIRECT(C29)<>"",MATCH("~"&INDIRECT(C29),INDIRECT(C29)&"",0)),ROW(INDIRECT(C29))-ROW(INDEX(INDIRECT(C29),1))+1),1))} which is working
<o:p> </o:p>
I can’t get this one working…
<o:p> </o:p>
=IF(ROWS(D$2:D2)<=$C$2,INDEX(Teams,MATCH(SMALL(IF(Teams<>"",IF(ISNA(MATCH(Teams,$D$1:D1,0)),Range)),1),Range,0)),"")
<o:p> </o:p>
I need to replace “Teams” with “INDIRECT(C29). Range in the above refers to
<o:p> </o:p>
=MMULT((IF(Teams<>"",Teams)>TRANSPOSE(IF(Teams<>"",Teams)))+0,ROW(Teams)^0)
<o:p> </o:p>
I’m also not sure about the following amendment to Range…
<o:p> </o:p>
=MMULT((IF(INDIRECT(B29)<>"",INDIRECT(B29))>TRANSPOSE(IF(INDIRECT(B29)<>"",INDIRECT(B29))))+0,ROW(INDIRECT(B29))^0)
<o:p> </o:p>
Any ideas please anyone?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,225,149
Messages
6,183,194
Members
453,151
Latest member
Lizamaison

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