Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #13  
Old 06-10-2019, 12:56 AM
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

NoSparks,

Thanks again for hanging in with me on this one. Its been a bit of a learning curve for me and I'm still hitting a few snags with the actual data set. I ran this new code and it is successful in preserving forecast rows with a column "S" value that is the same as the one above it. Unfortunately when it finds an actual row and a forecast row with matching column S values, it is copying all 12 months from the Actuals column and overwriting data in the forecast column. Its really strange because it works perfectly in the dataset I posted.

I've been trying to figure out what's different, same columns and headers and similar data. Only thing I noticed is my dataset in excel seems to be longer than it is, meaning my scroll bar thinks there's data in about 1000 cells below my actual data. I've tried clearing them and see no values or formulas. But when I Shift-Control-End it includes a bunch of blank cells. Do you think that could be causing the issue?

Also in testing twice the code got stuck at the following line. Not sure why...

.Cells(i - 1, "F").Resize(, firstFcst - 6).Value = .Cells(i, "F").Resize(, firstFcst - 6).Value

Any suggestions where I might go next, I'm hitting a wall on this one. Thanks for your help!
Reply With Quote
 



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 03:21 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