+ Reply to Thread
Results 1 to 9 of 9

If formula to round down

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    Adealide, Australia
    MS-Off Ver
    Excel 2010
    Posts
    30

    If formula to round down

    I am using this formula in excel 2010, "=IF(ISBLANK(P7),"",IF(P7<0,Q7="0",IF(H7>0,H7-P7)/0.25),IF(I7>P7-I7)/0.25)))" which is not being accepted and displays a message "too many arguments for this function" with only the last section 0.25 highlighted.
    Values only are required to be entered in either H7 or I7 but not both. P7 is the end result of entry from either H7 or I7 with Q7 providing a breakdown of P7 result, the reason for /.025.

    If I enter the formulas individually into Q7, "=IF(ISBLANK(P7),"",IF(P7<0,Q7="0",IF(H7>0,H7-P7)/0.25))" the correct result is displayed when a value is entered into H7 & when reversed "=IF(ISBLANK(P7),"",IF(I7>0,P7-I7)/0.25))" with an entry in I7 a correct answer is given as it should, though not with the combined formula as when I join the two I cannot get it to work.
    I have tried ending with; ,""))) & removing P7>0, & I7>0, also tried SUM in place of IF also without success.
    What have I done incorrectly?
    Last edited by 7Black; 03-03-2013 at 07:08 PM. Reason: Modified title

  2. #2
    Registered User
    Join Date
    10-27-2012
    Location
    London
    MS-Off Ver
    Excel 2007-2010
    Posts
    59

    If Fomula Help

    =IF(ISBLANK(P7),"",IF(P7<0,Q7="0",IF(H7>0,(H7-P7)/0.25,IF(I7>0,(P7-I7)/0.25,0))))

    You were missing a few , and ) and your final if had no true or false statements.

    I've had to change it quite a bit, please check it does what you require!
    Last edited by Break_Point; 03-02-2013 at 11:11 AM. Reason: spelling

  3. #3
    Valued Forum Contributor Dunc3142's Avatar
    Join Date
    09-05-2007
    Location
    Franklin OH
    MS-Off Ver
    2000 and 2007 and 2010 @ Home & Teach 2010
    Posts
    351

    Re: Formula help

    =IF(ISBLANK(P7),"",IF(P7<0,Q7="0",IF(H7>0,H7-P7)/0.25),IF(I7>P7-I7)/0.25)))

    It is hard to know what you are trying to do, but if the 2nd if statement just after IF(P7<0, You can not assing a value to a cell, the Q7="0" is the problem.
    If you post am example, it would help.
    Yes it will. we just have to figure out how...
    If I have helped you, PLEASE click the * and add to my Rep.
    Also, if the problem is SOLVED please mark it as so.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Formula help

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    HTH
    Regards, Jeff

  5. #5
    Registered User
    Join Date
    02-20-2013
    Location
    Adealide, Australia
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Formula help

    I solved it:

    =IF(ISBLANK(C4),"",IF(A4>0,(A4-C4)/0.25,IF(B4>0,((C4-B4)/0.25),"")))

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula help

    Pls Don't cross post WITHOUT to provide a link for this.

    http://www.ozgrid.com/forum/showthread.php?t=175708

    And if you like, pls read here why you must not do it!

    http://www.excelguru.ca/content.php?...-cross-posters
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Formula help

    7Black,

    For the benefit of other users looking for a similar solution, it will be good if you edit the thread title.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  8. #8
    Registered User
    Join Date
    02-20-2013
    Location
    Adealide, Australia
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Formula help

    arulu1201. done I trust the title is suitable?

  9. #9
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: If formula to round down

    Sure, thank you for editing the title.

+ 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