D
dcozzi
My current situation is as follows.
I receive a text document of specific assets and balance sheet transactions
that I must analyze. For the annual statement, I receive a current holdings
page. For the other 3 quarters, I receive only buys and sells. Each set of
transactions, when imported, do not have the same data in the same columns.
This makes using a pivot table impossible to sum what we have during the
course of the quarter.
What i want to do is be able to search for a value in Field 1, then based on
a value, it returns the value from a specific filed, say any where from field
5-15, and return that value in field 16. This way, i can have all the book
values, from all the asset classes returned in the same column to perform
analysis. I have about 10 different schedules which i use as criteria and out
of those, probably 7 different columns in the table that the book value is.
I think logically, it would be something like
If F1 (field 1) = "sch1" than F16 = F2
If F1 = "sch2" than F16 = F3
If F1 = "sch3" or "sch4" than F16 = F5
and so on.
How would I write this in a query?
I’m new to all this and syntax-ually challenged.
I receive a text document of specific assets and balance sheet transactions
that I must analyze. For the annual statement, I receive a current holdings
page. For the other 3 quarters, I receive only buys and sells. Each set of
transactions, when imported, do not have the same data in the same columns.
This makes using a pivot table impossible to sum what we have during the
course of the quarter.
What i want to do is be able to search for a value in Field 1, then based on
a value, it returns the value from a specific filed, say any where from field
5-15, and return that value in field 16. This way, i can have all the book
values, from all the asset classes returned in the same column to perform
analysis. I have about 10 different schedules which i use as criteria and out
of those, probably 7 different columns in the table that the book value is.
I think logically, it would be something like
If F1 (field 1) = "sch1" than F16 = F2
If F1 = "sch2" than F16 = F3
If F1 = "sch3" or "sch4" than F16 = F5
and so on.
How would I write this in a query?
I’m new to all this and syntax-ually challenged.