×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Using subsripts inside a formula

Using subsripts inside a formula

Using subsripts inside a formula

(OP)
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 =")

RE: Using subsripts inside a formula

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.)

RE: Using subsripts inside a formula

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
http://newtonexcelbach.wordpress.com/
 

RE: Using subsripts inside a formula

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
http://newtonexcelbach.wordpress.com/
 

RE: Using subsripts inside a formula

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 http://j-walk.com/ss/excel/usertips/tip039.htm)

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")
  

RE: Using subsripts inside a formula

You should take a look at ExcelCalcs.  I've used it for quit a while.  www.excelcalcs.com

View Clyde's profile on LinkedIn

RE: Using subsripts inside a formula

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources