|
10 Feb 2004, 13:52
|
#1
|
Rawr rawr
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
|
Excel help
I need a bit of help with MS Excel. I'm now making my planning in Excel but I can't figure out how to perform a subtraction on a whole row and display it in another row.
Each row is a task. Column C holds the planned hours, column D holds the actual hours worked on a task. Now, I want column E to show the difference between column C and D and this difference has to be summed in the totals row. How do I get my difference in column E without having to enter the formula manually at each row?
TY!
__________________
"Yay"
|
|
|
10 Feb 2004, 13:55
|
#2
|
Clerk
Join Date: Jun 2001
Posts: 13,940
|
Re: Excel help
Can you just sum each row/column in the end formula?
So =SUM(B2:B8)-SUM(A2:A8) or something like that?
|
|
|
10 Feb 2004, 14:05
|
#3
|
:alpha:
Join Date: May 2002
Location: London, UK
Posts: 7,871
|
Re: Excel help
Do one row:
E1=C1-D1
Then hold the cursor over the cell, and move it to the little black square in the bottom right of it. You should get a little cross there. Click and drag down the E column. It'll do it all for you.
__________________
"There is no I in team, but there are two in anal fisting"
|
|
|
10 Feb 2004, 14:07
|
#4
|
Rawr rawr
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
|
Re: Excel help
@Dante
That'd give me the difference between the planned hours and the actual hours worked. That's not what I want. I want the difference between the planned hours and the actual hours where the task already has been started/completed. A started/completed task can be identified by a value larger than 0 filled in in Culumn D.
But that's not really the issue. Generally what I can't figure out is how to perform an operation on two culumns without having to copy the formula in every field. If I can get that to work I can figure out the rest.
__________________
"Yay"
|
|
|
10 Feb 2004, 14:12
|
#5
|
Throwing Shapes
Join Date: Apr 2000
Posts: 797
|
Re: Excel help
What Tomkat said.
__________________
Time is an Illusion, Lunchtime doubly so.
|
|
|
10 Feb 2004, 14:13
|
#6
|
Rawr rawr
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
|
Re: Excel help
Quote:
Originally Posted by Tomkat
Do one row:
E1=C1-D1
Then hold the cursor over the cell, and move it to the little black square in the bottom right of it. You should get a little cross there. Click and drag down the E column. It'll do it all for you.
|
OK, that's getting very close... but it would really be awesome if I could also do "insert row" somewhere and the formula would be automatically copied
__________________
"Yay"
|
|
|
10 Feb 2004, 14:29
|
#7
|
Throwing Shapes
Join Date: Apr 2000
Posts: 797
|
Re: Excel help
Not sure its possible. You might be able to set up a vba trigger (again not sure if there is a OnInsertRow event or something like that.)
__________________
Time is an Illusion, Lunchtime doubly so.
|
|
|
10 Feb 2004, 14:33
|
#8
|
Rawr rawr
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
|
Re: Excel help
Nah, I don't intend to program Excel macros. If it isn't possible with standard click and drag stuff then nevermind.
__________________
"Yay"
|
|
|
10 Feb 2004, 14:56
|
#9
|
a little bit broken
Join Date: Jun 2003
Posts: 1,405
|
Re: Excel help
=(SUMIF(D1:D500,"> 0",C1:C500))-(SUMIF(D1:D500,">0",D1:D500))
__________________
i came, i saw, i made a bit of a mess
|
|
|
10 Feb 2004, 14:59
|
#10
|
a little bit broken
Join Date: Jun 2003
Posts: 1,405
|
Re: Excel help
that is assuming you have no more than 500 rows
you can easily change the 500 to read 1000 or more if you need to
this will show the total time planned minus the total time taken where a time taken has been entered
__________________
i came, i saw, i made a bit of a mess
|
|
|
10 Feb 2004, 19:47
|
#11
|
Commander
Join Date: Sep 2001
Location: Netherlands
Posts: 146
|
Re: Excel help
Quote:
Originally Posted by Structural Integrity
OK, that's getting very close... but it would really be awesome if I could also do "insert row" somewhere and the formula would be automatically copied
|
Select a row, Copy, Insert copied cells?
__________________
Quote:
Originally posted by Cochese
Cathaar are not overpowered.
You were just "bashed", live with it.
|
|
|
|
10 Feb 2004, 19:55
|
#12
|
Registered User
Join Date: Aug 2000
Posts: 1,967
|
Re: Excel help
AutoFill?
|
|
|
10 Feb 2004, 20:47
|
#13
|
Rawr rawr
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
|
Re: Excel help
Quote:
Originally Posted by madi
that is assuming you have no more than 500 rows
you can easily change the 500 to read 1000 or more if you need to
this will show the total time planned minus the total time taken where a time taken has been entered
|
\o/
In combination with Tomcats suggestion I think I got what I want now.
Caesar2: I'm a lazy bastard. Every click I have to make for updating the planning is one too much.
Intrepid, how do I do autofill?
__________________
"Yay"
|
|
|
10 Feb 2004, 20:50
|
#14
|
:alpha:
Join Date: May 2002
Location: London, UK
Posts: 7,871
|
Re: Excel help
I think the technical name for what I told you is "autofill".
IT'S TomKat too. Grawr.
__________________
"There is no I in team, but there are two in anal fisting"
|
|
|
10 Feb 2004, 20:50
|
#15
|
Clerk
Join Date: Jun 2001
Posts: 13,940
|
Re: Excel help
Edit=>Fill Down/Fill-Right
Although that's pretty much the same as the whole dragging the corner thingie.
|
|
|
10 Feb 2004, 20:55
|
#16
|
Rawr rawr
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
|
Re: Excel help
oh.... OK
TomKat and Dante
__________________
"Yay"
|
|
|
11 Feb 2004, 00:14
|
#17
|
a little bit broken
Join Date: Jun 2003
Posts: 1,405
|
Re: Excel help
sorry
i thought you wanted to display the total over all in a single cell
*sigh*
__________________
i came, i saw, i made a bit of a mess
|
|
|
11 Feb 2004, 19:24
|
#18
|
Rawr rawr
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
|
Re: Excel help
You pointed me with my nose on the SUMIF and IF functions madi. Those are quit handy.
I'm beginning to like Excel even. It's quite handy. But if it could create the bar diagram belonging to the planning automatically I'd be totally in love with it
http://www.structweb.com/workfolder/planningtable.xls
__________________
"Yay"
|
|
|
11 Feb 2004, 19:33
|
#19
|
Clerk
Join Date: Jun 2001
Posts: 13,940
|
Re: Excel help
I actually like Excel, although it's misused horribly in the business world.
Half the spreadsheets we use at work (and we literally thousands of different ones) would be infinitely better managed in a proper db setup.
|
|
|
|
All times are GMT +1. The time now is 08:14.
| |