Hi Guys.
I’m trying to insert a symbol into a cell depending on whether another cell contains a positive or negative number.
I.e. a ↑ for a positive number ↓ for a negative number & ↔ for a zero.
Any help is much appreciated.
Thanks.
Lloydee.
Hi Guys.
I’m trying to insert a symbol into a cell depending on whether another cell contains a positive or negative number.
I.e. a ↑ for a positive number ↓ for a negative number & ↔ for a zero.
Any help is much appreciated.
Thanks.
Lloydee.
As a formula
=IF(A1<0,"↓",IF(A1>0,"↑","↔"))
Please Read Forum Rules Before Posting
Wrap VBA code by selecting the code and clicking the # icon or Read This
How To Cross Post politely
Top Excel links for beginners to Experts
If you are pleased with a member's answer then use the Scales icon to rate it
If my reply has assisted or failed to assist you I welcome your Feedback.
Here's one way, assuming the cell with the number is A1 use this formula in another cell
=CHAR(CHOOSE(SIGN(A1)+2,175,171,173))
then use Format > Cell > Font and change to "Symbol"
From your post, you want to use these symbols to flag delta values, right?
Try thisPlease Login or Register to view this content.
1) Put those 3 characters in a cell, in this order:
↓↔↑
2) Now build this kind of formula around them:
=CHOOSE(SIGN(A1)+2,"↓","↔","↑")
If A1 is positive, it returns: ↑
If A1 is negative, it returns: ↓
If A1 is zero, it returns: ↔
Is that something you can work with?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks