Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default auto sum macro if data is present above the cell


Hey all,

i have a weekly work sheet that i do were i have to sum employees time
(9.78) at certian places they work. all the times are in the "L" column
but there is diffrent amount of spaces between a group of times an
sometimes only 1 time for the job. i need a macro to search the colum
for numbers and auto sum them. so something like...

7.48
6.48
4.35
18.23 <--- sum

4.35
4.35 <---sum

and so on. thank you for any help in advance

--
onesain
-----------------------------------------------------------------------
onesaint's Profile: http://www.excelforum.com/member.php...nfo&userid=937
View this thread: http://www.excelforum.com/showthread.php?threadid=27095

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default auto sum macro if data is present above the cell

Do you want a function that you can put in the now-blank cell that sums from
the row above up to the previous blank row? Or do you want a SUB that just
puts the totals in the cells?

If the latter, how are you going to distinguish a total from an employee time?
If there were 2 blank rows between sets of data at the start, and you ran the
macro once, it would fill in one of the blanks. Then if you were to run it
again, it would fill in the final blank with a total that includes the
previous total. Not good.

Can you do what you are after with the built-in SubTotals feature? What does
your layout look like? Do you have the employee name in one of the columns and
the location in another, with both of those items always filled in (i.e. not
left blank because they are the same as in the row above)?


On Wed, 20 Oct 2004 14:13:34 -0500, onesaint
wrote:


Hey all,

i have a weekly work sheet that i do were i have to sum employees times
(9.78) at certian places they work. all the times are in the "L" column.
but there is diffrent amount of spaces between a group of times and
sometimes only 1 time for the job. i need a macro to search the column
for numbers and auto sum them. so something like...

7.48
6.48
4.35
18.23 <--- sum

4.35
4.35 <---sum

and so on. thank you for any help in advance.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Highlight a Cell if Data not Present AceWill Excel Discussion (Misc queries) 0 March 10th 10 04:18 PM
Auto Insert the present time when a cell is filled with a data, Dinanath New Users to Excel 2 March 8th 09 08:28 PM
Returning an empty cell when no data present Bryan Excel Discussion (Misc queries) 4 November 27th 06 10:51 PM
Coloring Cell if Data is present oakman[_4_] Excel Programming 2 May 6th 04 08:39 PM
Change cell color if data present excel 2002 Mike[_80_] Excel Programming 2 April 29th 04 12:16 AM


All times are GMT +1. The time now is 11:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"