+ Reply to Thread
Results 1 to 5 of 5

Interpret and up or down arrow

  1. #1
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Interpret and up or down arrow

    In the attached example I am pulling some data from various places. As you can see in Col C, there is an up or down arrow with a number after it. Col F is what i would like it to just (in this case) just the number. IF there was a DOWN arrow it would be negative.

    Could someone help me with this please.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,802

    Re: Interpret and up or down arrow

    1) Select C1, F2 (edit mode), select just the up arrow character, copy to clipboard, paste in a convenient cell, so that you have a cell with that character in it.
    2) Now a simple IF() function can compare the first character with that cell to see if it is up or down, then use the RIGHT() function to extract the numeric part of the text.
    =IF(LEFT(C1,1)=absolute reference to cell with up arrow,1,-1)*RIGHT(C1,LEN(C1)-1)

    Note that I am assuming up and down arrows are the only two options for the first character of column C. If there are other possibilities, this will need to be adapted to account for other possibilities.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Re: Interpret and up or down arrow

    This looks great. Let me toss in the possibility of one more option "unch" its more than once character so how would you do a work around on this?

    Thank you.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,802

    Re: Interpret and up or down arrow

    What does "unch" mean? I assume it means "unchanged" but does unchanged mean exactly 0? If it means exactly see, I might use something like =IF(LEFT(C3,1)="u",0,previous formula)

  5. #5
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Re: Interpret and up or down arrow

    Correct that's exactly what it means. thank you for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 01-13-2019, 01:24 PM
  2. How Do I Interpret this V-lookup?
    By omaral in forum Excel General
    Replies: 5
    Last Post: 04-22-2018, 03:58 AM
  3. [SOLVED] How to push painted cell using the arrow keys or shape-arrow in Excel - VBA-Offset?
    By Dumy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-04-2015, 05:05 AM
  4. How Do You Interpret this Formula?
    By omaral in forum Excel General
    Replies: 4
    Last Post: 12-11-2014, 08:37 AM
  5. [SOLVED] Interpret code
    By FIRSTROUNDKO via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2006, 02:25 PM
  6. [SOLVED] How to change double arrow to single arrow (older version)
    By Ellen Hall in forum Excel General
    Replies: 2
    Last Post: 10-30-2005, 02:05 AM
  7. Why does Excel interpret 2/29 as Feb 1st?
    By Jo in forum Excel General
    Replies: 6
    Last Post: 02-26-2005, 03:06 PM

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