Author Topic: Using a cell's value as a sheet ID reference?  (Read 170 times)

0 Members and 1 Guest are viewing this topic.

natelfo

  • Newbie
  • *
  • Posts: 5
Using a cell's value as a sheet ID reference?
« on: April 18, 2019, 03:34:12 PM »
I want to have a user defined cell that I can just punch in a number and use the value of that cell as a sheet ID reference in other formulas.  For example, If I type in 50, I want other formulas in the shape to reference Sheet.50!.  I've tried various things such as =If(Sheet.User.SheetID.Value=50,1,0), and I've tried playing around with adding parentheses, concatenating with the & sign, and no matter what Iv'e tried, I can not get it to work.  Any ideas?

Surrogate

  • Hero Member
  • *****
  • Posts: 892
    • ShapeSheet™ Knowledge Base
Re: Using a cell's value as a sheet ID reference?
« Reply #1 on: April 19, 2019, 01:09:45 AM »
You can use SETF function for create reference. Syntax can be like this
Code: [Select]
SETF(GetRef(<target_cell>),"sheet."&User.id&"!width")short video
« Last Edit: April 19, 2019, 03:10:54 AM by Surrogate »

natelfo

  • Newbie
  • *
  • Posts: 5
Re: Using a cell's value as a sheet ID reference?
« Reply #2 on: April 22, 2019, 01:01:43 PM »
Thanks Surrogate.  That worked.