Inserting value from cell in another cell within quotes

analystintraining

New Member
Joined
Sep 18, 2019
Messages
4
Hi all, I have a question that may be very basic, but I'm stumped. I have a list of thousands of values (CUSIP data), and I need the information in these cells for another formula. For example, cell A2 could be 99934U0F2, and I need that information to go into another formula in cell B2: =BDP("99934U0F2 CUSIP, "CNTRY_OF_DOMICILE").

Now I can copy-paste the value from A2 inside the cell and then paste it into the formula in B2, but I have thousands of these that I need to run. My issue is inserting the value of another cell within quotations marks, since the second =BDP formula has to have the quotes.

Any suggestions and help are very welcome. Thank you!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I don't have the Bloomberg Addin but to insert double quotes in a string you can wrap double quotes in double quotes so something like this in B2
Code:
 =""""&A2&" CUSIP "&",CNTRY_OF_DOMICILE"""

will give cell B2 results of
"99934U0F2 CUSIP ,CNTRY_OF_DOMICILE"
 
Upvote 0
Thank you so much for your help! I'm trying to get a result of "99934U0F2 CUSIP" ,"CNTRY_OF_DOMICILE", but adding those two extra quotations marks is proving to be tricky.
 
Upvote 0
I just realized I'm showing up with an extra quote and no comma: "99373U9F3 "CUSIP ""CNTRY_OF_DOMICILE"".

I don't need a quote before CUSIP, but I do need a comma between CUSIP and CNTRY_OF_DOMICILE, so that I get something like

=BDP("99934UOF2 CUSIP", "CNTRY_OF_DOMICILE"). Trying to take out commas around CUSIP just leaves me with errors, as well as trying to add a comma in between. Adding commas to the end of the string leaves me with too many.
 
Upvote 0
Maybe take out the space before the comma?

AB
299934U0F2"99934U0F2 CUSIP","CNTRY_OF_DOMICILE"

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3

Worksheet Formulas
CellFormula
B2=""""&A2&" CUSIP"""&",""CNTRY_OF_DOMICILE"""

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,213,561
Messages
6,114,316
Members
448,564
Latest member
ED38

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