Trying to pull greater than, less than, equals to from text.

sin2190

New Member
Joined
Aug 17, 2016
Messages
7
Good morning fellow excel users,

Quick question, is it possible to pull the "<" symbol from a cell for a formula.

For example lets say I have this formula.
A1=1
In cell A2 =IF(A1=1,">","<")
A3=2
A4= =IF(A1&A2&A3,"greater than","less than") <---- Trying to fix this to read if A1>A3, greater than else less than.

Of course it more complex than this but I am trying to use an if statement to determine if I need greater than or less than symbol than to use that information to compare it elsewhere.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Maybe:
VBA Code:
Range("A4").Formula = "=If(" & Range("A1").Address & Range("A2").Value & Range("A3").Address & ",""Greater than"",""Less than"")"
 
Upvote 0

Forum statistics

Threads
1,215,052
Messages
6,122,878
Members
449,097
Latest member
dbomb1414

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