• Excel formula (MS office 2007)

    Author
    Topic
    #455500

    Any help on the following formula is appreciated. I want the formula to produce the result as written except with a $1.00 minimum.
    =IF((F5*F1)+F5,ROUNDUP((F5*F1)+F5,1)-0.01,0)

    Viewing 1 reply thread
    Author
    Replies
    • #1134321

      Hi Bill,

      You could simply add a MAX function:
      =MAX(1,IF((F5*F1)+F5,ROUNDUP((F5*F1)+F5,1)-0.01,0))

      Cheers,
      Paul Edstein
      [Fmr MS MVP - Word]

      • #1134350

        Hi Paul and mikerickson,

        Thanks for you replys.

        I failed to explain with any clarity what I’m trying to do. Sorry!,
        I want to put a formula in cell F6 that would return the mark up in cell F1, but never under a $1.00 minimum. If the GP got under $1.00 then the formula would return the $1.00 minimum.

        Hope this makes sense. grin

        Oops! the file.

        • #1134366

          This? scratch

          =IF((F5*F1)+F5,MAX(ROUNDUP((F5*F1)+F5,1)-0.01,1),0)

    • #1134343

      Combining MAX with the logic of the IF would give

      =MAX(1, ROUNDUP((F5*F1)+F5,1)-0.01)

    Viewing 1 reply thread
    Reply To: Excel formula (MS office 2007)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: