Formula to copy cells form one sheet to another?


I would like to know a formula that allows a cell to be copied if the cell from another sheet has a value or text and if there's a cell next to it that also has a value or text. For example:

If A1 in sheet 2 AND 12 have a text or value then copy A1 from Sheet 2 to A1 from Sheet1.

I would also want one that if there's a value from A1 in sheet 2 but nothing on B1 then to copy cell A1 from sheet 2 to C1 from sheet 1. I've attached an excel file with an example.

It looks complicated so thank you for any help given.
Kevin GAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RaminTechnical AdvisorCommented:
If A1 in sheet 2 AND 12 have a text or value .

And 12 ?    I didn't get it. something is missing,
Kevin GAuthor Commented:
Sorry it's and B1
Sarith GadaData AnalystCommented:
Does it need to be a formula? Would a macro work?
Ejgil HedegaardCommented:
See workbook.

It is array formulas, entered with Ctrl+Shift+Enter

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Kevin GAuthor Commented:
Thank you!!! This works
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.