![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Location: AKING
Posts: 1
|
I have two worksheets and I need to know how to do a vlookup to validate the one worksheet. I need the lookup to tell me that the data in column A on the second worksheet is valid if it is found in column A on the first worksheet.
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Hellas
Posts: 553
|
Hi !
I think that a simple countif function does it. No need to go for vlookup as i see it. in the next column i.e. B2 in sheet2 insert this formula and copy down as you wish =COUNTIF(Sheet1!$A$2:$A$100,A2) IF YOU GET A NUMBER > 0 THEN IT IS VALID
__________________
Best Regards Andreas
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
If you are trying to verify that the contents of cells in column A in both sheets are identical, then use the following formula in cell B1 of sheet2
=Sheet1!A1=A1 ... if the result is TRUE, they are identical use the same technique for all other cells by replicating the formula in cell B1 to other cells.
__________________
Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|