MaxPower33
New Member
- Joined
- May 29, 2013
- Messages
- 12
I wondering what the best approach might be to lookup multiple comma separated values to find the max value of each string.
I can do this by first splitting out the comma delimted values and using multiple lookup formula to retrieve a value for each and then max of the results.... but i'm wondering might a macro be better since data volume can be 100k+ lines.
The comma separated values (keywords) are reported on a sheet called 'Keywords' for 3 different values
Values are reported in col C, D, E as per below example
Sheet = "Keywords" -->
<tbody>
</tbody>
Values are reported on a 2nd sheet (Lookup_Values) with a value against each combination of Geo+seg/func/occ
The lookup needs to lookup a concatination of Geo+seg/func/occ to find the corresponding value in Col D/I/N on the Lookup_Values sheet.
Sheet = "Lookup_Values" -->
<tbody>
</tbody>
So for example. When you lookup the values for the first ID (270784189), the results might report as this:
<tbody>
</tbody>
So for example, the final Max result for the first ID (270784189) would be:
<tbody>
</tbody>
These results don't necessarily have to report as comma delimted resutls as per example. Alternatively, they could be split as text to colums across 3 separate worksheets (1 for seg/occ/func). This may lend itself better to concatenting values with geo.
The max number of comma delimted values per seg/occ/func is 100.
Any suggestions much appreciated!
Thanks!!!
I can do this by first splitting out the comma delimted values and using multiple lookup formula to retrieve a value for each and then max of the results.... but i'm wondering might a macro be better since data volume can be 100k+ lines.
The comma separated values (keywords) are reported on a sheet called 'Keywords' for 3 different values
Values are reported in col C, D, E as per below example
Sheet = "Keywords" -->
<colgroup><col style="width: 21pt; mso-width-source: userset; mso-width-alt: 1024;" width="28"> <col style="width: 61pt; mso-width-source: userset; mso-width-alt: 2962;" width="81"> <col style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584;" width="98"> <col style="width: 150pt; mso-width-source: userset; mso-width-alt: 7314;" width="200"> <col style="width: 132pt; mso-width-source: userset; mso-width-alt: 6436;" width="176"> <col style="width: 142pt; mso-width-source: userset; mso-width-alt: 6912;" width="189"> <tbody> </tbody> |
<tbody>
</tbody>
Values are reported on a 2nd sheet (Lookup_Values) with a value against each combination of Geo+seg/func/occ
The lookup needs to lookup a concatination of Geo+seg/func/occ to find the corresponding value in Col D/I/N on the Lookup_Values sheet.
Sheet = "Lookup_Values" -->
<colgroup><col style="width: 26pt; mso-width-source: userset; mso-width-alt: 1280;" width="35"> <col style="width: 68pt; mso-width-source: userset; mso-width-alt: 3291;" width="90"> <col style="width: 48pt;" width="64"> <col style="width: 84pt; mso-width-source: userset; mso-width-alt: 4096;" width="112"> <col style="width: 48pt;" span="2" width="64"> <col style="width: 74pt; mso-width-source: userset; mso-width-alt: 3620;" width="99"> <col style="width: 46pt; mso-width-source: userset; mso-width-alt: 2230;" width="61"> <col style="width: 84pt; mso-width-source: userset; mso-width-alt: 4096;" width="112"> <col style="width: 48pt;" span="2" width="64"> <col style="width: 68pt; mso-width-source: userset; mso-width-alt: 3291;" width="90"> <col style="width: 41pt; mso-width-source: userset; mso-width-alt: 2011;" width="55"> <col style="width: 89pt; mso-width-source: userset; mso-width-alt: 4352;" width="119"> <col style="width: 48pt;" width="64"> <tbody> </tbody> |
<tbody>
</tbody>
So for example. When you lookup the values for the first ID (270784189), the results might report as this:
<colgroup><col style="width: 117pt; mso-width-source: userset; mso-width-alt: 5705;" width="156"> <col style="width: 137pt; mso-width-source: userset; mso-width-alt: 6656;" width="182"> <col style="width: 106pt; mso-width-source: userset; mso-width-alt: 5156;" width="141"> <tbody> </tbody> |
<tbody>
</tbody>
So for example, the final Max result for the first ID (270784189) would be:
<colgroup><col style="width: 47pt; mso-width-source: userset; mso-width-alt: 2267;" width="62"> <col style="width: 50pt; mso-width-source: userset; mso-width-alt: 2450;" width="67"> <col style="width: 45pt; mso-width-source: userset; mso-width-alt: 2194;" width="60"> <tbody> </tbody> |
<tbody>
</tbody>
These results don't necessarily have to report as comma delimted resutls as per example. Alternatively, they could be split as text to colums across 3 separate worksheets (1 for seg/occ/func). This may lend itself better to concatenting values with geo.
The max number of comma delimted values per seg/occ/func is 100.
Any suggestions much appreciated!
Thanks!!!