Hi. I had a sheet that had a web query imported into it which took up columns A to F. The web query varies in length upon every refresh. In columns G onwards i have lots of formulas that read the information from the query to produce results.
When i imported the web query, on some refreshes it has the ability to push my formulas down in certain columns. I'm assuming this is because the length has changed of the web query maybe? Although it can do it on the opening import of the query which i find strange.
I was told the best way around this would be to put my web query on another sheet, however this doesnt appear to have fixed my problem.
Lets say for example #Sheet1!A1 looks at #Sheet2!A1, #Sheet1!A2 looks at #Sheet2!A2 and so on. This will work fine. When the web query is imported into Sheet 2, its data goes down to cell A72. Upon another refresh though, the length will changed and now the data might go down to cell A81. However, #Sheet1!A72 will have changed its formula to look at #Sheet2!A81 and my formulas on Sheet 1 will now read as follows:
Ive updated my sheet completely to use absolute referencing, however its still doing the same. Just for a bit more information, my cells should look like this:
try =IF(Sheet2!$A$105>Sheet2!$B$5,INDIRECT("Sheet2!F"&ROW()-1),"")
where the row ()-1 is to give the reference you want
so if your formula is in row in row 20 on sheet1 you would add 85 to it to reference 105
row()+85
edit obviously if you are in row 105 on sheet 1 and want to ref 105 on sheet2 don't add anything just leave it as row()
Last edited by martindwilson; 09-21-2008 at 11:28 AM.
Perfect! Many many thanks!! I've adjusted my other formulas to follow suit and that seems to be doing the trick, the only formula i am strugglin' to convert is
=IF(Q13<=0,"",IF(ISERROR(Q13*(INDIRECT("Sheet2!A"&ROW()+20)-1)),"",Q13*(INDIRECT("Sheet2!A"&ROW()+20)-1)))
i changed the Q13<0 to Q13<=0 else youd always get back 0 and not blank
the row adjustment is 20 just to distinguish it from the -1 which you want at the end of formula
Bookmarks