+ Reply to Thread
Results 1 to 8 of 8

Mulitplication Formula

  1. #1
    Registered User
    Join Date
    04-21-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    4

    Mulitplication Formula

    Hello all....I am creating a formula to multiply Length * Width * Height each category would have its own cell. I will not always be entering all measurements so the problem I am having is that if I only enter two measurements one is always zero so when excel multiplies the formula the sum is always zero. I would like all of the cells to equal 1 unless the amount is greater. I have messed around with several formulas with no luck. Could someone please help me. Thanks in advance.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Mulitplication Formula

    One way:

    =IF(A1="",1,A1)*IF(B1="",1,B1)*IF(C1="",1,C1)


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    04-21-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Mulitplication Formula

    Thanks I will give it a try.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Mulitplication Formula

    PRODUCT function will ignore blanks....so try either

    =PRODUCT(A1:C1)

    or if the cells don't form one contiguous range

    =PRODUCT(A1,C1,E1)
    Audere est facere

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Mulitplication Formula

    Daddylonglegs solution is neater than mine, a lot less typing, but you will get a zero value if all the cells are empty whereas, with mine, you'll get one (1). Zero might be preferable depending on what you need.

    Regards

  6. #6
    Registered User
    Join Date
    04-21-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Mulitplication Formula

    That did the trick, but what I forgot to mention is there is another cell that that has the totals of the three ( length * width * Height) and is now giving me the sum of one as well I need that cell to be set at zero.

  7. #7
    Registered User
    Join Date
    04-21-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Mulitplication Formula

    Thanks guys "=product" seems to solve that problem

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Mulitplication Formula

    Edit: posts crossed - ignore

    Sorry, that's lost on me. What formulae do you have in what cells?

    Probably easiest to upload a sample workbook so we don't go round the houses.

    Regards

+ 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