+ Reply to Thread
Results 1 to 4 of 4

Insert a symbol

  1. #1
    Registered User
    Join Date
    10-29-2006
    Location
    Colchester, England
    Posts
    5

    Insert a symbol

    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.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    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.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    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"

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Insert a symbol

    From your post, you want to use these symbols to flag delta values, right?
    Please Login or Register  to view this content.
    Try this

    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?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1