+ Reply to Thread
Results 1 to 3 of 3

Subtraction, division, multiplication of ranges

  1. #1
    Registered User
    Join Date
    10-27-2006
    Posts
    1

    Subtraction, division, multiplication of ranges

    Is there a function, perhaps similar to the Auto Sum function, that enables users to subtract, divide or multiply cell ranges? If not, what is the fastest way to perform these calculations?

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394
    You probably need an array formula, but it is not 100% clear what you are doing

    Let's say in Column A you have (down the column)
    1
    2
    3
    4

    and in column B you have (down the column)

    5
    6
    7
    8

    and you want to know what is 1*5 + 2*6 + 3*7 + 4*8

    Then this formula will do this
    {=SUM(A1:A4*B1:B4)}

    This is an array formula. So you need to just enter =SUM(A1:A4*B1:B4) and then instead of pressing Enter, you press Ctrl-Shift-Enter

    For a good read, have a look here http://www.cpearson.com/excel/array.htm

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Or this non array

    =SUMPRODUCT(--(A1:A4)*(--(B1:B4)))

    VBA Noob

+ 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