+ Reply to Thread
Results 1 to 8 of 8

problem with formula

  1. #1
    Registered User
    Join Date
    03-10-2005
    Posts
    3

    Arrow problem with formula

    I'm having trouble writing a formula.

    I have 3 cells.

    In cell 3 I only want to excute the formula if the value in cell 1 is > 0

    The formula I want to execute in cell 3 is : =(C2-C1)-50

    I hope someone can help me out.

    Thanks a lot in advance !

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    =if(c1>0,(C2-C1)-50,"")


    - Mangesh

  3. #3
    Forum Contributor
    Join Date
    08-23-2004
    Posts
    210
    Try in C3: IF(C1>0,C2-C1-50,0)
    If 4 is put in C1, -54 appears in C3

  4. #4
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    cycling-rod, if c2=60 and c1=10, then your formula would give 0, whereas if c1=-10, then also your formula would give 0. Hence, the user does not know whether the 0 is a result of using the formula or escaping through the if condition.

    - Mangesh

  5. #5
    Forum Contributor
    Join Date
    08-23-2004
    Posts
    210

    Red face

    mangesh_yadav, I can't argue with that!

  6. #6
    Registered User
    Join Date
    03-10-2005
    Posts
    3
    This is the formula I thought I had to use but when I try to use it in Excel2000 then I get an error message stating there's an error in my formula.

  7. #7
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    This is a basic formula in excel and it should work in any version of excel, even those before 2000. Maybe if you post your actual formula which is giving the error, we could help.

    - Mangesh

  8. #8
    Registered User
    Join Date
    03-10-2005
    Posts
    3
    I found my mistake and the formula is working fine now.

    Thanks for all the help !

+ 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