Technology Questions

Go Back   Technology Questions > Software Questions > General Questions > Microsoft Office

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 03-14-2008, 11:30 AM
Nils Titley
Newsgroup Contributor
 
Posts: n/a
Excel Macro Help

I need to process an Excel file. I want to run a macro. The macro will not
know how many rows are in the file. The column A has a date time stamp for
each row.

Column E has the value N, L, or R. The rows will start with Ns. Than the
rows will have L or Rs. The last rows will have Ns. When the rows start to
have L or Rs. I need to grab the date time and when the N begin again I need
the date time so I can calculate the total time and add up the number of L
and Rs.

Here is a short example.

1/1/2008 10:10 N
1/1/2008 10:11 N
1/1/2008 10:12 N
1/1/2008 10:13 L
1/1/2008 10:14 R
1/1/2008 10:15 L
1/1/2008 10:16 N
1/1/2008 10:17 N

Total there are 2 L and 1 R and time is 4 min.

If this is not the right place for this please direct me to the correct place.

Point me in the right direction to find help.

Thank you for your assistance.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 03-14-2008, 11:30 AM
  #2 (permalink)  
Old 03-14-2008, 07:20 PM
Rob Giordano \(Crash\)
Newsgroup Contributor
 
Posts: n/a
Re: Excel Macro Help

try: microsoft.public.excel.misc or any Excel newsgroup.

--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression





"Nils Titley" <NilsTitley@discussions.microsoft.com> wrote in message
news:B5BF2756-900B-4570-B255-A6B0A6F7D918@microsoft.com...
|I need to process an Excel file. I want to run a macro. The macro will
not
| know how many rows are in the file. The column A has a date time stamp
for
| each row.
|
| Column E has the value N, L, or R. The rows will start with Ns. Than the
| rows will have L or Rs. The last rows will have Ns. When the rows start
to
| have L or Rs. I need to grab the date time and when the N begin again I
need
| the date time so I can calculate the total time and add up the number of L
| and Rs.
|
| Here is a short example.
|
| 1/1/2008 10:10 N
| 1/1/2008 10:11 N
| 1/1/2008 10:12 N
| 1/1/2008 10:13 L
| 1/1/2008 10:14 R
| 1/1/2008 10:15 L
| 1/1/2008 10:16 N
| 1/1/2008 10:17 N
|
| Total there are 2 L and 1 R and time is 4 min.
|
| If this is not the right place for this please direct me to the correct
place.
|
| Point me in the right direction to find help.
|
| Thank you for your assistance.
|
|
|


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
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
help in updating macro to office excel 2007 - macro enabled workbo jatman Microsoft Office 0 12-13-2007 09:30 PM
how do i share an excel macro? raseron Microsoft Office 2 05-30-2007 01:50 PM
(2007) Excel macro blocks Outlook??? C. Moya Microsoft Office 20 05-05-2007 03:47 PM
Excel -Macro Tina Microsoft Office 0 04-05-2007 07:45 AM
Envelopes fom Excel w/macro? al Microsoft Office 1 03-12-2007 09:01 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 08:14 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0