Dynamic Named Range - Disparate Cells

Ken Pascoe

Is it possible to produce a dynamic named range that chooses between multiple pre-existing named ranges using a formula?

Specifically I have two ranges as follows:

  • I have a named range PriceListVIC
  • I have a second range PriceListQLD

Based on the selection by a user in a third cell (VIC or QLD) I want the named range PriceList to point to appropriate range.

I realise I can do this in VBA. However some of the places these ranges are used are in Validation Lists - and I keep having issues changing the validation list in a cell (something about formula1 being read only). A dynamic named range seems a reasonable alternative - but I can't seem to get my head around how to build one that works. I need something like

Range Name : PriceList

Refers To : =if(A1="VIC",PriceListVIC,if(A2="QLD",PriceListQLD,""))

But .. something like this that works, 'cause this doesn't ... is this possible?

Thanks Ken

Variatus

You might have a named range called 'PriceList' and specify it as

=INDIRECT(Sheet1!$A$1)

Now, depending upon whether you write "PriceListVIC" or "PriceListQLD" in Sheet1!A1 the third range 'PriceList' will refer to one of the other named ranges.

This works in validation lists as well.

Este artigo é coletado da Internet.

Se houver alguma infração, entre em [email protected] Delete.

editar em
0

deixe-me dizer algumas palavras

0comentários
loginDepois de participar da revisão

Artigos relacionados

VBA Dynamic Named Range as Listbox RowSource Error

reading named cells/range from excel with node js

Google Sheets: Find All Cells Using a Named Range

VBA - Clear Cells of Found (Dynamic) Range Up to Last Row

Excel - setting a dynamic print area for a range of cells covered by an array formula

VBA Merge of Dynamic Named Ranges results into a static range i/o keeping dynamic

VBA - using for loop in named range to add dd/mm/yyyy to increasing hh/mm cells values

Check if Named Range is equal to another Named Range

Named Range String limitations

Reference Specific Row in Named Range within another Named Range

Excel - Unicode named cell range

Adding Named Range reference in VBA

How to filter and copy a named range?

if range of cells contains string then goto

Copy the range of cells with Ctrl+A

Want a named list with non-continuous cells

For loop with dynamic range/borders

Oracle Dynamic Range

Using query, Import Range and named range to either label the named range or ignore the header

VBA excel macro for a button that selects named reference from a named range

Programmatically build a hyperlink to a named range in Sheets

Google sheet, select columns within a named range

Excel named range starting with C and a digit

Excel VBA - Referencing a named range in a formula

NamedRange referindo-se a outro Named Range

Creating named range based on value in column

SQL - dynamic sum based on dynamic date range

How to set cells range dynamically in Google Sheets?

What is the default scope of worksheets and cells and range?

TOP lista

  1. 1

    R Shiny: use HTML em funções (como textInput, checkboxGroupInput)

  2. 2

    O Chromium e o Firefox exibem as cores de maneira diferente e não sei qual deles está fazendo certo

  3. 3

    Como assinar digitalmente um documento PDF com assinatura e texto visíveis usando Java

  4. 4

    R Folheto. Dados de pontos de grupo em células para resumir muitos pontos de dados

  5. 5

    Gerenciar recurso shake de Windows Aero com barra de título personalizado

  6. 6

    Como obter dados API adequados para o aplicativo angular?

  7. 7

    UITextView não está exibindo texto longo

  8. 8

    Por que meus intervalos de confiança de 95% da minha regressão multivariada estão sendo plotados como uma linha de loess?

  9. 9

    Acessando relatório de campanhas na AdMob usando a API do Adsense

  10. 10

    Usando o plug-in Platform.js do Google

  11. 11

    Como posso modificar esse algoritmo de linha de visada para aceitar raios que passam pelos cantos?

  12. 12

    Dependência circular de diálogo personalizado

  13. 13

    Coloque uma caixa de texto HTML em uma imagem em uma posição fixa para site para desktop e celular

  14. 14

    iOS: como adicionar sombra projetada e sombra de traço no UIView?

  15. 15

    Como usar a caixa de diálogo de seleção de nomes com VBA para enviar e-mail para mais de um destinatário?

  16. 16

    Tabela CSS: barra de rolagem para a primeira coluna e largura automática para a coluna restante

  17. 17

    How to create dynamic navigation menu select from database using Codeigniter?

  18. 18

    Converter valores de linha SQL em colunas

  19. 19

    ChartJS, várias linhas no rótulo do gráfico de barras

  20. 20

    用@StyleableRes注释的getStyledAttributes。禁止警告

  21. 21

    não é possível adicionar dependência para com.google.android.gms.tasks.OnSuccessListener

quentelabel

Arquivo