+ Reply to Thread
Results 1 to 6 of 6

Nested calculations following a ROUND statement.

  1. #1
    Registered User
    Join Date
    09-10-2019
    Location
    Ottawa, Canada
    MS-Off Ver
    Office 2016 Excel
    Posts
    4

    Nested calculations following a ROUND statement.

    I'm new to this forum and this is my first post. I hope I picked the correct sub-forum. Please feel free to correct me if I am not doing this correctly.

    I recently received a sample Excel spreadsheet where prices are determined in 3 levels (Max, Mid and Min) where 2 of the prices are calculated based on a calculation derived from the 3rd value. At least I think this is the case since it appears that there are different formulas depending on which of the 3 prices is used as the starting point.

    Here is an example of a formula that puts the value 3.99 in cell D86. When I select that cell (D86), this is the formula I see:

    =IF(D86<2.99,D86,ROUND(D86*0.5,0)-0.03)

    Can anyone tell me what this means in English?

    Thanks,
    Altaire
    Last edited by Altaire; 09-10-2019 at 05:26 PM. Reason: Moderator requested a more specific Title

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: A formula i can't quite understand

    if D86 is less than 2.99, return D86, otherwise take D86, multiply it by 0.5 (in otherwords take half of it) then round that to the nearest whole number and finally subtract 0.03 from that number.
    you can see it if you take it apart in the cell, put 2 in D86 with just =IF(D86<2.99,D86,"") and it will return 2, if you put 3 in it it will return a blank.
    do the same with the round part without the -0.03 then with the -0.03.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    09-10-2019
    Location
    Ottawa, Canada
    MS-Off Ver
    Office 2016 Excel
    Posts
    4

    Re: A formula i can't quite understand

    Thanks, Sambo kid: I just tried it. How cool is that! I tried your suggestion and even checked a number of other cells. I now see what the person who built this spreadsheet is trying to accomplish. Now I just need to write the code to make this process work in a web app.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: A formula i can't quite understand

    Withdrawn by FR.
    Last edited by FlameRetired; 09-10-2019 at 05:02 PM.
    Dave

  5. #5
    Registered User
    Join Date
    09-10-2019
    Location
    Ottawa, Canada
    MS-Off Ver
    Office 2016 Excel
    Posts
    4

    Re: A formula i can't quite understand

    Thanks, Dave.

    I appreciate your help. Also by changing it for me, you provide a good example of how it should have been written.
    I will go through the steps you noted so I know how to make changes AFTER I have posted something. Hopefully, that won't be necessary.

    Altaire

  6. #6
    Registered User
    Join Date
    09-10-2019
    Location
    Ottawa, Canada
    MS-Off Ver
    Office 2016 Excel
    Posts
    4

    Re: Nested calculations following a ROUND statement.

    I have updated the title at the request of the moderator although I'm still not sure if this is specific enough for a title. Any comments or suggestions would be appreciated.

+ 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. Can someone help me understand this formula
    By zookeepertx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-04-2014, 09:28 PM
  2. how to understand the UDF used in a formula
    By zacr in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-29-2014, 01:37 PM
  3. [SOLVED] Help me understand IF And formula
    By ange88 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-01-2012, 03:53 AM
  4. Trying To Understand A Formula...
    By Langadune in forum Excel General
    Replies: 7
    Last Post: 06-05-2012, 06:19 PM
  5. Help to understand the following formula
    By RagonichaFulva in forum Excel General
    Replies: 4
    Last Post: 02-22-2012, 04:31 PM
  6. Don't understand formula
    By jellybeannn in forum Excel General
    Replies: 3
    Last Post: 06-01-2010, 06:08 AM
  7. Replies: 1
    Last Post: 09-18-2007, 02: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