roscoe
Well-known Member
- Joined
- Jun 4, 2002
- Messages
- 1,062
- Office Version
- 365
- Platform
- Windows
- MacOS
I have a array that looks like this:
UPC, Date,Price
UPC, Date,Price
UPC, Date,Price
...
UPC, Date,Price
UPC, Date,Price
UPC, Date,Price
UPC can have duplicates (tracking prices over time)
The list could be quite long (a few thousand lines?), I'm looking for the fastest way to search the array given a UPC and date range and find pull the price from the match UPC that falls in the date range. I will also record the data to a worksheet, so if that's faster/easier than searching an array, that's an option also. I can sort the array in what ever way makes sense (I figured UPC first, then date but if here's a smarter way I'm listening)
Bottom line, I've never searched an array for a value so not even sure where to start.
Thanks in advance!
UPC, Date,Price
UPC, Date,Price
UPC, Date,Price
...
UPC, Date,Price
UPC, Date,Price
UPC, Date,Price
UPC can have duplicates (tracking prices over time)
The list could be quite long (a few thousand lines?), I'm looking for the fastest way to search the array given a UPC and date range and find pull the price from the match UPC that falls in the date range. I will also record the data to a worksheet, so if that's faster/easier than searching an array, that's an option also. I can sort the array in what ever way makes sense (I figured UPC first, then date but if here's a smarter way I'm listening)
Bottom line, I've never searched an array for a value so not even sure where to start.
Thanks in advance!