Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-08-2015, 12:00 PM
MBragg
Guest
 
Posts: n/a
Default Copy Like Data

Hello,
I have an Excel spreadsheets with two Sheets, containing Serial numbers and dates. One of them has the dates the Serial Number came into the area, and one of the has the date the serial number left the area. I need a program to Group the dates from the "Open" date next to the "Close" Date, so I can track the delta between the two. Any Suggestions? This will be updated weekly, so I would like to be able to Copy data into this sheet, and either click a button or Run a Marco with a shortcut. See the attached sheet
Reply With Quote
  #2  
Old 10-09-2015, 07:37 AM
NoSparks NoSparks is offline Copy Like Data Windows 7 64bit Copy Like Data Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

You may be able to keep this always current with a vlookup formula.

A VBA suggestion would be to loop through the serial numbers of one sheet
Use match or find on the other sheet
Offset to get the date
Datediff to get the delta.

A better answer could be provided if you actually do attach a sample workbook.
Reply With Quote
  #3  
Old 10-12-2015, 02:32 PM
MBragg
Guest
 
Posts: n/a
Default Sorry, thought I had.

Sorry, thought I had.
Attached Files
File Type: xlsx Open to Close.xlsx (81.5 KB, 10 views)
Reply With Quote
  #4  
Old 10-13-2015, 11:45 PM
macropod's Avatar
macropod macropod is offline Copy Like Data Windows 7 64bit Copy Like Data Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You could do this with formulae as simple as:
=INDEX('Day Closed'!A:A,MATCH(B2,'Day Closed'!B:B,0))
=C2-A2
in C2 and D2, respectively, of your 'Day Opened' sheet, but that sheet and the 'Day Closed' sheets don't use the same data formatting - the latter evidently uses text formatting to preserve leading 0s, but the former appears to be numeric. You should use the same data formats for both sheets.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy data from one form to another jodjamz Outlook 0 04-28-2015 05:07 PM
Copy data from certain Cells in new sheet zain_shaikh Excel Programming 1 02-11-2015 07:35 PM
Copy data from Word into Excel chinchee Word VBA 18 05-23-2014 05:25 AM
How to copy data automatically to particular sheet? nicholes Excel Programming 13 03-12-2014 01:05 AM
Copy Like Data Copy data from spreadsheets to a two, with the sum criterion marreco Excel Programming 1 05-15-2012 04:15 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft