Hi All,
I am trying to get a code for the following query:
Let’s first discuss about the sheets I have:
Parent data: Col B contains the name of the clients (X1, X2 X3…..so on) and Col A contains unique project IDs submitted by these clients
Pivot: Here I run a pivot to see the number of projects submitted by each one of these clients
Targeting clients: Here I have identified some clients (say according to last month’s data) who have submitted >= 4 projects. They are X1, X2, X3, X5 and X6 (in the pivot you could see X7 also has the count of 4 but I have not included that in my initial target list….I will explain this later)
Note: Every month new data is added in parent sheet from last available row onwards and my pivot table is accordingly refreshed with new data points.
Requirement:
IF any one of the client’s in pivot table (Col A of ‘Pivot’ sheet) exists in my targeted clients’ list (Col A of ‘Targeting clients’ sheet)THEN
‘do nothing’ and come to the next row ( of Col A of ‘Pivot’ sheet)
Else: (does not exist in my targeted clients’ list)
Check the corresponding cell (Col B of pivot table)…..IF the value is found to be >=4 THEN copy that corresponding client’s name (In Col A of Pivot table) and paste it in the last available row at Col A of ‘Targeting clients’ sheet…….ELSE(IF the value is found to be <4) ‘do nothing.
Most precisely the condition is:
1) IF clients’ match happens…THEN don’t do anything….come to the next row(at pivot table)
2) IF clients do not match….THEN check the corresponding value
a. IF the value>=4 THEN perform copy paste action
b. IF the value <4 THEN don’t do anything….come to the next row(at pivot table)
Say, on this month one client submits >=4 projects and that client does not exist in my targeting clients’ list (Hence, here X7 is that example).
So, taking the above scenario into consideration, code should identify X7 and paste it in the last available row at Col A of ‘Targeting clients’ sheet
Here is the file
https://hotfile.com/dl/167285764/28b04d0/Sample_Targetted_clients.xlsx.html
Kaushik
I am trying to get a code for the following query:
Let’s first discuss about the sheets I have:
Parent data: Col B contains the name of the clients (X1, X2 X3…..so on) and Col A contains unique project IDs submitted by these clients
Pivot: Here I run a pivot to see the number of projects submitted by each one of these clients
Targeting clients: Here I have identified some clients (say according to last month’s data) who have submitted >= 4 projects. They are X1, X2, X3, X5 and X6 (in the pivot you could see X7 also has the count of 4 but I have not included that in my initial target list….I will explain this later)
Note: Every month new data is added in parent sheet from last available row onwards and my pivot table is accordingly refreshed with new data points.
Requirement:
IF any one of the client’s in pivot table (Col A of ‘Pivot’ sheet) exists in my targeted clients’ list (Col A of ‘Targeting clients’ sheet)THEN
‘do nothing’ and come to the next row ( of Col A of ‘Pivot’ sheet)
Else: (does not exist in my targeted clients’ list)
Check the corresponding cell (Col B of pivot table)…..IF the value is found to be >=4 THEN copy that corresponding client’s name (In Col A of Pivot table) and paste it in the last available row at Col A of ‘Targeting clients’ sheet…….ELSE(IF the value is found to be <4) ‘do nothing.
Most precisely the condition is:
1) IF clients’ match happens…THEN don’t do anything….come to the next row(at pivot table)
2) IF clients do not match….THEN check the corresponding value
a. IF the value>=4 THEN perform copy paste action
b. IF the value <4 THEN don’t do anything….come to the next row(at pivot table)
Say, on this month one client submits >=4 projects and that client does not exist in my targeting clients’ list (Hence, here X7 is that example).
So, taking the above scenario into consideration, code should identify X7 and paste it in the last available row at Col A of ‘Targeting clients’ sheet
Here is the file
https://hotfile.com/dl/167285764/28b04d0/Sample_Targetted_clients.xlsx.html
Kaushik