Referencing text that have quotation marks in formula

edrickz101

New Member
Joined
Sep 20, 2022
Messages
6
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello! I tried searching for this in google but it seems I'm being led to something else. I'm writting this formula and need to reference a string that have quotation marks in them.

Formula looks like this:
=IFS(A2="Yes",0,B2="What he said was: "Mr.Excel.Com" (website)",10)

Excel won't let me reference "Mr. Excel.Com" and facing an error. It's like the formula only recognizes "What he said was: " this as the text string.

Is there a workaround on this?

Thank you in advance!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
You need to double up on the double quotes in that part of the string

=IFS(A2="Yes",0,B2="What he said was: ""Mr.Excel.Com"" (website)",10)
 
Upvote 0
Solution
You're welcome :)
Easy when you know how, almost impossible when you don't.

The problem that you had seems to be very rare with formulas but it is something that vba users will come across almost daily.
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,117
Members
453,021
Latest member
Justyna P

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