+ Reply to Thread
Results 1 to 17 of 17

multiplying two columns

Hybrid View

COLC multiplying two columns 03-20-2008, 02:28 AM
Airman Hey COLC, Just in the door... 03-20-2008, 08:22 AM
darkyam The formula in column C could... 03-20-2008, 09:25 AM
oldchippy Or even ... 03-20-2008, 09:32 AM
COLC A B ... 03-20-2008, 07:44 PM
  1. #1
    Registered User
    Join Date
    03-20-2008
    Posts
    13

    Red face multiplying two columns

    Be nice to me I am an Excel Dummy.
    I would like somebody to advise me on the following.
    Assume column B is 31 cells long with a value in each cell all the way down.
    I wish to progressively add a value to column A (say on a daily basis) which is to be multiplied by the constant value in Column B and showing a total in Column C, at the same time showing a total at the bottom of A and C.
    Any assistance would be appreciated, please forgive my ignorance.

  2. #2
    Registered User
    Join Date
    03-20-2008
    Posts
    2
    Hey COLC, Just in the door myself...

    Presume you'll start at A1, B1 & C1 and are using numbers only.
    Go to C1 and type this: =IF(A1="","",(MMULT(A2,B2)))
    What this means is: IF A1 is Blank then do nothing, otherwise multiply A1 x B1. Next click on C1 and hover over the small black square at the bottom right of the cell (the "Cursor" will change when you are on it), hold the mouse button and drag it all the way down to C31. (This repeats the formula for all the selected cells. (Don't write in these...you'll delete the formulas)

    Now go Col A32 (Where you want to total A) and type: =SUM(
    Select A31, hold the mouse and drag it up to A1 (You'll see a dotted box covering the selected cells that you want.) let go and hit Return/Enter.this adds A1, A2, A3....A31

    Do the same for Col C

    How'd I do?

  3. #3
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    The formula in column C could be shortened to =A1*B1. If nothing is in A1, it will just return 0.

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Or even

    =IF(A1="","",A1*B1) if you didn't want to display a zero
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  5. #5
    Registered User
    Join Date
    03-20-2008
    Posts
    13
    A B C
    1 0.5081644 1.0163288
    2 0.5081644 2.540822
    5 0.5081644 2.0326576
    4 0.5081644 3.0489864
    6 0.5081644 2.0326576
    4 0.5081644 #VALUE!
    Thanks Guys,
    I seem to have struck a hurdle at the first!, I have only tried the first part of the formula A X B and as can be seen above the Column C total does not correspond correctly ie A1 X B1 should be 0.5081644 and so on.
    Either I have not explained my problem adequately or made an error somewhere.
    Any clues?

  6. #6
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    Just a hunch, but it looks like your formula is =A2*B1. If you have text in A7, this would also explain the error.

+ 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