#### calculating row by row

```I would like to have Excel total the sum of a row 5 of randomly generated
numbers in a 6th column, one column at a time.
I have no problem generating the random numbers and totalling them but I
would like to generate the first number and place it in the total column then
when I initiate it generate the second number, add this to the first and
place it in the total and so on to the 5th column.  Is this possible?

Many thanks.
```
 0
8/25/2008 9:31:01 PM
excel.newusers 15348 articles. 2 followers.

1 Replies
1481 Views

Similar Articles

[PageSpeed] 1

```Unless I'm missing something here, this formula should do it for you.  This
is for row 2 on the sheet, and would go into cell F2
=SUM(A2:E2)
That formula will "fill" down the sheet automatically adjusting to total the
values in columns A through E on each row.  See Excel Help for Fill Data for
information on filling formulas and data on a worksheet if you need help with
that part of it.

"DARKMAN" wrote:

> I would like to have Excel total the sum of a row 5 of randomly generated
> numbers in a 6th column, one column at a time.
> I have no problem generating the random numbers and totalling them but I
> would like to generate the first number and place it in the total column then
> when I initiate it generate the second number, add this to the first and
> place it in the total and so on to the 5th column.  Is this possible?
>
> Many thanks.
```
 0
Utf
8/26/2008 2:31:01 AM

Similar Artilces:

Calculating Taxes and Making calculations
Hello, Kindly plz tell me how do i go about making some small calculations based on my existing data such as how to compute taxes and do other calculations based on some quantitative data. where exactly do i make modifications on my application??? Kindly help me out. Thanks , swati you can add code in javascript behind dropdowns or piclist fields. One example might be a dropdown which has shipping options ie ups, fedex etc. When you choose one it takes the weight of your package (whcih you enter) then calculates a shipping cost. search the archives of this group at groups.google.com and ...

Procedure to calculate distance using latitude/longitude
Does anyone know of a vba procedure for access that will calculate straightline distance using latitude and logitude for 2 points? AJ wrote: > Does anyone know of a vba procedure for access that will calculate > straightline distance using latitude and logitude for 2 points? See: http://groups.google.com/group/microsoft.public.access/msg/6b934b0e580b974b James A. Fortune MPAPoster@FortuneJames.com ...

Code To Insert Blank Rows
I have a file with a listing of entries, and in column B of all the entries, are unique names. I need to create the code to reference the listing, which at times will be 200 entries and other times 1000 entries, and evaluate the data in column B, to then insert 2 blank rows every time a different name appears. For instance Initially column B has (Row 1) Pears (2) Pears (3) Pears (4) Apples (5) Grapes (6) Grapes After the desired code, the results would be.. (Row 1) Pears (2) Pears (3) Pears (4) Blank Row (5) Blank Row (6) Apples (7) Blank Row (8) Blank Row (9) Grap...

How to calculate age of a person?
Hi, I'm struggling to figure this one out. I have a date column and I'd like to be able to calculate the age without doing it in my head. I've tried to do this but am struggling. Any help will greatly appreciated. Thanks Suzanne Visit www.cpearson.com and search for DATEDIFF best wishes -- Bernard V Liengme Microsoft Excel MVP www.stfx.ca/people/bliengme remove caps from email "Grd" <Grd@discussions.microsoft.com> wrote in message news:6BFFD11C-AECB-4837-93B6-D84B6170B975@microsoft.com... > Hi, > > I'm struggling to figure this one out. I have...

EXCEL 2007 Formula to calculate INTEREST only on a 3 month bridge
I am trying to calculate monthly INTEREST ONLY payment on a short term bridge/swing loan. Assuming an interest rate of 2.75%, paid monthly, Also assuming it will be required for a 3-6 month period, amount approx \$500,000. Just switched to Excel 2007 but don't seem to be able to calculate using the formula builder. Not sure if it is compounded daily or monthly. You might want to check out the IPMT function. From the XL help file: IPMT(rate,per,nper,pv,fv,type) Rate is the interest rate per period. Per is the period for which you want to find the interest and must...

Due Date Calculated
I need assistance on an expression that allows for the due date of recurring training to be one year from date completed. Details are as follows: I have a form named [frmTRNComplete] based on table named [tblTRNComplete] Form controls are: TRNID (combo box), DateComp (Text Box) , DateNext (text box), Reccuring (check box) I would like the DateNext to be 1 year from DateComp if Reccuring is true and Date next to be blank if Reccuring is false. -- Aloha, Ron A. Ron I'll assume that you want to use the form to calculate the DateNext, and that you are not trying to s...

