# VLookup Question

Options
✭✭✭✭✭
edited 09/15/23

Hello,

I am looking to compare two sheets each month. I have VLookup searching for 4 individual pieces of information from the Monthly Sheet within the Master List:

Employee, Merchant, Date, Amount.

Currently, I have =VLOOKUP(Employee@row, {Master List Name}, 1, false) that looks for the Employee Name and will either provide the name or show "No Match" if it doesn't find that name within the column on the Master List. However, I need all 4 pieces of info to confirm that that row is on the Master List and therefore that charge has not been reconciled.

How do I combine the VLookups? or is there a better way?

Thanks,

Melitta

=VLOOKUP(Employee@row, {Master List Name}, 1, false)

=VLOOKUP(Merchant@row, {Master List DOS}, 1, false)

=VLOOKUP(Date@row, {Master List DOS}, 1, false)

=VLOOKUP(Amount@row, {Master List Outstanding2}, 1, false)

Tags:

• ✭✭✭✭✭✭
Options

So now you have dropped off the IF at the beginning, and the parenthesis at the end need adjusting.

=IF(COUNTIFS(..............)> 0, 1)

• ✭✭✭✭✭✭
Options

Try using a COUNTIFS to count how many rows have a match in all 4 columns. If that number is greater than zero, then you have a match.

=IF(COUNTIFS(...............)> 0, 1)

The above will check a box or flag if there is at least one row in the Master that has a match on all 4 variables.

• ✭✭✭✭✭
Options

I understand the overall gist of what you are suggesting. However, I am not quite getting it right. I setup a checkbox column and tried this formula but it comes back as Unparseable.

=IF(COUNTIFS(Employee62@row, Merchant62@row, PostedDate62@row, Amount62@row)>0,1)

Do you see where the formula is going wrong?

• ✭✭✭✭✭✭
Options

Your COUNTIFS is wrong. You need to use the proper syntax.

COUNTIFS({Range}, Criteria, {Range}, Criteria, ..............)

COUNTIFS({Master List Name}, Employee@row, {Master List DOS}, Merchant@row, ..............)

• ✭✭✭✭✭
Options

Thank you for reminding me I needed to use the proper syntax. That was very helpful.

I now have

=COUNTIFS({Master List Employee}, Employee@row, {Master List Merchant}, Merchant@row, {Master List Date}, Date@row, {Master List Amount}, Amount@row, >0, 1)

But it's giving back "Invalid Operation".

• ✭✭✭✭✭✭
Options

So now you have dropped off the IF at the beginning, and the parenthesis at the end need adjusting.

=IF(COUNTIFS(..............)> 0, 1)

• ✭✭✭✭✭
Options

I was really being daft about that.

I appreciate your help a lot.

Melitta

• ✭✭✭✭✭✭
Options

Happy to help. 👍️

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!