Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Difficulty "countif"-ing number of "L1" or "L2" on an autofiltered | Excel Worksheet Functions | |||
Range or Selection Divided by "1000" | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
How to "sign" macro with "digital certificate"? | New Users to Excel | |||
How do display a "+" or "-" sign when hiding columns? | Setting up and Configuration of Excel |