how to calculate outliers
Google is your friend: http://www.google.com/search?q=calculate+outliers - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions Peltier Technical Services, Inc. - http://PeltierTech.com _______ "ismhs" <ismhs@discussions.microsoft.com> wrote in message news:035124A0-06FA-4153-932E-6C4E0614F38C@microsoft.com... > ...

Calculated field options???
Here's my Data: Country Status --------- ---------- Canada Green Canada Blue Canada Green Canada Green Canada Blue In my pivot table, 'Country' is an item, and 'Status' is my only data field. What I really need to show in my data area is two column of data, one for 'Green' and one for 'Blue'. I tried creating two 'Calculated' fields with the following formulas, but they don't seem to be working: 'CalculatedField1' = IF((STATUS="Green"),1,0) 'CalculatedF...

Removing blank rows #7
I noted a post in January where someone wanted to insert blank rows in every other row of a worksheet I've got the reverse issue. A database created from a text input has a blank row from the original double-spacing - but not every second row. How do I remove blank rows in 50,000 lines of data? I don't know whether he blank rows carry some baggage from the conversion - was a copy out of a text file with space-separated values and double CR between lines (rows). This is for someone wanting a semiconductor data list that can eventually be sorted by column values. Will work as is, bu...

How can I increse the number of rows?
Microsoft Excel has 65536 rows and I need more rows. Thanks. Use quattro pro. -- Gary''s Student "Miguel Arenas" wrote: > Microsoft Excel has 65536 rows and I need more rows. > > Thanks. No. Sorry. Use multiple worksheets. ************ Anne Troy www.OfficeArticles.com "Miguel Arenas" <MiguelArenas@discussions.microsoft.com> wrote in message news:44FED374-C997-45B6-BA4B-FF854194264C@microsoft.com... > Microsoft Excel has 65536 rows and I need more rows. > > Thanks. Then you need to use more sheets, or consider another application...

__dopostback only does what I want after row 8
I want my datagrid rows to be clickable, so that a button column is fired when my user clicks anywhere on a row. Using Google, I figured out how to do it, but it only works after row 8. From row 9 on, the next page opens properly, but clicking rows 1 through 8 does nothing - the dopostback fires, but the page does not change. If I remove this code, the button column works fine. This sub seems to be disabling rows 1-8 for some reason. Here's my sub: Protected Sub DataGrid_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) e.Item.A...

tenure calculations
how can I format several dates such as 04/19/2003, 04/01/2004, etc. int a yearly average for the employee tenure -- Message posted from http://www.ExcelForum.com right now say I have my yearly figures in i1-i9. The formula I though would work is =today()-average(i1:i9), but how would i format this to give me yearly read out -- Message posted from http://www.ExcelForum.com Hi djackson! One way is to use YEARFRAC with a third argument of 1 to get your tenures in years and fractions of a year and then average the result. However YEARFRAC does produce some annoying but small errors. Y...

Time Sheet Function to Calculate
I am having some trouble trying to establish a formula that will give me the number of hours worked during the day given the start time say 8.30am with an end time of 5.30pm and say 30 minutes for lunch. For this scenario, total working hours would be eight and a half hours but I need Excel to display this result as 8.30 hours (0.30 being the minutes in the half hour) and not 8.50. Can someone suggest what to do? Typically the layout would be Column A - Start Time say 8.30am Column B - Time in minutes spent at lunch say 30 minutes Column C - End Time say 5.30pm. Column D - the calculati...

Formula to calculate time
I was wondering if anybody knows of a formula to allow you to do calculations based on time. In other words, say I want to put a list of songs on a CD and their durations. Then, I want to add up the durations to get the full time of the CD, or my specific play list. So for example, using the information below: Ghostbusters - Ray Parker Jr. --- 5:23 (Just a guess) Phantom of the Opera Overture --- 3:55 (Another guess) Instead of 8:78, I'd want to see 9:18 Can this be done? Any help would be greatly appreciated. Thank you! -- Have a nice day! ~Paul Express Scripts, Charting the futu...

Excel 2000 I eliminated my row and column headers. How do I get them back? Thanks PJ Go to the Tools menu, choose Options then the View tab. There, check the "Row and column headers" setting. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "PJ Usher" <pjusher@hotmail.com> wrote in message news:%23U8611qPFHA.3716@TK2MSFTNGP14.phx.gbl... > Excel 2000 > > I eliminated my row and column headers. How do I get them > back? Thanks > > PJ > > That's it!!! Thanks "Chip P...

