Forum Discussion
Excel - VBA Help - Two Sheets matching amounts
Perhaps change
ActiveCell.FormulaR1C1 = "=COUNTIF(Sheet3!S:AC, Sheet4!CR)>0"
to
ActiveCell.Formula = "=COUNTIF(Sheet3!S:AC,CR1)=COUNTIF(CR:CR,CR1)"
- HansVogelaarMay 02, 2022MVP
Could you attach a sample workbook (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar? Thanks in advance.
- Dfuhrman8May 02, 2022Copper Contributor
HansVogelaarI have attached a sample workbook. I need to verify that all the amounts from sheet 2 are on sheet 1.
- HansVogelaarMay 02, 2022MVP
Your request in the first post was "I need to make sure if for example, $15.00 is listed 4 times on sheet 1, then on sheet 2 $15.00 is listed four times."
That suggests creating a rule for column A on Sheet1.
Now you write "I need to verify that all the amounts from sheet 2 are on sheet 1."
That suggests creating a rule for Sheet2.
Which is it?