Requirement:
The user wants to obtain a True or false statement if a customer is a repeat customer over 2 other sheets. e.g below:
Sheet 1 Column A | Sheet 2 Column A |
[email protected] | [email protected] |
[email protected] | [email protected] |
[email protected] | [email protected] |
[email protected] | [email protected] |
[email protected] | [email protected] |
Current sheet
A | B |
[email protected] | True |
[email protected] | True |
[email protected] | True |
[email protected] | False |
Solution:
=COUNTIF('Sheet1'A:A,A2)+COUNTIF('Sheet2'!A:A,A2)>0
Copied down
Obtained from the OzGrid Help Forum.
Solution provided by NBVC.
See also: Index to Excel VBA Code and Index to Excel Freebies and Lesson 1 - Excel Fundamentals and Index to how to… providing a range of solutions and Index to new resources and reference sheets
See also:
How to work with COUNTIF with multiple criteria |
How to use Index/Countif based on multiple factors including range |
How to COUNTIF using input cell as range depth |
Click here to visit our Free 24/7 Excel/VBA Help Forum where there are thousands of posts you can get information from, or you can join the Forum and post your own questions.