S
SantaClaus
Hi all,
I often have to lookup data based on fields which can contain both
text and numbers. However, some of the numbers are sometimes stored as
text, and some other times as numbers, in which case an error is
returned.
The only solution I found is to create two new fields, one in the
source table and one in the target one, with the formula:
=if(iserror(IndexColumn*1,IndexColumn,IndexColumn*1)
where IndexColumn is the field the lookups are based on. This works,
but is extremely annoying and cumbersome to implement when you're
performing several lookups based on different fields.
Is there a better solution?
I appreciate Excel is not a database (even though most people use it
as one, causing all sorts of trouble...) , but I would have expected
it to handle such a banal task a little better...
Thanks!
I often have to lookup data based on fields which can contain both
text and numbers. However, some of the numbers are sometimes stored as
text, and some other times as numbers, in which case an error is
returned.
The only solution I found is to create two new fields, one in the
source table and one in the target one, with the formula:
=if(iserror(IndexColumn*1,IndexColumn,IndexColumn*1)
where IndexColumn is the field the lookups are based on. This works,
but is extremely annoying and cumbersome to implement when you're
performing several lookups based on different fields.
Is there a better solution?
I appreciate Excel is not a database (even though most people use it
as one, causing all sorts of trouble...) , but I would have expected
it to handle such a banal task a little better...
Thanks!