Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2016, 06:35 PM
meggenm meggenm is offline Move Data from Master List to Sheets with City Name Windows 7 32bit Move Data from Master List to Sheets with City Name Office 2010 32bit
Novice
Move Data from Master List to Sheets with City Name
 
Join Date: Jan 2012
Posts: 11
meggenm is on a distinguished road
Default Move Data from Master List to Sheets with City Name

I have a Master worksheet that has both Dallas and Austin listed in the City Column. I tried to use an "if" formula to populate the Dallas worksheet with the row information that shows Dallas as the city and one to also populate the Austin worksheet with all Austin row information.

I am fairly new at Excel so really appreciate your help. This is pretty fabulous to be able to get help from professionals!



Thanks!!

Short Sample Workbook attached.
Attached Files
File Type: xlsx Practice Book - V1.xlsx (10.8 KB, 12 views)
Reply With Quote
  #2  
Old 01-27-2016, 09:11 PM
jolivanes jolivanes is offline Move Data from Master List to Sheets with City Name Windows XP Move Data from Master List to Sheets with City Name Office 2007
Advanced Beginner
 
Join Date: Sep 2011
Posts: 91
jolivanes will become famous soon enough
Default

Depending on the amount of data you have. If you have a lot, AutoFilter might be better.

Code:
Sub Maybe()
Dim c As Range
    For Each c In Range("C2:C" & Cells(Rows.Count, 3).End(xlUp).Row)
        c.Offset(, -2).Resize(, 4).Copy Sheets(c.Value).Cells(Rows.Count, 1).End(xlUp).Offset(1)
    Next c
End Sub
Reply With Quote
  #3  
Old 01-27-2016, 10:37 PM
xor xor is offline Move Data from Master List to Sheets with City Name Windows 10 Move Data from Master List to Sheets with City Name Office 2013
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default Move data

If you do not have an awful lot of data you might want to try an array formula.
Please note that Master!A25 is named d and Master!C2:C5 is named City.
Attached Files
File Type: xlsx Practice Book - V1_2.xlsx (10.5 KB, 10 views)
Reply With Quote
  #4  
Old 01-28-2016, 10:18 AM
jolivanes jolivanes is offline Move Data from Master List to Sheets with City Name Windows XP Move Data from Master List to Sheets with City Name Office 2007
Advanced Beginner
 
Join Date: Sep 2011
Posts: 91
jolivanes will become famous soon enough
Default

This might be faster if you have a large amount of data.
See attached

Code:
Sub With_AutoFilter()
Dim cityArr, i As Long
cityArr = Array("Dallas", "Austin")
    Application.ScreenUpdating = False
    With Range("A1").CurrentRegion
        For i = LBound(cityArr) To UBound(cityArr)
            .AutoFilter Field:=3, Criteria1:=cityArr(i)
            .Offset(1).Copy Sheets(cityArr(i)).Cells(Rows.Count, 1).End(xlUp).Offset(1)
        Next i
        .AutoFilter
    End With
    Application.ScreenUpdating = True
End Sub
Attached Files
File Type: xlsm Meggenm.xlsm (25.1 KB, 12 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Complex calculation from multiple sheets to master sheet inreality01 Excel 49 01-06-2016 03:09 PM
Move Data from Master List to Sheets with City Name Excel, transfer data from Master Sheet to sub sheets, using key word from column anvqui Excel Programming 9 06-16-2015 01:35 PM
Move Data from Master List to Sheets with City Name seprate process data from main master list Santhosh AMASL Excel 1 01-12-2015 09:33 AM
Combine Data From 2 Sheets into a new sheet bremen22 Excel 1 09-11-2013 12:59 PM
Move Data from Master List to Sheets with City Name How to syncronize data in two different sheets diegogeid Excel 2 09-30-2010 12:19 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:36 AM.


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