![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 133
|
I have a spreadsheet whereby an answer is produced and the next cell has to specify the units. These units have to change according to the answer in the first cell. I have used IF statements - this works fine but the units are all normally formated e.g. I need to display metre cubed and metres squared. So to re-cap is there a way you format part of a formula - =IF(A1=2,"m3","m2") only the 3 and the 2 need to be superscripted. Any ideas ?
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Cape Town,South Africa
Posts: 234
|
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
If you feel like messing about with VBA for a more automated way of creating subscripts and superscripts have a look at this thread here, (the last piece of code I supplied works best):
http://www.mrexcel.com/board/viewtop...rum=2&start=10 |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Posts: 133
|
Cheers.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|