Array Formula Change

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have an array formula which looks up data from within the range AA219:AA2217

What I would like is that this formula works in the same way but every other row and not consecutive rows

If I use this formula and drag down it works fine, but if I use this formula every other row it misses out half the data I actually need it to show


=IF($R$2<>"",IFERROR(INDEX($AF$219:$AF$2217,SMALL(IF($AA$219:$AA$2217=$R$2,ROW($AA$219:$AA$2217)-ROW($AA$219)+1),ROWS(B$10:B10))),""),"")


Many Thanks for any help
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
In B10 control+shift+enter, not just enter, and copy down:

=IF($R$2<>"",IFERROR(INDEX($AF$219:$AF$2217,SMALL(IF(MOD(ROW($AA$219:$AA$2217)-ROW($AA$219),2)=0,IF($AA$219:$AA$2217=$R$2,ROW($AA$219:$AA$2217)-ROW($AA$219)+1)),ROWS(B$10:B10))),""),"")
 
Upvote 0
Hi Aladin,

Many thanks for the reply

Unfortunatley this halves the available data again?

Very Odd, but thanks for trying
 
Upvote 0
Hi Aladin,

Many thanks for the reply

Unfortunatley this halves the available data again?

Very Odd, but thanks for trying

I don't get what you are trying to say... Maybe you can create a scaled-down sample along with the desired results?
 
Upvote 0
Hi,

Perhaps you mean something like this (with CTRL-SHIFT-ENTER):

Code:
=IF(
    OR(
      $R$2 = "",
      MOD(ROWS(B$10:B10), 2) = 0),
    "",
    IFERROR(
      INDEX(
        $AF$219:$AF$2217,
        SMALL(
          IF(
            $AA$219:$AA$2217 = $R$2,
            ROW($AA$219:$AA$2217) - ROW($AA$219) + 1),
          ROUNDUP(ROWS(B$10:B10) / 2, 0))),
      ""))
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,214
Members
449,074
Latest member
cancansova

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