+ Reply to Thread
Results 1 to 12 of 12

How to use functions properly for a certain problem?

  1. #1
    Registered User
    Join Date
    05-14-2016
    Location
    Pakistan
    MS-Off Ver
    365
    Posts
    19

    Smile How to use functions properly for a certain problem?

    Hi, My name is Muhammad and I am working in Pakistan Petroleum. I am making a policy model for my seniors. During the work, I encountered a problem with the formula making in excel. I have given a table below. what I need to do is build a model for the bonus amount that has to be taken from first table of Cumulative Production and Amount Columns. The model says that upon reaching first 90 days of start of commercial production, the one time bonus to be given is 400000. and then upon reaching a certain level of production like 60 MMBOE, 120 MMBOE ,160 MMBOE and 200 MMBOE, we need to give corresponding one time amount of bonus in form of 1600000, 3000000, 9000000,and 12000000. However this amount will not be paid annually but just one time. If function gives the amount but what it does is that it puts the bonus in the next years as well which is not required. Like if we reach 60 MMBOE in 2019 and 80 MMBOE in 2020, then the amount should reflect only in the cell corresponding to 2019 not in 2020 where it should be zero. and then upon reaching or crossing 120 MMBOE next amount should show and so on. If anyone can help me in this regard as to what kind of formula can be applied to do it what kind macros can be written to do it, it will be very helpful for me and I will be very thankful. Or if it can be done only manually, then also please do tell. thank you
    I have also attached a file .

    Cumulative Production Amount Cumulative MMBOE Year Bonus
    90 days 400,000 2017
    60 MMBOE 1,600,000 2018
    120 MMBOE 3,000,000 2019
    160 MMBOE 9,000,000 2020
    200 MMBOE 12,000,000 2021
    Attached Files Attached Files
    Last edited by alansidman; 05-14-2016 at 10:15 AM.

  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,209

    Re: How to use functions properly for a certain problem?

    Your file only contains a table and we need (yearly?) data/examples showing how the "model" is be applied

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to use functions properly for a certain problem?

    show in your file some manual result with given conditions.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    05-14-2016
    Location
    Pakistan
    MS-Off Ver
    365
    Posts
    19

    Re: How to use functions properly for a certain problem?

    Here this may help you understand the situation

    Thank you
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-14-2016
    Location
    Pakistan
    MS-Off Ver
    365
    Posts
    19

    Re: How to use functions properly for a certain problem?

    Sorry the file was not being attached
    Attached Files Attached Files

  6. #6
    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,209

    Re: How to use functions properly for a certain problem?

    To upload file Click "Go advanced" then scroll down to "Manage attachments"

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to use functions properly for a certain problem?

    change the vlookup table.

    after that:

    =if(MAX($M$4:$M4)=VLOOKUP(J5,$E$6:$F$10,2,1),0,VLOOKUP(J5,$E$6:$F$10,2,1))

    see the attached file.

  8. #8
    Registered User
    Join Date
    05-14-2016
    Location
    Pakistan
    MS-Off Ver
    365
    Posts
    19

    Re: How to use functions properly for a certain problem?

    Thank you very much John it was really helpful, the improvement that you showed to me in the model is close to perfect. In the model the first bonus is still not being captured when at the start of production ,we pay a bonus. It can be linked to somehow the first non 0 value that appears in the cumulative production column or the MIN Function, however it also doesnt have to copy in the cells for years after that as its a one time payment. I am trying that myself as well. If you can figure out something, it would be great, otherwise , this model is also sufficient.




    Again! thank you very much for your kind help.

    I will be posting some other problems as well in coming days.

  9. #9
    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,209

    Re: How to use functions properly for a certain problem?

    Thanks are due to Oeldere not myself.

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to use functions properly for a certain problem?

    Please Login or Register  to view this content.
    Thank you very much Oeldere it was really helpful

    Yes I noticed that, but also in your new example you don't show any date in your file, in which the 90 days can be counted.

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to use functions properly for a certain problem?

    please read the forumrules, especialy the ones about crossposting.

    http://www.mrexcel.com/forum/excel-q...ml#post4521895

  12. #12
    Registered User
    Join Date
    05-14-2016
    Location
    Pakistan
    MS-Off Ver
    365
    Posts
    19

    Re: How to use functions properly for a certain problem?

    Okey I have read the forumrules now and will stick to them. Once Again thank you very much for the assistance. I finally figured out what was wrong with my vlookup table and it is now perfect. I will post new threads when a problem arises.
    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. VBA If Then not evaluating properly: Problem with Format Date?
    By rafadavidc in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-29-2016, 10:24 AM
  2. Not sure how to word my problem properly
    By streamofmight in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-09-2015, 10:22 AM
  3. [SOLVED] Problem sorting information properly without doing 23 vlookups
    By kaplanj23 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2015, 10:27 AM
  4. [SOLVED] Functions/Formulas Not Working Properly.
    By jimlaurie in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-06-2014, 06:05 PM
  5. [SOLVED] =SUM functions not SUMing properly.
    By EcoMike in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 5
    Last Post: 02-21-2013, 11:56 AM
  6. [SOLVED] I have a problem to properly display the title of Value (Y) axis i
    By Oak in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-05-2006, 12:20 PM
  7. [SOLVED] Can't get CF to work properly, Active Cell problem?
    By Yogi_Bear_79 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-07-2005, 02:05 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