INDEX reference questions

awoohaw

Well-known Member
Joined
Mar 23, 2022
Messages
4,629
Office Version
  1. 365
Platform
  1. Windows
  2. Web
I often use INDEX to create arrays by using the reference characteristic it has. One of the questions earlier in the forum had me using this function and I thought it would work.
But, i'm getting a value error with the calculation to put together the two index halves of the range. It finds the value of each half correctly, but when put together the result is a #VALUE error. I'm not sure why since its using column numbers and numbers in the matching cells. But, I converted all cells to Number format anyway. And still get the error.

I do not get the error when I just use a range reference versus the range calculated using the INDEX functions.

This is a question about the INDEX function, and not the task.

Any thoughts?

Cell Formulas
RangeFormula
A2A2=INDEX(COLUMN(1:1)*(COLUMN(1:1)>=A1)*(COLUMN(1:1)<=B1),A1)
A3A3=INDEX(COLUMN(1:1)*(COLUMN(1:1)>=A1)*(COLUMN(1:1)<=B1),B1)
A4A4= INDEX(COLUMN(1:1)*(--(COLUMN(1:1)>=A1))*(--(COLUMN(1:1)<=B1)),A1) : INDEX(COLUMN(1:1)*(--(COLUMN(1:1)>=A1))*(--(COLUMN(1:1)<=B1)),B1)
D2:D4,D6D2=FORMULATEXT(A2)
A6:C6A6=INDEX(1:1,9):INDEX(1:1,11)
Dynamic array formulas.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Those INDEX functions are using arrays, not ranges, so you can't use them with the reference operator.
 
Upvote 0
Solution
Those INDEX functions are using arrays, not ranges, so you can't use them with the reference operator.
well, isn't that just a raspberry to microsoft. blblblblbllbbbb
 
Upvote 0
well, isn't that just a raspberry to microsoft
Um, no. ;) You're multiplying column numbers together. Hard to see how that should return a range.
 
Upvote 0

Forum statistics

Threads
1,215,360
Messages
6,124,489
Members
449,166
Latest member
hokjock

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