+ Reply to Thread
Results 1 to 16 of 16

int calculation formula error

  1. #1
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    int calculation formula error

    Hi
    I am trying to claculate the new rent in row g15,. the following are the name ranger
    a DatesFT,c DEbitFT,j timeFT. The formula i used results in 0 amount where as it should be 2121 or the value as on the c column
    times the % increase. ie if c4 show 2240 then the amount shoud be 2240*5%. if possible the new date in g16 shoud show 2024 or the date the
    increase is due
    tks
    shamsu
    Attached Files Attached Files

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

    Re: int calculation formula error

    This is either confusing... or a mess... or both.

    G12 is a 2021 date. You want to move that forward by a year, to a date that does not exist in column A, and which is also in the past...

    Why do you have FUTURE dates in column A?

    The 2024 date is 3 years after the date in G12... Why 3?
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: int calculation formula error

    Hi Glen
    Sorry the date should have been dec 22. but as the date increase by 12 month each year the amount also will change .what i mean is that when 1 dec 23 is shown in a4 then the new rent in g15 should show the value using c4 as the amount and 5%. the g16 should show the next new date of increase. as the a column gets filled with dates such as 1dec 24 followedd by1 dec 25 then the new rent should be calculated on 1dec24 times5% and the new date 1 dec 25 shown in the date column. I hope iam clear. basically this to alert me when the next increase and amount is due for thiis account

  4. #4
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: int calculation formula error

    Sorry the future date show dates that will occur in the future

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

    Re: int calculation formula error

    Can you upload a sheet that is correct, please?

  6. #6
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: int calculation formula error

    Hi
    Attached the file requested
    Hope u can help me and the example given is clear Pls bear with me tks
    Shamsu
    Attached Files Attached Files

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

    Re: int calculation formula error

    To be honest, I still don't fully get it... but I am able to make a reasonable guess!

    =LOOKUP(10^10,C2:C18/(A2:A18=EDATE(G12,G13))*(1+G14))
    Attached Files Attached Files

  8. #8
    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,176

    Re: int calculation formula error

    Why not use a simple compound interest calculation

    =$G$11*(1+$G$14)^$K2

    where k2 is number of year i.e, 1,2,3
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  9. #9
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: int calculation formula error

    hi John
    Tks for ur input but that is the formula i am using at the moment. I wanted to avoid using this format as there are similar 10
    sheetsand wanted something compact
    shamsu

  10. #10
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: int calculation formula error

    Hi Glen
    The amount shown for dec 23 is correctly shown as 2277 but when dec 24 is input g 15 does not change to 2338. and as the year changer g 15 should reflect this change. sample file is attached. If it is difficult to achive this I will use the older format I was using erlier
    Tks for your patience
    Shamsu
    Attached Files Attached Files

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

    Re: int calculation formula error

    It has to pick up the YEAR from somewhere. I used G12. Change it to 1/12/2023 and the value in G15 updates correctly. If It's not coming from G12, where can it come from?

  12. #12
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: int calculation formula error

    Hi Glen
    in g 12 is it possible to extract the max date from column A show it in g12(using MAX)
    and use that date for the calculation.
    tks
    Shamsu

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

    Re: int calculation formula error

    Yes... and no.

    The problem is that you have not told me WHAT the date in column A actually IS and what the codes in column B MEAN.


    Currently, the formula is returning the value from C that corresponds to the "date in G12 plus 1 year" in column A. In the sheet that you last posted, there is already a date of 1/1/24 in column A. It is the maximum.

    IF I change the value in G12 to be the maximum in column A... 1/1/24, =MAX(A2:A18) it looks for a date 1 year later, i.e. 1/1/25 and does not find it. So that approach FAILS. Is there another way of telling WHICH value in column A corresponds to the NEW rate for the CURRENT year?
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: int calculation formula error

    Hi Glen
    Can u see the attached sheet and see if the formula is correct. g 5 contanins the current date if it will hlep
    Shamsu
    Attached Files Attached Files

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

    Re: int calculation formula error

    You seem to have gone back to an old sheet. Pleasde update the one that I last posted.

    What on earth is
    =G15*(1+G14)^G1312 this bit in red supposed to be doing???

  16. #16
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: int calculation formula error

    Hi Glen
    I do not know where the 1312 came from . I attach ur amended sheet.
    shamsu
    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. Replies: 1
    Last Post: 10-19-2021, 07:53 PM
  2. Formula, or iterative calculation error?
    By NikkuSan7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-28-2020, 11:01 AM
  3. [SOLVED] Age calculation formula error
    By nowfalapm in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-18-2018, 10:12 AM
  4. error with formula for time difference calculation
    By AvidanR in forum Excel General
    Replies: 5
    Last Post: 07-19-2017, 12:21 AM
  5. Value Error not allowing calculation of formula
    By hbroussard in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-07-2013, 11:33 AM
  6. Calculation or Formula error HELP...
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-19-2012, 03:10 AM
  7. Excel Calculation Error for formula to sum
    By longer in forum Excel General
    Replies: 3
    Last Post: 04-29-2005, 11:06 AM

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