1
1
I have a formula that I need to copy in many cells, but I don't know how to copy a named-range reference to another cell without changing it.
NamedRange (a table imported from database connection) would look like
Col1|Col2|Col3|Col4|
Data|Data|Data|Data|
Data|Data|Data|Data|
Formula example:
=SUMIFS(NamedRange[Col1], NamedRange[Col3],$A3...)
If I copy this, for example, in different columns, the "Col1" would change to the "Col2" and "Col3" would change for "Col4".
After filling the formula over to the right, it would give:
=SUMIFS(NamedRange[Col2], NamedRange[Col4],$A4...)
How can I copy it without changing?
The exact formula, to give a better idea... Here is the formula of 1 cell:
=SUMIFS(Table_sql.project.com_wf_tbl_Rainbow_LeaveRegister[BO Code],Table_sql.project.com_wf_tbl_Rainbow_LeaveRegister[Process Status],"completed",Table_sql.project.com_wf_tbl_Rainbow_LeaveRegister[Employee No],$A10,Table_sql.project.com_wf_tbl_Rainbow_LeaveRegister[First Day of Leave],"<="&C$9,Table_sql.project.com_wf_tbl_Rainbow_LeaveRegister[Last Day of Leave],">="&C$9)
1Are you sure? What is the exact named range name? I tried it and the named range remains the same when I copy the formula to another column? – Jerry – 2013-08-22T10:27:49.047
1Please post the exact formula you are using and post the formula that defines the named range. A range name normally does not change when copied to a different cell. Then, again, a range name can be defined with relative references, in which case, it WILL change when copied somewhere else. So, to help us troubleshoot, please provide more detail. – teylyn – 2013-08-22T10:34:33.853
It's not the "NamedRange" that changes.
In Excel Now you can use the "Column Reference" of a NamedRange to create an array inside the NamedRange so in the formula Above
NamedRange[Col1Reference] would refer to the column "Col1Reference" when I drag it, it will give "NamedRange[Col2Reference] (the 2nd column in the range) Then so on... Once at the last column if you keep dragging it will go with the first Column again. – pSyToR – 2013-08-25T03:10:35.540
Use the
$
char before the column letter, such as$A1
. You can do this withF4
. – Doktoro Reichard – 2013-08-25T03:28:31.783... I'm not talking about cell reference but with NamedRange Reference... – pSyToR – 2013-08-25T09:09:55.097
Moderators cannot do anything about this, so please don't use flags for getting attention to your question. My tip would be to edit your question with your recent progress. That way it's bumped to the front page. Other than that, there's not a lot that can be done if you do not have the reputation yet to place bounties, sorry. – slhck – 2013-09-24T13:27:16.543