using a symbol preceding a number to = 1/2 the number value

Joe1017

New Member
Joined
Mar 14, 2016
Messages
3
Is there a way to use a symbol < in excel preceding a number to equal half of that number's value?
Example: <1+<2=1.5
.5+1=1.5
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Sure, with this UDF:

Code:
Function EvalAsHalf(r As String)
EvalAsHalf = Evaluate(Replace(r, "<", ".5*"))
End Function

<b>Sheet1</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:64px;" /><col style="width:64px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td ><1+<2</td><td style="text-align:right; ">1.5</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b>Spreadsheet Formulas</b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >B1</td><td >=EvalAsHalf(A1)</td></tr></table></td></tr></table> <br /><br />
 
Upvote 0
I NEED A FORMULA THAT WILL RECOGNIZE THE < SYMBOL HERE IS A PICTURE. file:///C:/Users/Joe/Downloads/Screenshot_20160314-190955.webp
 
Upvote 0
I NEED A FORMULA THAT WILL RECOGNIZE THE < SYMBOL HERE IS A PICTURE. file:///C:/Users/Joe/Downloads/Screenshot_20160314-190955.webp

Hi,

That is a link to YOUR computer hard drive, unless you also post your street address, no one will be able to see it. You need to upload to a file server.

If the cell in question contains only one value, then:


Excel 2010
AB
1<25681284
Sheet1
Cell Formulas
RangeFormula
B1=IF(LEFT(A1,1)="<",RIGHT(A1,LEN(A1)-1)/2,"")
 
Upvote 0
=SUM(IF(LEFT(D2:D29)="<",MID(D2:D29,2,255)*0.5,D2:D29))

Confirm with CTRL-SHIFT-ENTER rather than just Enter
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top