Is it possible to generate a string from the syntax of a parameter?

Rnkhch

Well-known Member
Joined
Apr 28, 2018
Messages
528
Office Version
  1. 365
Platform
  1. Windows
Hello,

Would it be possible to output a string corresponding to the syntax of a parameter? Here is an example:

=LET(x,A5:H5,operation...)

Would it be possible to have a function in place of "operation" that would get the string output of the second parameter's syntax as "A5:H5" (without the quotes)?

(Everything I tried so far generate strings from the actual contents of A5:H5.)

Thanks for any input! 🤗
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Unsure what exactly you are after, try:

Excel Formula:
=INDEX(A:H,5,0)

If that isn't helpfull, could you please show with an example what it is you are trying?
 
Upvote 0
if I get you right:
工作簿1
ABCDEF
1
2
3$A$5:$H$5
4
5
6
Sheet1
Cell Formulas
RangeFormula
D3D3=LET(s,MAP(A5:H5,LAMBDA(x,CELL("address",x))),TAKE(s,,1)&":"&TAKE(s,,-1))
 
Upvote 0
or you can try:
工作簿1
ABCDEF
1
2
3$A$5:$H$5
4
5
6
Sheet1
Cell Formulas
RangeFormula
D3D3=LET(x,A5:H5,CELL("address",TAKE(x,1,1))&":"&CELL("address",TAKE(x,-1,-1)))
 
Upvote 0
Or

Excel Formula:
=LET(r,A5:H5,x,ADDRESS(ROW(r),COLUMN(r),4),TAKE(x,1,1)&":"&TAKE(x,-1,-1))
 
Upvote 0
工作簿1
ABCDEFGHI
1
2$A$5:$H$7
3
4
5
6
7
8
Sheet1
Cell Formulas
RangeFormula
E2E2=LET(x,A5:H7,CELL("address",TAKE(x,1,1))&":"&CELL("address",TAKE(x,-1,-1)))
 
Upvote 0
Solution
Thanks all! 🤗 I wanted to use the output string as a reference in INDIRECT.
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,795
Members
449,468
Latest member
AGreen17

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