Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to divide a number with "less than" sign? ie: <1/1000 = <0.001

Need to due a number of conversions from ug -- mg in a column. Many of the
numbers that I need to convert have a "less than" sign... ie <1 should
convert to <0.001
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default How to divide a number with "less than" sign? ie: <1/1000 = <0.001

If that's the only change, you could select the range to fix:

Edit|replace
what: <
with: <0.00
replace all

or
what: <1
with: <0.001
replace all

Or a bunch of combinations like this.

justinbeau wrote:

Need to due a number of conversions from ug -- mg in a column. Many of the
numbers that I need to convert have a "less than" sign... ie <1 should
convert to <0.001


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 857
Default How to divide a number with "less than" sign? ie: <1/1000 = <0.001

Hi,

A number with a < sign is not a number in Excel, it is text. and if you are
trying to convert it as in your title the result will not be a number either.
To do what you subject line asks probably would require a VBA macro.

Here is a macro you could run against a select range of cell to convert them
(only if the leading character is <.

Sub ConvertIt()
Dim cell As Range
Dim x As Integer
Dim First As Double
Dim Second As Double
For Each cell In Selection
If Left(cell, 1) = "<" Then
x = InStr(1, cell, "/")
First = Mid(cell, 2, 1)
Second = Mid(cell, x + 1, 10)
cell = "<" & First / Second
End If
Next cell
End Sub

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"justinbeau" wrote:

Need to due a number of conversions from ug -- mg in a column. Many of the
numbers that I need to convert have a "less than" sign... ie <1 should
convert to <0.001

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How to divide a number with "less than" sign? ie: <1/1000 = <0.001

=IF(LEFT(A2)="<","<"&RIGHT(A2,LEN(A2)-1)/1000,A2/1000)
--
David Biddulph

"justinbeau" wrote in message
...
Need to due a number of conversions from ug -- mg in a column. Many of
the
numbers that I need to convert have a "less than" sign... ie <1 should
convert to <0.001



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
Difficulty "countif"-ing number of "L1" or "L2" on an autofiltered pmdoherty Excel Worksheet Functions 4 February 6th 09 11:23 AM
Range or Selection Divided by "1000" Abdul Shakeel Excel Discussion (Misc queries) 4 October 31st 08 02:38 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
How to "sign" macro with "digital certificate"? Clueless in Seattle New Users to Excel 5 March 23rd 08 02:48 AM
How do display a "+" or "-" sign when hiding columns? DTI Tustin Setting up and Configuration of Excel 1 July 13th 06 01:21 PM


All times are GMT +1. The time now is 04:02 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"