+ Reply to Thread
Results 1 to 8 of 8

Where do I go wrong?

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    Bulgaria
    MS-Off Ver
    2013
    Posts
    44

    Where do I go wrong?

    I've done this simple formula many times. It worked before. I've changed MS Office form 2010 to 2013 and now it won't work.
    I'm attaching an exemple.

    The formula: D2=IF(AND(D1<=0);(D1*0));IF(AND(D1>0);(D1*25%))

    If I insert only D2=IF(AND(D1<=0);(D1*0)) it works. It makes D2=0
    If I insert only D2=IF(AND(D1>0);(D1*25%)) it works. It makes it the right amount.

    Where the **** I go wrong? Damn I'm mad with myself!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Where do I go wrong?

    In your workbook you have a note relating to Conditional Formatting but you post above relates to a formula in D2 which does not correlate with your file.

    Confused

    Perhaps

    =IF(D1<=0,0,D1*25%)
    Last edited by JohnTopley; 02-03-2016 at 07:19 AM.

  3. #3
    Registered User
    Join Date
    06-25-2014
    Location
    Bulgaria
    MS-Off Ver
    2013
    Posts
    44

    Re: Where do I go wrong?

    sorry. wrong file.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Where do I go wrong?

    Not sure why you have the AND in your formula

    This should suffice

    =IF(D1<=0,0,D1*25%)

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,466

    Re: Where do I go wrong?

    You don't need the ANDs. For example:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  6. #6
    Registered User
    Join Date
    06-25-2014
    Location
    Bulgaria
    MS-Off Ver
    2013
    Posts
    44

    Re: Where do I go wrong?

    =IF(D1<=0; 0; D1*25%)

    That worked. Thank you very much.
    Last edited by momchil.vladov; 02-03-2016 at 07:45 AM.

  7. #7
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: Where do I go wrong?

    Hi momchil.vladov,
    You dont need AND, nor IF:

    =MAX(0,D1)*25%

    Blessing

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,466

    Re: Where do I go wrong?

    See the attached:
    Attached Files Attached Files

+ 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. Wrong coding or RANDBETWEEN is wrong?
    By zbor in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-31-2013, 10:01 AM
  2. Don't know what's wrong
    By eastray76 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2008, 03:21 PM
  3. [SOLVED] Where am I going wrong?
    By Sarah_Lecturer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2006, 12:20 PM
  4. IF gone wrong
    By Turnipboy in forum Excel General
    Replies: 1
    Last Post: 11-17-2005, 07:25 AM
  5. What am I doing wrong?
    By sgl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2005, 08:05 AM
  6. What's wrong with this?
    By Damien McBain in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-07-2005, 10:05 AM
  7. What am I doing wrong....!!!
    By squoggy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-02-2005, 01:05 PM
  8. [SOLVED] What am I doing wrong?
    By Jeff in forum Excel General
    Replies: 6
    Last Post: 03-05-2005, 11:07 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