ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how do I concatenate text that has a quotation mark (https://www.excelbanter.com/excel-discussion-misc-queries/34432-how-do-i-concatenate-text-has-quotation-mark.html)

sparkroms

how do I concatenate text that has a quotation mark
 

how do I concatenate text that has a quotation mark in it like the
following html: <img width="76" height="25" src="blah"


--
sparkroms
------------------------------------------------------------------------
sparkroms's Profile: http://www.excelforum.com/member.php...o&userid=25037
View this thread: http://www.excelforum.com/showthread...hreadid=385642


Dave O

Replace the quotation mark with its ASCII character equivalent: 34.


Dave Peterson

I put 76 in A1, 25 in B1 and blah in C1.

Then I used this formula:

="<img width="""&A1&""" height="""&B1&""" src="""&C1&""""

Seemed to match up ok.

sparkroms wrote:

how do I concatenate text that has a quotation mark in it like the
following html: <img width="76" height="25" src="blah"

--
sparkroms
------------------------------------------------------------------------
sparkroms's Profile: http://www.excelforum.com/member.php...o&userid=25037
View this thread: http://www.excelforum.com/showthread...hreadid=385642


--

Dave Peterson


All times are GMT +1. The time now is 03:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com