VLookup Question
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)
Best Answer
-
So now you have dropped off the IF at the beginning, and the parenthesis at the end need adjusting.
=IF(COUNTIFS(..............)> 0, 1)
Answers
-
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.
-
Hi @Paul Newcome ,
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?
-
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, ..............)
-
Hi @Paul Newcome,
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".
-
So now you have dropped off the IF at the beginning, and the parenthesis at the end need adjusting.
=IF(COUNTIFS(..............)> 0, 1)
-
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 403 Global Discussions
- 215 Industry Talk
- 455 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!