How do I update Excel data in a column with a Macro or VB Script.

Edward Pamias
Edward Pamias used Ask the Experts™
on
I have a spreadsheet that has 2 TABS, SCCM DATA and RAW DATA, both have Source Computer (Column A) and Migration Status (Column F), everyday I copy the raw data over from SCCM to RAW DATA, after I copy the raw data from SCCM, I would like a Macro to compare the Source computer info on RAW DATA with SCCM DATA, if the Migration Status is different, then copy the updated Migration Status to SCCM DATA.

For Example: SCCM DATA                                                  For Example: RAW DATA
Source Computer     Migration Status                             Source Computer             Migration Status
Xhostname                 Not Started                                      xhostname                       completed

so what I need is the macro to do is update the migration status of SCCM DATA with the RAW DATA Migration Status. If there is no change then do nothing.

Thank you in advance.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Edward PamiasTeam Lead RRS Desk
Top Expert 2016

Author

Commented:
I wanted to clear up that question a bit, I am copying raw data from the SCCM Console to the Excel Spreadsheet.
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
Try this,
29145206.xlsm
Edward PamiasTeam Lead RRS Desk
Top Expert 2016

Author

Commented:
This copies, but hostnames are not on the same row in both sheets. I need it to find the hostname and status, then copy the updated migration status for that hostname over to SCCM DATA.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Edward PamiasTeam Lead RRS Desk
Top Expert 2016

Author

Commented:
I modified the sheet Martin Supplied. As stated above... I need the macro to match up the hostnames on each tab then copy the updated migration status to SCCM DATA.
Sample_29145206.xlsm
Older than dirt
Most Valuable Expert 2017
Distinguished Expert 2018
Commented:
See if this is better.
29145206a.xlsm
Edward PamiasTeam Lead RRS Desk
Top Expert 2016

Author

Commented:
Martin this works perfect. I am going to open another question because I need something else done with the same sheet and Macro. Thank you!

PS: I will post that shortly.
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
You’re welcome and I’m glad I was able to help.

If you expand the “Full Biography” section of my profile you’ll find links to some articles I’ve written that may interest you.

Marty - Microsoft MVP 2009 to 2017
              Experts Exchange Most Valuable Expert (MVE) 2015, 2017
              Experts Exchange Top Expert Visual Basic Classic 2012 to 2018
              Experts Exchange Top Expert VBA 2018
              Experts Exchange Distinguished Expert in Excel 2018

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial