Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-15-2015, 08:41 PM
zingle zingle is offline Filter, Sort, Macro... what to do? Windows 7 64bit Filter, Sort, Macro... what to do? Office 2013
Novice
Filter, Sort, Macro... what to do?
 
Join Date: Oct 2015
Posts: 2
zingle is on a distinguished road
Default Filter, Sort, Macro... what to do?

Hi, i'm trying to select and copy only certain rows of data. I've tried filtering but can't get it to work due to the date and time both being in one cell and wanting a range.



Basically I have a large amount of data with the date and time in the first column and then various things in the columns after it like this



I want to have say only only the rows which have morning data between 10:00 and 12:00.



It doesn't matter if it just copies to rows bellow the original data, copies it to a new sheet or just deletes the rows I don't want as I will just be copy and pasting it into another application.

If I try sorting or filtering I run into problems with the date and time both being in the same cell or looking for a specific value in a cell when i'm after a range of values and I don't have a clue about macros or anything else.
Reply With Quote
  #2  
Old 10-15-2015, 09:51 PM
macropod's Avatar
macropod macropod is offline Filter, Sort, Macro... what to do? Windows 7 64bit Filter, Sort, Macro... what to do? 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

I don't have any trouble filtering a date range that includes times. Simply choose Date Filers>Between and input the range. Since dates are integers and times are decimals, you just need to be careful about how you specify the range. For example, if you input just 10/10/2015 as the start date, 10/10/2015 11:12 is after that. So, filtering for dates after 10/10/2015 would mean starting after 10/10/2015 23:59:59 (or starting on 11/10/2015).

If you want to filter according to time values, use a separate column to extract just the time portion (eg =MOD(A1,1)), then filter that column.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 10-17-2015, 04:35 AM
zingle zingle is offline Filter, Sort, Macro... what to do? Windows 7 64bit Filter, Sort, Macro... what to do? Office 2013
Novice
Filter, Sort, Macro... what to do?
 
Join Date: Oct 2015
Posts: 2
zingle is on a distinguished road
Default

Thanks for the reply.

Pulling the time into a separate column and filtering that works manually but not if I do a numbers between.

The two macros from the cross post seem to get the job done http://www.ozgrid.com/forum/showthread.php?t=197170.
Reply With Quote
  #4  
Old 10-17-2015, 06:49 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Filter, Sort, Macro... what to do? Windows 7 64bit Filter, Sort, Macro... what to do? Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

In the future, please post links to your cross-post in your original question.

read this to understand why
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for Help to Create a Macro (Sort) rsrasc Word VBA 5 04-16-2014 03:25 AM
Macro for Advanced Filter atwood121 Excel Programming 0 05-22-2012 07:47 PM
Forgotten Sort and Filter Criteria rbdmg Mail Merge 0 10-31-2011 09:14 PM
Sort table using macro saslotteroy Word VBA 2 09-15-2011 02:41 PM
sort & filter icon not available or icon not highlighted survivo01 Excel 1 08-08-2011 03:41 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:23 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