Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Formula to define non-contiguous range?
Hi folks
Is it possible to use an Excel formula to define a non-contiguous range? I have a column of data, let's say A1: Mechanical Causes A2: blah A3: blah A4: Mechanical Causes A5: blah A6: Mechanical Causes I'd like to create a named range that uses a formula that identifies the cells in a column that have a particular value - in this case "Mechanical Causes". I suspect it's not possible, but thought I'd see if anyone else has any ideas. Thanks in advance Paul Martin Melbourne, Australia |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Formula to define non-contiguous range?
How do you intend to use this named range in a formula?
The formula would have to be able to handle non-contiguous references and there are very few functions that will do that and the ones that do only handle numbers. -- Biff Microsoft Excel MVP "Paul Martin" wrote in message ... Hi folks Is it possible to use an Excel formula to define a non-contiguous range? I have a column of data, let's say A1: Mechanical Causes A2: blah A3: blah A4: Mechanical Causes A5: blah A6: Mechanical Causes I'd like to create a named range that uses a formula that identifies the cells in a column that have a particular value - in this case "Mechanical Causes". I suspect it's not possible, but thought I'd see if anyone else has any ideas. Thanks in advance Paul Martin Melbourne, Australia |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Formula to define non-contiguous range?
Hi,
Please explain what you are trying to do. -- If this helps, please click the Yes button. Cheers, Shane Devenshire "Paul Martin" wrote: Hi folks Is it possible to use an Excel formula to define a non-contiguous range? I have a column of data, let's say A1: Mechanical Causes A2: blah A3: blah A4: Mechanical Causes A5: blah A6: Mechanical Causes I'd like to create a named range that uses a formula that identifies the cells in a column that have a particular value - in this case "Mechanical Causes". I suspect it's not possible, but thought I'd see if anyone else has any ideas. Thanks in advance Paul Martin Melbourne, Australia |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Formula to define non-contiguous range?
I guess my asking:
How do you intend to use this named range in a formula? Wasn't sufficient? -- Biff Microsoft Excel MVP "Shane Devenshire" wrote in message ... Hi, Please explain what you are trying to do. -- If this helps, please click the Yes button. Cheers, Shane Devenshire "Paul Martin" wrote: Hi folks Is it possible to use an Excel formula to define a non-contiguous range? I have a column of data, let's say A1: Mechanical Causes A2: blah A3: blah A4: Mechanical Causes A5: blah A6: Mechanical Causes I'd like to create a named range that uses a formula that identifies the cells in a column that have a particular value - in this case "Mechanical Causes". I suspect it's not possible, but thought I'd see if anyone else has any ideas. Thanks in advance Paul Martin Melbourne, Australia |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Formula to define non-contiguous range?
My intention was to use a formula in a named range, not a named range
in a formula. I think my problem is too complex for Excel formulas, so I'm working on a VBA solution which is much easier. By defining a range of non-contiguous data, I want to loop through the cells in each area, capture (both column and row) offsets which are then used elsewhere. I have this working, but in a different way to originally intended. I'm analysing the values columns, a column offset of Column A, using Set rngValues = rngCols.SpecialCells(xlCellTypeConstants, 1) This captures various Areas in the desired columns and, because of the nature of the data, any values I require are part of single-cell Areas. I loop through each Area, if the Area.Cells.Count=1, then I capture offsets of that Area for other values I'm looking for. Thanks for your responses Paul |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
Formula to define non-contiguous range?
My intention was to use a formula in a named range
You won't be able to use worksheet functions to create a contiguous range from non-contiguous references. -- Biff Microsoft Excel MVP "Paul Martin" wrote in message ... My intention was to use a formula in a named range, not a named range in a formula. I think my problem is too complex for Excel formulas, so I'm working on a VBA solution which is much easier. By defining a range of non-contiguous data, I want to loop through the cells in each area, capture (both column and row) offsets which are then used elsewhere. I have this working, but in a different way to originally intended. I'm analysing the values columns, a column offset of Column A, using Set rngValues = rngCols.SpecialCells(xlCellTypeConstants, 1) This captures various Areas in the desired columns and, because of the nature of the data, any values I require are part of single-cell Areas. I loop through each Area, if the Area.Cells.Count=1, then I capture offsets of that Area for other values I'm looking for. Thanks for your responses Paul |
#7
Posted to microsoft.public.excel.misc
|
|||
|
|||
Formula to define non-contiguous range?
You won't be able to use worksheet functions to create a contiguous range from non-contiguous references. I wasn't trying to. I was trying to define a range of non-contiguous cells. |
#8
Posted to microsoft.public.excel.misc
|
|||
|
|||
Formula to define non-contiguous range?
Well, your subject line says:
Formula to define non-contiguous range? So I was thinking you wanted to use some type of INDEX or OFFSET formula to create the range. -- Biff Microsoft Excel MVP "Paul Martin" wrote in message ... You won't be able to use worksheet functions to create a contiguous range from non-contiguous references. I wasn't trying to. I was trying to define a range of non-contiguous cells. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Join non-contiguous ranges into one range via named range? | Excel Discussion (Misc queries) | |||
Use a formula to define a range | Excel Discussion (Misc queries) | |||
How to define range of values in a formula? | Excel Worksheet Functions | |||
SUMIF non-contiguous range | Excel Worksheet Functions | |||
Define a range based on another named range | Excel Worksheet Functions |