Just to clarify, the series formula never looks quite like this:
SERIES("Name", "X Axis Label", A10, "Order")
The series formula looks like this:
=SERIES(<name reference>,<x values reference>,<y values reference>,<series order>)
<name reference> can be empty, a string in quotes, or a fully qualified range reference*
<x values reference> can be empty, a literal array of elements in curly braces**, or a fully qualified range reference
<y values reference> can be a literal array of elements in curly braces, or a fully qualified range reference
<series order> is a whole positive number
* a fully qualified range reference must include the workbook or worksheet name and the address of a range or the name of a range:
Sheet1!$A$1
'Sheet 2'!$B$2:$B$15
Sheet3!NameWithWorksheetScope
Book4.xls!NameWithWorkbookScope
** a literal array looks like:
{"alpha","beta","gamma"} - array of text labels
{1,2,3} - array of numerical values
The references in the series formula are link references only; they may not include any calculations or functions.
-----------------
I presume from your description that you have a number of named ranges (or "Names" in Excel parlance) in your worksheet, like AbCd for A5:A10, or aBCd for G5:G10.
You can set up a master name that could take the value of other names, based for example on values tested in if statements. You would create it using:
Name: Master_Name
Refers To: =IF($A$1="A",IF($B$1="B",AB,Ab),IF($B$1="B",aB,ab))
where AB, Ab, aB, and ab are other named ranges I'm using in this example.
So if you were using the master name as your Y value definition, your series formula might look like this:
=SERIES("My Data",Sheet1!$A$2:$A$15,Sheet1!Master_Name,1)