Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-22-2019, 03:47 PM
NoSparks NoSparks is offline Macro to combine data from multiple rows if same identifier Windows 7 64bit Macro to combine data from multiple rows if same identifier Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

Quote:
I am trying to develop a macro to find rows in my spreadsheet that share the same account number (in col S)
a filter will do this, as will the Range.Find / .FindNext method.


Quote:
My data resides in columns A-Y and contains twelve months of numerical data (col F-Q) where some rows have Actual values and some rows have Forecast values.
12 columns for months, what distinguishes these from being Actual or Forecast?

A great help here would come from you.
Posting a sample workbook, not all 2000 rows, that is typical of what you're starting with and containing a sheet (manually put together) to indicate what you're wanting to end up with would be extremely helpful towards getting a solution.
Reply With Quote
  #2  
Old 05-23-2019, 02:09 PM
Tphil413 Tphil413 is offline Macro to combine data from multiple rows if same identifier Windows 10 Macro to combine data from multiple rows if same identifier Office 2016
Novice
Macro to combine data from multiple rows if same identifier
 
Join Date: May 2019
Posts: 18
Tphil413 is on a distinguished road
Default Example data

Here's an example of the file I am trying to combine. In column S I have created a field that combines three attributes (dept, acct and vendor) into one value. If this value exists is consecutive rows, and the two rows contain no data in overlapping months (i.e., typically the first row is forecast data and the second is actuals data with no overlapping months), then the code should copy the actuals data into the forecast row and delete the actuals row. The code needs to work regardless of which months are actuals and which are forecasts as that will change each month. Hope this helps clarify what I'm trying to do.

I appreciate your help!
Attached Files
File Type: xlsx Example data.xlsx (17.6 KB, 10 views)
Reply With Quote
  #3  
Old 05-23-2019, 09:46 PM
Tphil413 Tphil413 is offline Macro to combine data from multiple rows if same identifier Windows 10 Macro to combine data from multiple rows if same identifier Office 2016
Novice
Macro to combine data from multiple rows if same identifier
 
Join Date: May 2019
Posts: 18
Tphil413 is on a distinguished road
Default

Hey NoSparks is this the kind of file you were asking me to post? Any suggestions on a potential VBA solution? Hoping you can help, thnaks!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to combine multiple rows in to one through an equation on EXCEL? emitb Excel 1 07-31-2018 04:22 PM
Combine multiple 'form data' into one all-encompassing Word document Padraig Clarke Word 1 04-19-2017 05:28 AM
Summarising data from multiple rows mardecl1 Excel 5 01-06-2017 04:05 AM
Macro to Combine Multiple Rows into One Row brunssl2 Excel Programming 10 01-13-2015 01:56 PM
Macro to combine data from multiple rows if same identifier data roll up under unique identifier NewGirl Mail Merge 1 11-15-2012 04:47 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:22 PM.


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