Yes I see. I'll re-check my sheet to see where I erred. But, I need to maintain the dynamic range anyways.Hi ,
It works for me. Check the uploaded file.
Narayan
Hi, westend9876!In B5 I have formula:
="SUMPRODUCT"&"("&INDIRECT("C5")&"_data"&"/"&INDIRECT("D5")&"_data)/ROWS("&INDIRECT("C5")&"_data)"
Hi. Just to update the post I found a workaround for converting strings into formulas by defining a name for the range of strings I'd like to convert and using the EVALUATE() function. Thank you for your assistance.Hi, westend9876!
You're building a string there, you can't build formulas as strings, it'd be wonderful if Excel lets you, but it doesn't.
Regards!
Hi. Here is the formula for the dynamic range EURJPY_data you named for me:Ok Yes I see. Thanks. Works great!!!
Or is there an alternative to the next formula below that you provided to calculate the result of the named range result that can work with Indirect function:Hi. Here is the formula for the dynamic range EURJPY_data you named for me:
EURJPY!$B$2:INDEX(EURJPY!$B:$B,COUNTA(EURJPY!$B:$B))
However, every time the data in column B is deleted and re-populated with the new data the range loses the cell reference and returns:
=EURJPY!#REF!:INDEX(EURJPY!#REF!,COUNTA(EURJPY!#REF!))
Is there anyway to prevent this, maybe by manually placing the range(s) in another cell(s) and have the formula in the named range retrieve the columns from those cells?
Also, I used Indirect function in the named ranges successfully like this:
=INDIRECT("'EURJPY'!"&"$B$2"):INDEX(INDIRECT("EURJPY!"&"$B"&":$B"),COUNTA(INDIRECT("EURJPY!"&"$B"&":$B")))
But, my next calculation in the sheet based on the result of the named range uses SUMPRODUCT which does not work with Indirect. So Indirect will not be an option.
Thanks.
I included workbook file name Example-2.1.Hi ,
Regarding your first question , you must be deleting the column ; I have tried deleting rows , copying and pasting data , and I don't lose the cell references. Can you describe the exact steps that you are following due to which you get the errors ?
As far as your second question is concerned , I am not able to grasp the problem ; what are the named range definitions , and what are the formulae using them ? Can you give more information , or even better upload a workbook with these , after clearing it of data ?
Narayan