Dynamic range (column) in Lookup

Cobber2008

New Member
Joined
Nov 29, 2020
Messages
28
Office Version
  1. 365
Hi all,

I have this formula LOOKUP(2,1/(($BB3:$CAT3>0)*($BB3:$CAT3>=$AW3)),COLUMN(3:3)) which finds the column number of its > the value in AW3. I am looking to make the reference column number CAT dynamic and equal to a number in cell A1 which is value 216 (COLUMN 216) being HH.

So based on that what i am trying to get to is this LOOKUP(2,1/(($BB3:$HH3>0)*($BB3:$HH3>=$AW3)),COLUMN(3:3))

How can i do this?? I Hope this makes sense? Thanks.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
How about
Excel Formula:
=LOOKUP(2,1/(($BB3:INDEX(3:3,,A1)>0)*($BB3:INDEX(3:3,,A1)>=$AW3)),COLUMN(3:3))
 
Upvote 0
Solution
Hi Fluff thanks for your reply - im not sure if it works exactly. if I look below assuming A1 = 7 and AW3 = 7 then
it should be (BB3:BH3) and the answer whould be 3 or column bd.

Does this make sense?

A1
7​
AW3
7​
bbbcbdbebfbgbhbibjbk
1​
2​
8​
7​
5​
6​
7​
8​
9​
10​
 
Upvote 0

Forum statistics

Threads
1,213,544
Messages
6,114,239
Members
448,555
Latest member
RobertJones1986

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