+ Reply to Thread
Results 1 to 8 of 8

How is Excel Arriving at This No?

  1. #1
    Forum Contributor
    Join Date
    02-09-2009
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    380

    How is Excel Arriving at This No?

    Could anyone help me understand why Excel is arriving at -16? I'll try attaching workbook in the next post as it's not letting me attach it with this post.

    In cell C9 I was hoping to see 35, but I have no idea why it's returning -16?

    A6 = 6.515
    A9 = 4.800
    B8= 18

    Please Login or Register  to view this content.
    If results to True,
    Then I'd expect 6.515/4.80= 1.357
    Then I'd expect it to roundup = 2
    Then *18 = 136
    Then -1= 35

    I'm about to try array formulas but quite embarassed I can't understand basic precedence right.

  2. #2
    Forum Contributor
    Join Date
    02-09-2009
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    380

    Re: How is Excel Arriving at This No?

    No sorry, can't attach workbook, in 'Advanced' I get a little yellow box on clicking but can't load an uploading window.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How is Excel Arriving at This No?

    it's doing 2 - (1*18).

    try

    =IF(A6>A9, ROUNDUP(A6/A9,0)*B8-1,"")

    \See, for example,:

    http://itfeature.com/statistical-sof...rs-presendence
    Last edited by Glenn Kennedy; 01-26-2018 at 12:44 PM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How is Excel Arriving at This No?


    To attach an Excel file to your post,
    • desensitize data
    • remeber that your example should reflect structure and type of data
    • click Go Advanced,
    • scroll down until you see Manage Attachments,
    • click that and select Browse,
    • select your file and click Open,
    • click Upload and you will see your attachment below Upload Files from a website
    • click Close this window,
    • click Submit reply

    After that you should see attachment in your post

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: How is Excel Arriving at This No?

    =if(a6>a9, roundup(a6/a9,0) * b8 - 1)
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,418

    Re: How is Excel Arriving at This No?

    Basic order of operations (PEMDAS if that's how you learned it)
    First, perform functions in parentheses
    A6/A9 round up to next integer is 2
    Next, do multiplication/division from left to right, so 1*18=18
    Finally, addition/subtraction from left to right 2-18=-16.

    You should be able to see this process using the evaluate formula tool: https://support.office.com/en-us/art...6-a70aa409b8a7

    If you want 2*18-1, then you need to put the *18 immediately before/after the ROUNDUP() function 18*ROUNDUP(...)-1.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  7. #7
    Forum Contributor
    Join Date
    02-09-2009
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    380

    Re: How is Excel Arriving at This No?

    Thanks so much Glenn, I've been staring at it for over an hour trying all sorts of combinations over and over again.

  8. #8
    Forum Contributor
    Join Date
    02-09-2009
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    380

    Re: How is Excel Arriving at This No?

    Thank you all for your posts; most helpful. Yes mrShorty I've been watching many, many ExcelIsFun tutorials they are awesome! Made approx 50 pages of notes and was staring through my order of precedence but did not think of splitting to the right.
    Couldn't for the life of me figure it out though, so thank you all again for your input.

+ 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. Arriving at a percentage
    By bawlmer in forum Excel General
    Replies: 2
    Last Post: 10-30-2017, 04:47 PM
  2. Arriving Due Balance through fifo Kncok off Method
    By srinivasan1965 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-09-2016, 07:03 AM
  3. Replies: 0
    Last Post: 10-31-2013, 09:25 AM
  4. Lookup formula to pick up first arriving values
    By Excel Dumbo in forum Excel General
    Replies: 2
    Last Post: 12-12-2012, 11:51 PM
  5. [SOLVED] Collecting Data from one WB to another WB and then Final values arriving - Time & Pay
    By skhari in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 08-01-2012, 01:39 PM
  6. Sending HTML email via excel VBA - arriving as RTF email
    By Shuter1 in forum Outlook Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2012, 04:35 AM
  7. [SOLVED] .xls email attachments are arriving at the recipient as .dat file.
    By UK-Graham in forum Excel General
    Replies: 4
    Last Post: 02-11-2005, 03:06 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