Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Show formulas result + text directly

I'd like to show the result of a formula in a cell and then directly tack on
some standard text.

I want to show a cell that divides a cost by a unit to find a unit cost,
then (in the same cell as the unit cost), add " /unit" or something similar.

Is this possible without using a bunch of extra cells?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,290
Default Show formulas result + text directly


You can just add the text to the end of the formula, but then the
cell value becomes text...
=A1/3 &" units"
-or-
You can use the "N" function and the text will appear only in the
formula bar, however the cell value remains numeric...
=A1/3 &N("the unit of measure is units")
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




"veggies27"
wrote in message
I'd like to show the result of a formula in a cell and then directly tack on
some standard text.

I want to show a cell that divides a cost by a unit to find a unit cost,
then (in the same cell as the unit cost), add " /unit" or something similar.

Is this possible without using a bunch of extra cells?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Show formulas result + text directly

Try it like this:

=A1/B1&" /unit"

Depending on what the values of A1 and B1 are you may want to round the
result. for example:

A1 = 10
B1 = 3

=A1/B1&" /unit"

Will result in: 3.33333333333333 /unit

So:

=ROUND(A1/B1,2)&" /unit"

Will result in: 3.33 /unit

You might also want to make sure there are values in A1 and/or B1:


=IF(COUNT(A1:B1)<2,"",ROUND(A1/B1,2)&" /unit")


--
Biff
Microsoft Excel MVP


"veggies27" wrote in message
...
I'd like to show the result of a formula in a cell and then directly tack
on
some standard text.

I want to show a cell that divides a cost by a unit to find a unit cost,
then (in the same cell as the unit cost), add " /unit" or something
similar.

Is this possible without using a bunch of extra cells?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Show formulas result + text directly

FormatCellsNumberCustom

0.00"/unit"


Gord Dibben MS Excel MVP

On Wed, 19 Mar 2008 17:56:34 -0700, veggies27
wrote:

I'd like to show the result of a formula in a cell and then directly tack on
some standard text.

I want to show a cell that divides a cost by a unit to find a unit cost,
then (in the same cell as the unit cost), add " /unit" or something similar.

Is this possible without using a bunch of extra cells?



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
Formulas - SUMIF but with a text not number result? Lindy Excel Discussion (Misc queries) 1 March 30th 07 05:30 AM
Formulas that show up as text smaruzzi Excel Discussion (Misc queries) 1 January 15th 07 08:26 PM
Formulas never show result??? steph44haf Excel Discussion (Misc queries) 1 December 12th 06 08:45 PM
Advanced formula - Return result & Show Cell Reference of result Irv Excel Worksheet Functions 7 May 6th 06 03:36 AM
show text after formulas Shirley Excel Discussion (Misc queries) 3 June 30th 05 09:19 PM


All times are GMT +1. The time now is 11:05 PM.

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

About Us

"It's about Microsoft Excel"