Solved

Excel - calculation for 50 cells w/o VBA coding it

Posted on 2013-01-08
4
198 Views
Last Modified: 2013-01-10
Hello Experts,

I wanted to see if there is a way to write an Excel Formula that will calculate a large set of numbers without having to type it all out.  I am trying to avoid using VBA coding, if possible.  But will resort to it if needed.

Range("C57") = sum("D6*$L$6)+(D7*$L$7) this continues to row 50.  It is always column D * L.
Is there a way to write this as a function instead of typing 45 steps?

Otherwise I need to set it as a change cell event for range (D6:I50).

If I can be helped with both of these scenerios - it would be great.

Thank you,
Michael
0
Comment
Question by:mike637
  • 2
  • 2
4 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 38757101
If you mean that C57 should have:

=SUMPRODUCT(D6:D7,L6:L7)

and C100 should have:

=SUMPRODUCT(D49:D50,L49:L50)

then simply enter that first formula into C57, and copy it down through C100.

If you meant to fix the references to Col L, then use this instead:

=SUMPRODUCT(D6:D7,$L$6:$L$7)
0
 

Author Comment

by:mike637
ID: 38757530
Hi Matt,

Not exactly,

There is a column of numbers in column D (starting at row 6)  I need to mulitpy D6 by L6, and D7*L7 and, D8*L8 and D9*L9 and so on until I reach row D55*L55. All of this needs to be contained in Cell "D57" to calc this whole process.

I am attaching a sheet with an example.

I have to use this formula in 35 other instances in the same sheet with different different rows and columns.  But if I can get the first example down to a simplified formula, then I can use that in the other instances.

I wanted to see if there was a way to write it so I did not have to type out all 50 expressions.

Thanks,
Michael
Book1.xlsx
0
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 38757572
OK, so use this in D57:

=SUMPRODUCT(D6:D55,$L$6:$L$55)

Then copy that across through J57 if you like.
0
 

Author Closing Comment

by:mike637
ID: 38763872
Hi Matthewspatrick:

Thank you - worked perfectly!

Michael
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 7 Share with concurrent edits(Excel) 3 33
Excel Formula 4 28
Vlookup nonexact IP address match 32 51
excel connection properties parameters grayed out 5 27
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now