Make Formula Dynamic

SanjayGMusafir

Well-known Member
Joined
Sep 7, 2018
Messages
1,503
Office Version
  1. 2021
Platform
  1. MacOS
Hi Experts
Underneath is my workaround formula, which looks for the Current Row Value [@PMobile] in/until the rows above (Column AR - Header[PMobile] ) in a structured table and returns value from the Column [sP] (Column AO)

Excel Formula:
=LET(St,XLOOKUP([@PMobile],$AR$2:AR2,$AO$2:AO2,"",0),IFS(St=0,"",TRUE,St))

The above is working fine.

I initially tried to make it dynamic as below, but I understand that I made some strange blunder. Can you help me make it dynamic.

Excel Formula:
=LET(St,XLOOKUP([@PMobile],Clients[[#Headers],[PMobile]]:OFFSET([@PMobile],-1,0),Clients[[#Headers],[sP]]:OFFSET([@sP],-1,0),"",0),IFS(St=0,"",TRUE,St))

Unable to copy XL2BB to give the reference - It is giving some error

Thanks in Advance
Highly Appreciated
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I don't understand what you are trying to achieve - your formula is already 'dynamic' in any sense I can think of.
 
Upvote 0
Your OFFSET formula works for me. What is happening when you use it?
 
Upvote 0
Solution
Your OFFSET formula works for me. What is happening when you use it?
Hi @RoryA
Thanks for reverting

I was in middle of so many things, so didn't get chance to test things out.

You are right. The formula is working. Probably I overlooked something when I was testing it.

Sorry for the inconvenience
And Thanks again for reverting.
 
Upvote 0

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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