Link to home
Start Free TrialLog in
Avatar of Avinash Singh
Avinash Singh

asked on

Copy and paste the data based on sheet2 Conditional

If coloumn A and Coloumn C  of sheet2 are same then copy the data of sheeet1  of same row and paste the data to sheet3
If Coloumn A and Coloumn B  of sheet2 are same then copy the data of sheeet1  of same row and paste the data to sheet4
Highlighted colour is only for understanding purpose,In actual file there is no highlighted colour
I have to do all this by vba
sample-file-001.xlsm
Avatar of Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.Sc
Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.Sc
Flag of Zambia image

Hi

Here is something that will give you an idea, please use it, just place the formula where you want the text to be not colors. It will work.

IF(OR(A2=C2,A2=B2),Sheet1!A1)


Regards

Chris
Avatar of Avinash Singh
Avinash Singh

ASKER

I am not looking for formula, I am looking for vba to solve my problem
Any doubts reg this post ?
ASKER CERTIFIED SOLUTION
Avatar of Learn
Learn
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thnx LET for giving ur precious time and great support to this post