Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default Coloring a cell based on a formula

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,393
Default Coloring a cell based on a formula

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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Coloring a cell based off the color of another cell Eric D Excel Discussion (Misc queries) 4 June 13th 08 05:24 PM
Coloring Rows based on contents of cell A on each row Jeff W. Excel Programming 7 October 18th 07 03:18 PM
Coloring duplicates based on values in a column. Josh Excel Programming 6 June 4th 07 07:37 PM
Conditional coloring of Excel cells, based on adjacent cell values? Greg Stuart Excel Worksheet Functions 0 March 10th 06 10:14 PM
Coloring Cell Font based on Cell Contents [email protected] Excel Programming 3 February 22nd 05 11:37 PM


All times are GMT +1. The time now is 06:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"