+ Reply to Thread
Results 1 to 3 of 3

Multiply by B2 if B2>0, if not, multply by #

  1. #1
    Registered User
    Join Date
    05-23-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    11

    Multiply by B2 if B2>0, if not, multply by #

    Hi I want to set up a formula to multiply a column a by the value in column b, unless the value in column b is 0, in which case I want to multiply by 30.

    Is there a way to do this?


    a b c
    Row 1 25 0 formula
    2 15 0 formula
    3 23 13 formula

    Many thanks,

  2. #2
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Multiply by B2 if B2>0, if not, multply by #

    =if(b1=0,a1*30,a1*b1)

  3. #3
    Registered User
    Join Date
    05-23-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Multiply by B2 if B2>0, if not, multply by #

    thanks. this worked.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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