Simultaneously edit range with different values

nicolehalliday

Board Regular
Joined
May 19, 2010
Messages
56
Hello

I am trying to edit a long range of cells that are actually the tickers for the 500 companies in the S&P500 index. They look like this:

A UN Equity
AA UN Equity
AAPL UW Equity
ABC UN Equity

...etc. What I would like them to be changed to is:

=BDH("A UN Equity","PX_HIGH",A1,A1)
=BDH("AA UN Equity","PX_HIGH",A1,A1)
=BDH("AAPL UW Equity","PX_HIGH",A1,A1)
=BDH("ABC UN Equity","PX_HIGH",A1,A1)

So basically I'm wondering if it's possible to edit before and after different values in a range if what you are adding is the same for every cell. I've tried selecting the range, making the changes and then CTRL+ENTER (and many other variations) with no luck. I dread the notion of editing each of the 500 cells manually so any ideas would be much appreciated!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Thanks for the reply. in A1 is =TODAY()-1 and the ticker names are in the range B1:B500. I thought I might need a macro but I wouldn't even know where to start. I am not very familiar with VBA, so I would really appreciate if you have any ideas!
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

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