want to turn PT row data into column data
original data: name win loss score paul 1 325 Jane 0 1 225 walt 1 400 nancy 0 200 jane 1 300 nancy 1 200 paul 1 365 walt 1 350 when i create p.t. I get (or a vague approximation) paul win 2 loss 0 avg 345 jane win 1 loss 1 avg 260 walt win 1 loss 1 avg 375 nancy win 0 loss 2 avg 200 but this is what I would like: name win loss avg Paul 2 0 345 Jane 1 1 260 walt 1 1 375 nancy 0 2 200 ---------------------------- HOw? tx phynkel, Grab the g...

Insert calculated median field in pivottable
Anyone know how to get a median calculation in a pivot table? I've tried inserting a calculated field but it always sums the calculated field. Thanks, Joel Not supported in a pivot -- Regards, Peo Sjoblom (No private emails please) "Joel Schaefer" <joel@disintegrators.com> wrote in message news:ev4P0Nk6FHA.2616@TK2MSFTNGP15.phx.gbl... > Anyone know how to get a median calculation in a pivot table? I've tried > inserting a calculated field but it always sums the calculated field. > > Thanks, > > Joel > ...

Javascript help, calculation whoes when calculating from a calculation....
I am having a strange issue with Javascript and I cannot see what the issue us? Essentially I need to be able to calculate two values, one is addition and the second is multiplication. I am getting some strange numbers. My code is at the bottom under the ------, here are the details. crmForm.all.estimatedvalue.DataValue = 10 crmForm.all.new_cfp_estrev_nextyr.DataValue = 10 crmForm.all.new_cfp_estrev_yrtwoplus.DataValue = 10 This should make totalestrev = 30, Then its getting weird, I am taking the following formula (10/100)*30 = 270? Here 10 is the value selected from the drop down value, I ...

macro to pick last row in a range
i need help on this do we have a macro which finds the last row in a range and picks up th last row and insert it below first row of the range thank u al -- Message posted from http://www.ExcelForum.com try this Sub moveit() x = Cells(Rows.Count, "a").End(xlUp).Row Rows(x).Cut Rows("2:2").Insert shift:=xlDown End Sub -- Don Guillett SalesAid Software donaldb@281.com "vikram >" <<vikram.166y5g@excelforum-nospam.com> wrote in message news:vikram.166y5g@excelforum-nospam.com... > i need help on this > > do we have a macro which finds the...

calculator errors
when i enter an equation into a cell such as: =product(a1,b1) into cell c1. If a1 is 1000 and b1 is .10 than c1 should equal 100, but it equals 102.04. My calculator is off somehow when i try to multiply. Please help me. Thank You, Kat I'd take a look at the values in A1 and B1. Are they really 1000 and .10 or are they 1000.49999 or .10444 (for example) "Kat and the Calculator" <KatandtheCalculator@discussions.microsoft.com> wrote in message news:591A3F6E-7C20-4C88-B1E2-6B76CFF502BA@microsoft.com... > when i enter an equation into a cell such as: =product(a...

row height issue
I insert a row height of 15.75 and excel changes it to 15.60 automatically on my new machine. I need to be able to create the 15.75 row height but cannot. I have the latest version of Excel 2007 on my new machine. I can create the 15.75 height on my other machine with a fairly recent version of Excel 2007. Any reason why I cannot create the 15.75 height on my new machine? Different Printer drivers? Gord Dibben MS Excel MVP On Mon, 12 Apr 2010 15:08:01 -0700, Mike SoCal <Mike SoCal@discussions.microsoft.com> wrote: >I insert a row height of 15.75 and excel ch...

Calculating Employee hours for the current week
Hello, I am new to excel and have been assigned the task of creating a file that breaks down the amount of time each of our employees spends on different projects. Most importantly I want to create a rollup sheet that shows the total number of hours all the employees have spent on the different projects (there are 6) for the current week. Is there any way for excel to figure out the current week then add together the hours all the employees worked on these 6 projects? Thanks in advance. Hi, Take a look at the templates available from Microsoft at http://office.microsoft.com/en-us/template...

Totals For An Inside Row Field In a Pivot Table
Hello, Is it possible to get totals for an inside row field in a pivot table? I have a table in layout as follows: Row Fields - Section, Year Column Fields - Rev, Exp, FTE OR: ...........................................Rev...........Exp.............FTE Sect............Year 3425... .....................2000................\$\$\$.........\$\$\$.........## .......................2001.................\$\$\$.........\$\$\$.........## ........................2002................\$\$\$.........\$\$\$.........## 3428... .....................2000................\$\$\$.........\$\$\$.........## .....................