VBA to Loop Through Rows and Update Different Sheet Based on Certain Criteria

Just Mike

New Member
Joined
Jul 19, 2019
Messages
2
Hi All

Looking for some help from you good people.

I have a workbook with two sheets. Sheet 1 is labeled Summary and Sheet 2 is labeled Detail.

Hoping to have Column R on Summary sheet to be update based on data found on the Detail sheet.

The logic I am trying to create would be If Column A on Detail Sheet matches Column B on Summary sheet and all of column G is "Complete" then Column R on Summary would show "Complete", If all of column G shows "On Hold" then Column R on summary would show "On Hold", If just one row in Column G shows "Not Started" then Column R on Summary would show "Not Started" and if just one row in Column G shows "In Progress" then Column R on Summary would show "In Progress"

Detail sheet below

A B C D E F G H
ProjectAssociateRoleSiteFunctionEstimated Time per WeekStatus% Complete
FEProject LeadITP1Complete10
FRInvolvedLTP2Complete20
FDInvolvedLTP3Complete30
FMInvolvedHTP4Complete40
FCInvolvedHTP5Complete50
FTInvolvedHTP6Complete60
FTYInvolvedHTP7Complete70
FRInvolvedNTP8Complete80
Not FEProject LeadITP1Complete10
Not FRInvolvedLTP2Not Started20
Not FDInvolvedLTP3Complete30
Not FMInvolvedHTP4Complete40
Not FCInvolvedHTP5Complete50
Not FTInvolvedHTP6Complete60
Not FTYInvolvedHTP7Complete70
Not FRInvolvedNTP8Complete80

Example below

B8 on Summary shows Project F / A2 - A8 on Detail show Project "F" and G2 - G8 show "Complete" so R8 on Summary sheet should show "Complete"
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,214,827
Messages
6,121,809
Members
449,048
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top