| View previous topic :: View next topic |
| Author |
Message |
dteslenko Newbie

Joined: 18 Feb 2008 Posts: 2
|
Posted: Tue Apr 15, 2008 1:28 am Post subject: fast searching specified column |
|
|
Hello!
I have some macro that sequentially scans column in one sheet, then for each cell sequentially scans other column in other sheet for the same value and make substitution according other cells in the same row. Thus complexity is quadratic and it performs very slow on large amounts of data.
I see there's search descriptor object in OO API to perform search. Is it faster than sequential scan of a column and can its search area be narrowed to single column? |
|
| Back to top |
|
 |
Villeroy Super User


Joined: 04 Oct 2004 Posts: 10065 Location: Germany
|
Posted: Tue Apr 15, 2008 4:06 am Post subject: |
|
|
If you insist on using a spreadsheet rather than relational database, then ordinary spreadsheet formulas (VLOOKUP, INDEX with MATCH) is by far the fastest method. _________________ Rest in peace, oooforum.org
Get help on http://forum.openoffice.org |
|
| Back to top |
|
 |
|