PC Review


Reply
Thread Tools Rate Thread

Coloring a cell based on a formula

 
 
Maury Markowitz
Guest
Posts: n/a
 
      29th Dec 2008
I have a spreadsheet that calculates the value of a stock portfolio
based on position, FX rates and the current price. The spreadsheet is
saved every night with the latest positions and last recorded prices,
and use a formula to calculate the value.

I also link this spreadsheet to Bloomberg using their AddIn. Since not
all stocks are priced on BBG, I place the AddIn formula in another
hidden column, and copy the price from that column into the "last
recorded price" column only if ISERROR is false. That way if BBG has a
price the price column is updated, and if not, the last price is not
removed and you still get a useful number.

What I would like to do is give the user some visual indication of
which price they are using. I am currently coloring the price cells
blue if the stock _can_ be priced on BBG (ie, I have a ticker).
However, that doesn't mean it _is_ priced on BBG, so the cell is
turning blue even in cases where the price is not live.

What I can't figure out is how to change the color based on a formula.
I am aware of Conditional Formatting, but the spreadsheet is large and
I recall performance being fairly poor. Can anyone offer some advice
here?

Maury
 
Reply With Quote
 
 
 
 
Bernard Liengme
Guest
Posts: n/a
 
      29th Dec 2008
Why not add conditional formatting to a copy of your file so that YOU can
judge if there is a performance issue?
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Maury Markowitz" <(E-Mail Removed)> wrote in message
news:61e0b200-7d83-47af-8235-(E-Mail Removed)...
>I have a spreadsheet that calculates the value of a stock portfolio
> based on position, FX rates and the current price. The spreadsheet is
> saved every night with the latest positions and last recorded prices,
> and use a formula to calculate the value.
>
> I also link this spreadsheet to Bloomberg using their AddIn. Since not
> all stocks are priced on BBG, I place the AddIn formula in another
> hidden column, and copy the price from that column into the "last
> recorded price" column only if ISERROR is false. That way if BBG has a
> price the price column is updated, and if not, the last price is not
> removed and you still get a useful number.
>
> What I would like to do is give the user some visual indication of
> which price they are using. I am currently coloring the price cells
> blue if the stock _can_ be priced on BBG (ie, I have a ticker).
> However, that doesn't mean it _is_ priced on BBG, so the cell is
> turning blue even in cases where the price is not live.
>
> What I can't figure out is how to change the color based on a formula.
> I am aware of Conditional Formatting, but the spreadsheet is large and
> I recall performance being fairly poor. Can anyone offer some advice
> here?
>
> Maury



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Coloring a cell based off the color of another cell Eric D Microsoft Excel Misc 4 13th Jun 2008 05:24 PM
Coloring Rows based on contents of cell A on each row Jeff W. Microsoft Excel Programming 7 18th Oct 2007 03:18 PM
Coloring cell text based on value Zilbandy Microsoft Excel Discussion 3 16th Sep 2006 09:19 AM
Conditional coloring of Excel cells, based on adjacent cell values? Greg Stuart Microsoft Excel Worksheet Functions 0 10th Mar 2006 10:14 PM
Coloring Cell Font based on Cell Contents willjohnson33@yahoo.com Microsoft Excel Programming 3 22nd Feb 2005 11:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:23 PM.