Share via

How to use IF function for data in two different Workbooks?

Anonymous
2012-05-30T13:15:29+00:00

I am working on two workbooks. Let's say Workbook 1 and Workbook 2.

I need a formula in Workbook 2 L8 cell. I am trying to use If function. my condition should be such that if value in Cell B8 of workbook2 matches with value in Cell C2 of Workbook 1 then the value from Cell C10 of workbook 1 should be pulled into Cell L8 of Workbook 2.

Any help would be greatly appreciated.

Thanks

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2012-05-30T13:22:38+00:00

Hi,

=if(B8=workbook1!C2,workbook1!C10,"")

I assume that if the values don't match you want a blank space if you want to enter a paragraph you can use

=if(B8=workbook1!C2,workbook1!C10,"Do not match")

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2012-05-30T14:19:28+00:00

    glad to hear that, have a great day

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2012-05-30T14:16:19+00:00

    Hi,

    =if(B8=workbook1!C2,workbook1!C10,"")

    I assume that if the values don't match you want a blank space if you want to enter a paragraph you can use

    =if(B8=workbook1!C2,workbook1!C10,"Do not match")

    Hey Thanks for the help. It worked.

    Was this answer helpful?

    0 comments No comments
  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more