greghealey
New Member
- Joined
- Aug 27, 2015
- Messages
- 6
I have built a spreadsheet where I export date from a database and paste into Sheet1. I then run a number of formula and graphs etc.
The issue is that the column position change, although the column header obviously doesn't. e.g. Price could be in Column A then next time I export in column B.
I can use the indirect function to search for "Price" see what column then reference in the cell formula but the issue is that when you reference multiple columns like this over multiple rows it becomes very slow workbook.
I was thinking instead to create a dynamically named range, i.e. Formulas>Define Name etc.
I used this formula but I could not get it to work, does anyone have any other ideas or work around?
=INDIRECT("'Sheet1'!"&SUBSTITUTE(ADDRESS(1,MATCH("Price",Sheet1!1:1,0),4),1,"")&"1:"&SUBSTITUTE(ADDRESS(1,MATCH("Price",Sheet1!1:1,0),4),1,"")&"10000"
i.e. if i create the above and call it "Task", then I can simply do =sum(Task) etc.
The issue is that the column position change, although the column header obviously doesn't. e.g. Price could be in Column A then next time I export in column B.
I can use the indirect function to search for "Price" see what column then reference in the cell formula but the issue is that when you reference multiple columns like this over multiple rows it becomes very slow workbook.
I was thinking instead to create a dynamically named range, i.e. Formulas>Define Name etc.
I used this formula but I could not get it to work, does anyone have any other ideas or work around?
=INDIRECT("'Sheet1'!"&SUBSTITUTE(ADDRESS(1,MATCH("Price",Sheet1!1:1,0),4),1,"")&"1:"&SUBSTITUTE(ADDRESS(1,MATCH("Price",Sheet1!1:1,0),4),1,"")&"10000"
i.e. if i create the above and call it "Task", then I can simply do =sum(Task) etc.