+ Reply to Thread
Results 1 to 14 of 14

Repeating multiplication (sorta)

  1. #1
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Repeating multiplication (sorta)

    Is there a formula that can perform the following long formula just by passing into it the values 100 and 12? I don't know all the various mathematical options in Excel but thought there might be a way to pass the value to create this same result.

    =(100*1)+( 100*2)+( 100*3)+( 100*4)+( 100*5)+( 100*6)+( 100*7)+( 100*8)+( 100*9)+( 100*10)+( 100*11)+( 100*12)

    The result of this long formula is 7,800.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Repeating multiplication (sorta)

    maybe: =SUM(100*{1,2,3,4,5,6,7,8,9,10,11,12})

  3. #3
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Repeating multiplication (sorta)

    Great...thank you. That's exactly what I needed.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Repeating multiplication (sorta)

    If you want 100 & 12 as variable.
    Assuming A1 contains 100, B1 contains 12.
    =SUMPRODUCT(A1*ROW(INDIRECT("1:"&B1)))
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Repeating multiplication (sorta)

    You are welcome
    thanks for rep and mark thread solved

  6. #6
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Repeating multiplication (sorta)

    Thanks CK76, that works also.

    Although I listed this as solved, is it possible ask if either of these solutions can be modified slightly to allow it to function in a Sumproduct sort of way for performing this calculation against a group of numbers? I am multiplying the result by a certain count, but then I have a whole row of values to perform this against. I took the formula and added a bit to complete the calculation I needed such as
    Please Login or Register  to view this content.
    My worksheet looks like this, and I'd like to be able to perform that summing like can be done with arrays in Sumproduct.
    Please Login or Register  to view this content.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Repeating multiplication (sorta)

    First show what you need. not part but full

    could be in attached excel file

    maybe =SUMPRODUCT(B2*ROW(1:12)*A2/ROWS(1:12))
    Last edited by sandy666; 07-07-2017 at 04:52 PM.

  8. #8
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Repeating multiplication (sorta)

    So something like... below? Assuming 12 is constant.
    =SUMPRODUCT(B2*ROW($1:$12))*(A2/12)

    See attached.
    Attached Files Attached Files

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Repeating multiplication (sorta)

    or

    for defined range (from example) : =SUMPRODUCT(B2*A2:A4*A2/COUNT(A2:A4))

    ok, enough this game

  10. #10
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Repeating multiplication (sorta)

    lol yeah

  11. #11
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Repeating multiplication (sorta)

    Fair point, I was thinking I could figure out the second part if I could get over the first question. I could not...

    Attached is what I'm trying to complete. My final worksheet uses tables and has dozens of rows, so I've boiled it down to the few I'm left to work out in the attachment. My goal is to perform all of the necessary calculations described in my last post in the colored table without having to create the individual Results table.
    Attached Files Attached Files

  12. #12
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Repeating multiplication (sorta)

    So you want get result only? without "middle" table?
    Target result Year 1: C12
    =SUMPRODUCT($B4:$B6*{1,2,3,4,5,6,7,8,9,10,11,12}*C$4:C$6/12)
    drag to the right
    Attached Files Attached Files
    Last edited by sandy666; 07-07-2017 at 05:54 PM. Reason: file added

  13. #13
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Repeating multiplication (sorta)

    Sweet....Thank you again!

  14. #14
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Repeating multiplication (sorta)

    Sweet only? This is VERY sweet

    You are welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 02-10-2017, 12:34 PM
  2. [SOLVED] Transpose Data in every 2nd row (sorta) to column on right [easy if you know how to code]
    By lougs7 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2016, 03:06 PM
  3. [SOLVED] Formula that sums different V.lookups with the same name, sorta?
    By The excel apprentice in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2016, 08:48 AM
  4. What is a function that will sorta and place random data in a table?
    By mpkelly6 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-29-2015, 12:37 PM
  5. [SOLVED] Sorta complicated grid system
    By Sparkplug90 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-06-2013, 01:44 AM
  6. sorta like consolidate I guess
    By sponger in forum Excel General
    Replies: 2
    Last Post: 08-27-2007, 02:06 AM
  7. [SOLVED] Chart Wizard sorta broken.
    By themeanies in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-26-2005, 11:05 AM

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