+ Reply to Thread
Results 1 to 2 of 2

Logical problem

Hybrid View

  1. #1
    Registered User
    Join Date
    04-25-2007
    Posts
    24

    Logical problem

    I have a worksheet where the col D is either the word "buy" or the word "sell"
    I have written the formula:

    =if(d4=buy,1,-1)

    The answer comes up NAME when I expected either a 1 or a -1

    What am I doing wrong


    Thanks

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Logical problem

    JXBlack,

    Try:
    =IF(D4="buy",1,-1)
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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