Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using subsripts inside a formula 1

Status
Not open for further replies.

SteveGregory

Structural
Jul 18, 2006
554
I use text and subscripts for variable names as plain text to document my spreadsheets. In this case, my documentation "disappears" based on a true/false result in another cell. In my example below, I would like to use a subscript for the P in the formula below. Is there a simple way to do this or do I just need to be content with using a lowercase P?

=IF(K18=1,"","Fp =")
 
Replies continue below

Recommended for you

I've been trying for years to find out how to achieve this. Good luck, but don't hold your breath while you wait: I think it's impossible. (A similar problem arises when you try to mix fonts within the text string, to include Greek symbols, mathematical operators, etc.)
 
I don't know of a way to format the results of a formula, but you can enter text formatted the way you want, then use conditional formatting to change the text colour to white (or whatever the cell background colour is) to make it dissapear when you don't want it.



Doug Jenkins
Interactive Design Services
 
Another possibility that would certainly give greater control, and probably be more robust would be to insert a picture link with a dynamic named range, linking to either the formatted text you want or to a blank cell.

Doug Jenkins
Interactive Design Services
 
Doug,

Good idea, which I will explore. (At the risk of exposing my ignorance, I have to admit I had never heard of picture links. Luckily the guru-issimo has something about them: see
Your first suggestion, using conditional formatting, could be used on the example SteveGregory gives. However it cannot be extended to the more general (and, in my cases at least, more common)
=IF(K18=1,"One formatted string","Another formatted string")
 
You should take a look at ExcelCalcs. I've used it for quit a while.
[link ]
btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Clyde's profile on LinkedIn
[/url]
 
The conditional formatting worked perfectly once I figured out how to use it. Thanks everyone.

I may try the picture link idea for some more complex formatting in the future.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor