+ Reply to Thread
Results 1 to 9 of 9

IF formula to calculate amount in different columns

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    Ottawa,Canada
    MS-Off Ver
    Excel 2016
    Posts
    37

    IF formula to calculate amount in different columns

    Good morning,

    I have the following spreadsheet that calculates a percentage of the amount in one column based on the minimum of two amounts

    My formula in column G calculates the amount from column B by percentage in column F, but if looks in column C and it takes the minimum amount of both columns. What I would like is to add that if column I = 0 to calculate the amount in column B and if not = 0 calculate the amount from column I. I still want to keep the MIN of either column C or G. Let me know if the attachment is not available.

    Thanks
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-26-2020
    Location
    US
    MS-Off Ver
    2010
    Posts
    157

    Re: IF formula to calculate amount in different columns

    Try in B2:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-24-2012
    Location
    Ottawa,Canada
    MS-Off Ver
    Excel 2016
    Posts
    37

    Re: IF formula to calculate amount in different columns

    Thanks but this is not want I wanted to do the above formula enters the amount from column I, the formula I have is what I want, but I would like to add an IF statement and not sure where to add it in the formula.

    If you look in the following attachment, row 3 and 4, the amount in column I is 0, therefore, I would like the MIN formula to calculate amount in column A
    If you look in row 2 and 5, there is an amount in column I, I would like the MIN formula to calculate amount in that column
    The salary increase in column G cannot go above the Jrate amount in column B, as this is the maximum allowable amount

    Thanks
    Attached Files Attached Files

  4. #4
    Banned User!
    Join Date
    02-26-2020
    Location
    US
    MS-Off Ver
    2010
    Posts
    157

    Re: IF formula to calculate amount in different columns

    Which column do you want the calculations? Are the values in the calculated column what you want to achieve?

  5. #5
    Banned User!
    Join Date
    02-26-2020
    Location
    US
    MS-Off Ver
    2010
    Posts
    157

    Re: IF formula to calculate amount in different columns

    It would be better if you show the input cells then what you want in the calculated cells with results please. I would leave the input cells with no fill and the calculated cells with a fill color.

    Thank you

  6. #6
    Banned User!
    Join Date
    02-26-2020
    Location
    US
    MS-Off Ver
    2010
    Posts
    157

    Re: IF formula to calculate amount in different columns

    I hope someone can understand what you are trying to do sorry that I could not.

  7. #7
    Registered User
    Join Date
    10-24-2012
    Location
    Ottawa,Canada
    MS-Off Ver
    Excel 2016
    Posts
    37

    Re: IF formula to calculate amount in different columns

    Thanks and ok I have attached a revised spreadsheet, the column highlighted in yellow is where I would like the input formula that adds an IF statement to the current one. It is now calculating from amount in column A and multiply by percentage in column F, but cannot go over the maximum amount in column B after calculation. I would like to add the IF statement to look in column I and if it is 0 to calculate from column I and if not column A.

    When you look at the amount in row 5, the 4% indicated in column F after the calculation is much higher than the difference to maximum indicated in column C, therefore, inputs that amount instead of actual 4% increase to column A.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-24-2012
    Location
    Ottawa,Canada
    MS-Off Ver
    Excel 2016
    Posts
    37

    Re: IF formula to calculate amount in different columns

    A also added some explanations to the spreadsheet attached trying to detailed what I would like the formula to do.

    Thanks
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-24-2012
    Location
    Ottawa,Canada
    MS-Off Ver
    Excel 2016
    Posts
    37

    Re: IF formula to calculate amount in different columns

    Thank you, I managed to find it on my own and the formula that works is the following:

    =MIN(I2,ROUND(IF(AY2=0,G2*L2,AY2*L2)-2,-2))

+ 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. [SOLVED] Add formula to calculate amount of days
    By PKidney in forum Excel General
    Replies: 8
    Last Post: 06-26-2017, 02:14 PM
  2. formula to calculate principal amount
    By jspfeffer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-17-2017, 09:20 PM
  3. Formula to calculate Amount Paid and Amount Past Due
    By TinaAlldredge in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2016, 09:19 AM
  4. Formula to Calculate amount due
    By johnabbru in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-23-2015, 08:03 AM
  5. [SOLVED] Formula to Calculate commission over certain amount
    By rizmomin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2014, 02:36 PM
  6. Formula to calculate loan amount
    By MRoads in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-26-2012, 08:29 PM
  7. formula to calculate a benefit amount
    By pgruening in forum Excel General
    Replies: 6
    Last Post: 08-09-2005, 01:51 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