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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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