+ Reply to Thread
Results 1 to 3 of 3

IF -VE, Short, IF +VE, Long

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    United Kingdom
    MS-Off Ver
    365
    Posts
    93

    IF -VE, Short, IF +VE, Long

    Hi,

    In the below example, if cell A is a negative, I would like cell B to say "Short", if a positive number however, I would like it to say "Long"

    Thanks

    Cell A==> Cell B
    -55==> Short
    10==>Long
    -12==> Short

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: IF -VE, Short, IF +VE, Long

    if(a1<0,"short","long") but you have not said what happens to 0

  3. #3
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: IF -VE, Short, IF +VE, Long

    Hi there,

    Try entering the following formula in cell B1 and see if it does what you need:

    Please Login or Register  to view this content.
    Regards,

    Greg M

+ 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. Short \ Long position
    By idbeentaken in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-11-2019, 11:01 AM
  2. I want to short the long formula of age calculation
    By SANKARTUDU in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-05-2014, 09:12 AM
  3. short a long code with loop
    By Mamud in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-04-2014, 05:16 PM
  4. [SOLVED] Panel data Conversion-Short to long
    By tulasiram in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-18-2013, 11:36 AM
  5. help for short existing long coding in VBA
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-05-2013, 10:34 AM
  6. Long and short directory paths DOS macro required
    By lakey13 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2009, 02:02 PM
  7. [SOLVED] I can't save long file names, only short one, how can I do this?
    By short file names in forum Excel General
    Replies: 0
    Last Post: 01-03-2006, 01:15 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