Cell reference and find/search formula
Posted on 2011-03-09
Dear Experts, below the question
I would like to establish a user friendly "universal import" sheet as follows:
To sheet one I will import data from Outlook. The data import might differ. Sometimes I might have 5 and sometimes 35 columns. Sometimes the column names e.g. "JG-Owner" or "Asset-Short" will in A1 and let's presume D1, another time they might be in E1 or B1 and also the column names might change, depending from which Outlook database the import will come etc....
On sheet two, three etc. I want to establish ready reports which take data from the "import sheet" and depending on the data copy and pasted to the "import sheet" I will get my ready reports on the other sheets. Ready to be printed or saved....
The reports consist our of different collections of imported fields and to establish them should be as easy as possible.
I like examples more then words and therefore here a made up example:
Sheet1 has the following columns:
A1=Trees, B1=animals, C1=Cars, D1=fruits and E1=Names
I have below the column names each time a different amount of rows with data. I do not know it as long I do not copy and paste. Only after I pasted the data I of course know that there are 50 rows or 1500 rows with data
On Sheet2 I want to establish a report consisting out of:
Below I want a listing of all rows with respectively Names in A2, A3 etc. and Cars in B2, B3 etc.
In A1 I write the column name of my choice, for example "My Colleagues" and in B1 I write "Sport Cars". In A2 and B2 I would write the original column name as from the import. In this case A2 would be Names and B2 would be Cars
The already existing formula I'm now looking for and which must exist already in A3, A4, and B3, B4 etc. must show "nothing" if there is nothing in the import sheet and if the is a value, it must simply show that value.
Moreover the formula should be "able" to "find" the location of the right column on sheet1 based on the original column name stated in A2 and respectively B2 etc.
Based on that formula I could:
1. Change names if needed and have them differ from original names imported
2. I would be more flexible with the data import because I would not need the consistency with the columns in sheet1. It would not make a difference if the car column would be in A1 or Q1 as the formula in sheet2 would find the location of the car column anyway