Sheet Name But Referencing Column Letter

emptyq

New Member
Joined
Apr 6, 2021
Messages
6
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi,

Overall I'm trying to use a filter function with data from a separate sheet. Problem is the data is not very consistent and the column headers move around. I can use the address and match to find my column letter in the other sheet but I want to be able to put it back in to an overall function like the one at the bottom. It's part of a large function but this is a step I'm stuck on. For reference say data is in Sheet1 and the column with header "Start time" is in column L.

Find "Start time" = Address(1,match("Start time",Sheet1!A1:Z1,0)),4)
Returns L1
If I just want L = SUBSTITUTE(ADDRESS(1,(match("Start time",Sheet1!A1:Z1,0)),4),"1","")

=ArrayFormula(iferror(small(filter(Sheet1!L:L, Sheet1!L:L>0, Sheet1!A:A=A1),1),""))
Sheet1!A:A=A1 does not change just looking up the same value to cross reference rows

My first thought was an indirect function but it doesn't seem to work. Any help is appreciated. I'll update if I find the correct formula or function.
 
You're welcome & thanks for the feedback.
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,223,889
Messages
6,175,226
Members
452,620
Latest member
dsubash

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