Unconfigured Ad Widget

Collapse

Excel Formula Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sfpcservice
    Senior Member
    • Jan 2009
    • 1879

    Excel Formula Help

    I'm trying to build a formula that will multiply a cell by 1.5 if the cell is a negative value and by 0.5 if the cell is positive. This is what I have:
    =if(OR(A41<0,A41>0),A41*0.5,A41*1.5)

    The results I get are only multiplied by the 0.5 though, it's like it never goes over to the 1.5 side no matter what the value is.

    What am I doing wrong?
    sigpic


    John 14:6
  • #2
    jimmykan
    Veteran Member
    • Jan 2008
    • 3082

    Just use nested IFs.

    =IF(A41<0,A41*1.5,IF(A41>0,A41*0.5,A41))

    The "0" case will take care of itself.
    Last edited by jimmykan; 03-17-2020, 6:08 PM.

    Comment

    • #3
      sfpcservice
      Senior Member
      • Jan 2009
      • 1879

      Originally posted by jimmykan
      Just use nested IFs.
      Can you help me? I thought that's what I did...
      sigpic


      John 14:6

      Comment

      • #4
        9Cal_OC
        Calguns Addict
        • Apr 2019
        • 6678

        Originally posted by jimmykan
        Just use nested IFs.

        =IF(A41<0,A41*1.5,IF(A41>0,A41*0.5,A41))

        The "0" case will take care of itself.
        This. The OR statement you have will always be true, hence only computing the true statement, and never the false.
        Freedom isn't free...

        sigpic

        iTrader

        Comment

        • #5
          sfpcservice
          Senior Member
          • Jan 2009
          • 1879

          Originally posted by jimmykan
          Just use nested IFs.

          =IF(A41<0,A41*1.5,IF(A41>0,A41*0.5,A41))

          The "0" case will take care of itself.
          Thanks I didn't see your formula on my 1st response. Whats the purpose of the large a41 in the formula?
          sigpic


          John 14:6

          Comment

          • #6
            9Cal_OC
            Calguns Addict
            • Apr 2019
            • 6678

            Originally posted by sfpcservice
            Thanks I didn't see your formula on my 1st response. Whats the purpose of the large a41 in the formula?
            In case the input is a zero, it outputs zero.
            Freedom isn't free...

            sigpic

            iTrader

            Comment

            Working...
            UA-8071174-1