When you're referencing an array using "#", is there a more straightforward way to reference a specific column or row in that array besides INDEX?

alexcr

Board Regular
Joined
Oct 15, 2018
Messages
59
Office Version
  1. 365
Platform
  1. Windows
For example, let's say there's an array that begins on a worksheet at cell B5, and you want to reference the second column of that array.

I know one way to do that is "INDEX(B5#,,2)", but is there perhaps an even more straightforward way to reference this column without resorting to a function?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I'm not sure how much straightforward you can get, but here are 2 more options:

Excel Formula:
=FILTER(B5#,{0,1,0})


assuming 3 columns.

Excel Formula:
=DROP(TAKE(B5#,,2),,1)
 
Upvote 0
Another new function, that might be most intuitive:

Excel Formula:
=CHOOSECOLS(B5#,2)

Thanks, @Eric W! I didn't even think of the CHOOSECOLS option for some reason. But, yeah, that makes it slightly more intuitive, which is good.
 
Upvote 0
comparison formulas:
Excel Formula:
   =IF(B5# = C3, TRUE, FALSE)
 
Upvote 0

Forum statistics

Threads
1,215,084
Messages
6,123,028
Members
449,092
Latest member
ikke

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