LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro for Customer response time


Thank you "~x" for your reply.
Unfortunately all the transaction dates appear in one column.

I need the macro to identify the first and last transaction dates for
each customer and subtract them.

I hope I'm not looking for the impossible.

With thanks

~× wrote:
*hi,
i have suppose than your name are in column1, your initial date
column 2 and your last date column 3...
And i have just made a programe which will put in column 4 = column3
- column 2...then change the format of column 4 in number to have the
number of day.....If i did not understand what you have ask, please
describe more your spreadsheet.

public numberofday()

Range("D2").Select
ActiveCell.FormulaR1C1 = "=RC[-2]-RC[-1]"
Range("D2").Select
Selection.AutoFill Destination:=Range("D2:D400"),
Type:=xlFillDefault
Columns("D:D").Select
Selection.NumberFormat = "0"

end sub *



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

 
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
Determining Response Time cdavis82 Excel Discussion (Misc queries) 1 November 4th 08 08:28 AM
Excel SLOW !! Response time ... kbk_kbk_kbk Excel Discussion (Misc queries) 1 April 16th 06 08:37 PM
Calculating Response Time Gary H Excel Discussion (Misc queries) 5 March 9th 06 12:27 AM
Slow Response time Rob Bovey Excel Programming 0 August 11th 03 03:47 AM
Slow Response time Carl Brehm Excel Programming 3 August 10th 03 07:10 AM


All times are GMT +1. The time now is 12:56 AM.

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

About Us

"It's about Microsoft Excel"