Dynamically reference to column with data

Otchoo2

New Member
Joined
Mar 21, 2025
Messages
4
Office Version
  1. 365
Hi,

I am trying to reference to a column in a different sheet, like this. =Order!C1.:.C9999
But how can i do that dynamically? I tried it with adress and match to find the right header and tried to combine this. But i cant get it to work.

The reason i try to do this is the data that i am looking for is sometimes in Column A and sometimes it is in a different Column.
 
Hi,

I am trying to reference to a column in a different sheet, like this. =Order!C1.:.C9999
But how can i do that dynamically? I tried it with adress and match to find the right header and tried to combine this. But i cant get it to work.

The reason i try to do this is the data that i am looking for is sometimes in Column A and sometimes it is in a different Column.
Will the column always have the same column heading?
 
Upvote 0
How about
Excel Formula:
=LET(d,Order!A1.:.Z9999,INDEX(d,,XMATCH("item",TAKE(d,1))))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

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