Copy cell format from workbook to workbook with criteria

Rip1971

Board Regular
Joined
Nov 3, 2020
Messages
65
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am looking for a way to copy cell formatting and comment from 1 workbook to another based on conditions.
the layout of both workbooks is the same. see table below. rownumbers will offcourse be different

what i would like to do is as follow. i am writing it down as i am doing it in my head and may be completly wrong thinking

for all sourceItemID (Column F) = goalItemID (Column F)
if sourceDaysRemaining (Column D) < goalDaysRemaining in (Column D)
then Copy format of sourceUserId (Column A) to goalUserID (Column A)

ABCDEF
User IDFirst NameLast NameDays RemainingRequired DateItem Id
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Maybe a bit more example data will help. A few rows of both the source data and the goal data.

Is my logic below correct?
  1. Get ItemID from source F2
  2. Go through F:F in goal workbook
  3. If ItemID is same as F2 and sourceDaysRemaining (Column D) < goalDaysRemaining in (Column D) then
  4. copy formatting from source A2 to current row Goal Ax
  5. Loop to next F cell (Source F3)
 
Upvote 0
Maybe a bit more example data will help. A few rows of both the source data and the goal data.

Is my logic below correct?
  1. Get ItemID from source F2
  2. Go through F:F in goal workbook
  3. If ItemID is same as F2 and sourceDaysRemaining (Column D) < goalDaysRemaining in (Column D) then
  4. copy formatting from source A2 to current row Goal Ax
  5. Loop to next F cell (Source F3)
Both source and goal have exact same layout,. table below is source, as you can see 1 cell has color and comment and that has to be copied to goal if step 3 is true.
if i see this correct it should be combination of itemID and UserID in step 3 that have to match.

Rapport_Dec.xlsx
ABCDEF
1User IDFirst NameLast NameDays RemainingRequired DateItem Id
2ND32660AlleFockema100128-Aug-23H174_1825
3ND39402KevinBoom109227-Nov-23H174_1825
4ND83061StijnKint175722-Sep-25H174_1825
5ND83891BertramWezeman1298-Apr-21H174_1825
Sheet1
 
Upvote 0
Is there someone that can help with this question.
 
Upvote 0
i will look at it, but at the moment quite busy.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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