+ Reply to Thread
Results 1 to 6 of 6

Formula for Greater Than Statements

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    3

    Formula for Greater Than Statements

    I have a column that I need to figure a formula for and need HELP.... I'll try to explain...

    Column A has a value of 62; in Column B, I want it to calculate the following: If Column A is greater than 60 take the remainder amount (which would be 2) and add 4.5 then multiply that number by 12.

    I'm sure this is a pretty easy formula, i just don't know how to write it so it just uses the amount greater than 60???

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Formula for Greater Than Statements

    MOD(A1,60)

    will give you the remainder after dividing by 60, but you don't say what you want to happen if column A is not greater than 60.

    Pete

  3. #3
    Registered User
    Join Date
    09-25-2012
    Location
    Pune, India
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Formula for Greater Than Statements

    Try this
    =IF(A1>60,(MOD(A1,60)+4.5)*12,"")

  4. #4
    Registered User
    Join Date
    10-11-2012
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Formula for Greater Than Statements

    Genius!!! It works; Thanks for your help!!!

  5. #5
    Registered User
    Join Date
    10-11-2012
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Formula for Greater Than Statements

    Just out of curiousity, what is the MOD function doing in the equation?

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Formula for Greater Than Statements

    See post #2

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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