To many quote symbols for formula to work

rplohocky

Active Member
Joined
Sep 25, 2005
Messages
292
Office Version
  1. 365
Platform
  1. Windows
Hello,
I am trying to create a formula that uses text and symbols but Excel doesn't like it. Here's an example:
Rich (BB code):
="/system identity
set name=""&b2&"""
/system logging
set 0 action=disk disabled=no prefix="" topics=info
set 1 action=disk disabled=no prefix="" topics=error
set 2 action=disk disabled=no prefix="" topics=warning
set 3 action=disk disabled=no prefix="" topics=critical"
I would like to have cell B2 be inserted into where the B2 is shown in the above script but because my text has so many quotes in it i think excel is getting confused. Is there a way to build a formula that will have an end result of:
/system identity
set name="Jane Doe"
/system logging
set 0 action=disk disabled=no prefix="" topics=info
set 1 action=disk disabled=no prefix="" topics=error
set 2 action=disk disabled=no prefix="" topics=warning
set 3 action=disk disabled=no prefix="" topics=critical
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
How about
Excel Formula:
="/system identity
set name="""&B2&"""
/system logging
set 0 action=disk disabled=no prefix="""" topics=info
set 1 action=disk disabled=no prefix="""" topics=error
set 2 action=disk disabled=no prefix="""" topics=warning
set 3 action=disk disabled=no prefix="""" topics=critical"
 
Upvote 0
How about
Excel Formula:
="/system identity
set name="""&B2&"""
/system logging
set 0 action=disk disabled=no prefix="""" topics=info
set 1 action=disk disabled=no prefix="""" topics=error
set 2 action=disk disabled=no prefix="""" topics=warning
set 3 action=disk disabled=no prefix="""" topics=critical"
Yes that did it!! Thank you so much!
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,950
Messages
6,127,897
Members
449,411
Latest member
AppellatePerson

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