Compare 2 sheets and copy matching data
copy the values of sheet Production, Column B to column A of Count
in column B of Count put the formula
B2:
=if(countif(Agents!$B:$B,A2)0,Production!O2,"")
then drag fill down the column.
--
Regards,
Tom Ogilvy
"Sarah" wrote:
I have 2 sheets: Agents and Production. I want to compare the data in
column B of Agents to column B of Production. If the value from Agents
matches a row in Production, I want to copy the value from column O of
that row of Production to another worksheet (Count). It's been a while
since I've done any VBA programming, and I was never very good at it
to begin with. Can anyone help me?
Sarah
|