Check for multiple values in external file prior to vlookup

Dunro

New Member
Joined
Jan 12, 2011
Messages
11
Hi everyone,

I have an interesting challenge today.

I'm trying to create a template file that runs a vlookup off of another file. The problem is the other file (which I don't own) can have multiple entries.

I need a way of either flagging that there are multiple entries, OR a sum of all entries.

Template Input:
- Individual's ID (i.e. Person1)
Template output:
- Total amount owing, or a notice saying that this needs to be done manually. (i.e. $60 or "Error. ID not found or multiple values. Recommend manual lookup.")

Amounts Owing:
- Person1, $50
- Person2, $75
- Person3, $25
- Person1, $10


Unfortunately, countif doesn't work with external files (unless they are open). A pivottable could work, but I get wary of storing all the data in each instance of the template.

Are there any other options?

Thanks!
 

Forum statistics

Threads
1,226,849
Messages
6,193,330
Members
453,790
Latest member
yassinosnoo1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top