Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi ,
How do I pass a variable as text to substring count?
Thanks
T
=SubStringCount($([Curent Spreadsheet]),'\')
Simply wrap the dollar sign expansion in single quotes.
'$(yourvariable)'
Thanks, however when continute to expand the formula to
=index('$(Current Spreadsheet)',SubStringCount('$(Current Spreadsheet)','\'))
It returns zero, why wont index pick up the number?
The next stage is to wrap the above formula inside left('$(Current Spreadsheet)',above formula)
Thanks
Your expression searched within a string (your variable) the number of backslashes within them, like:
index('string', 3)
is it what do you want to do?
- Marcus
What is the actual value of your variable? Also, I don't believe variables can have spaces.