need help with coding ( easy )

danmen

Board Regular
Joined
Jan 15, 2009
Messages
217
I have a range A1:A10 and would like to format as

" ≥ "0.00;" ≥ "-0.00;" ≥ "0.00

using vba but copy and pasting the ≥ sign inside the VB editor window doesn't work, I believe I need special type unicode characters ( ? )

I also have another range with less than or equal to I need help with ie:

" ≤ "0.00;" ≤ "-0.00;" ≤ "0.00

thx. for any help
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
the other parts of the spreadsheet have the ≥ and ≤ notations so I would prefer sticking to the same, it's just the syntax of the line I'm missing, I searched the net a little and tried out a couple of things but nothing's worked so far =(
 
Upvote 0
the other parts of the spreadsheet have the ≥ and ≤ notations so I would prefer sticking to the same, it's just the syntax of the line I'm missing, I searched the net a little and tried out a couple of things but nothing's worked so far =(

anyone? =(
 
Upvote 0
I would personally would love to see examples of you using that non-standard character in working formulas. It would be a completely new feature, one I've tried in the past to no success and simply stayed with conventions...which is of course an option for you as well.

Care to use Excel Jeanie to post up some visible examples of the data you're referring to, I would be very interested to see it.
 
Upvote 0
JB
Maybe the OP isn't using Excel.

Danmen
What version of Excel are you using.

Regards
Michael M
 
Upvote 0
In VBA you can set the required number format of selected cells as well:

Rich (BB code):
<font face=Courier New>
  Dim fmt As String, s As String
  s = """ " & ChrW(8805) & " """
  fmt = s & "0.00;" & s & "-0.00;" & s & "0.00"
  Selection.NumberFormat = fmt</FONT>

Use ChrW(8804) for LE symbol
 
Last edited:
Upvote 0
the unicode(2265) is the greater than or equal to symbol
unicode(2264) is the less than or equal to symbol


use insert symbols to insert the ≤ into a cell
copy the ≤

select the cells you want to format
goto format cells custom and paste the ≤ where ever you want it
At least it works in 2007 I do not know about other versions
 
Upvote 0
Tested on 2003. Works fine as long as you put a 0 where you want the numbers to show up. (ex: ≤ 0)
 
Upvote 0

Forum statistics

Threads
1,225,149
Messages
6,183,177
Members
453,151
Latest member
Lizamaison

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