Linked spreadsheets in excel

Содержание

  • Создание связанных таблиц
    • Способ 1: прямое связывание таблиц формулой
    • Способ 2: использование связки операторов ИНДЕКС — ПОИСКПОЗ
    • Способ 3: выполнение математических операций со связанными данными
    • Способ 4: специальная вставка
    • Способ 5: связь между таблицами в нескольких книгах
  • Разрыв связи между таблицами
    • Способ 1: разрыв связи между книгами
    • Способ 2: вставка значений
  • Вопросы и ответы

Связанные таблицы в Microsoft Excel

При выполнении определенных задач в Excel иногда приходится иметь дело с несколькими таблицами, которые к тому же связаны между собой. То есть, данные из одной таблицы подтягиваются в другие и при их изменении пересчитываются значения во всех связанных табличных диапазонах.

Связанные таблицы очень удобно использовать для обработки большого объема информации. Располагать всю информацию в одной таблице, к тому же, если она не однородная, не очень удобно. С подобными объектами трудно работать и производить по ним поиск. Указанную проблему как раз призваны устранить связанные таблицы, информация между которыми распределена, но в то же время является взаимосвязанной. Связанные табличные диапазоны могут находиться не только в пределах одного листа или одной книги, но и располагаться в отдельных книгах (файлах). Последние два варианта на практике используют чаще всего, так как целью указанной технологии является как раз уйти от скопления данных, а нагромождение их на одной странице принципиально проблему не решает. Давайте узнаем, как создавать и как работать с таким видом управления данными.

Создание связанных таблиц

Прежде всего, давайте остановимся на вопросе, какими способами существует возможность создать связь между различными табличными диапазонами.

Способ 1: прямое связывание таблиц формулой

Самый простой способ связывания данных – это использование формул, в которых имеются ссылки на другие табличные диапазоны. Он называется прямым связыванием. Этот способ интуитивно понятен, так как при нем связывание выполняется практически точно так же, как создание ссылок на данные в одном табличном массиве.

Посмотрим, как на примере можно образовать связь путем прямого связывания. Имеем две таблицы на двух листах. На одной таблице производится расчет заработной платы с помощью формулы путем умножения ставки работников на единый для всех коэффициент.

Таблица заработной платы в Microsoft Excel

На втором листе расположен табличный диапазон, в котором находится перечень сотрудников с их окладами. Список сотрудников в обоих случаях представлен в одном порядке.

Таблица со ставками сотрудников в Microsoft Excel

Нужно сделать так, чтобы данные о ставках из второго листа подтягивались в соответствующие ячейки первого.

  1. На первом листе выделяем первую ячейку столбца «Ставка». Ставим в ней знак «=». Далее кликаем по ярлычку «Лист 2», который размещается в левой части интерфейса Excel над строкой состояния.
  2. Переход на второй лист в Microsoft Excel

  3. Происходит перемещения во вторую область документа. Щелкаем по первой ячейке в столбце «Ставка». Затем кликаем по кнопке Enter на клавиатуре, чтобы произвести ввод данных в ячейку, в которой ранее установили знак «равно».
  4. Связывание с ячейкой второй таблицы в Microsoft Excel

  5. Затем происходит автоматический переход на первый лист. Как видим, в соответствующую ячейку подтягивается величина ставки первого сотрудника из второй таблицы. Установив курсор на ячейку, содержащую ставку, видим, что для вывода данных на экран применяется обычная формула. Но перед координатами ячейки, откуда выводятся данные, стоит выражение «Лист2!», которое указывает наименование области документа, где они расположены. Общая формула в нашем случае выглядит так:

    =Лист2!B2

  6. Две ячейки двух таблиц связаны в Microsoft Excel

  7. Теперь нужно перенести данные о ставках всех остальных работников предприятия. Конечно, это можно сделать тем же путем, которым мы выполнили поставленную задачу для первого работника, но учитывая, что оба списка сотрудников расположены в одинаковом порядке, задачу можно существенно упростить и ускорить её решение. Это можно сделать, просто скопировав формулу на диапазон ниже. Благодаря тому, что ссылки в Excel по умолчанию являются относительными, при их копировании происходит сдвиг значений, что нам и нужно. Саму процедуру копирования можно произвести с помощью маркера заполнения.

    Итак, ставим курсор в нижнюю правую область элемента с формулой. После этого курсор должен преобразоваться в маркер заполнения в виде черного крестика. Выполняем зажим левой кнопки мыши и тянем курсор до самого низа столбца.

  8. Маркер заполнения в Microsoft Excel

  9. Все данные из аналогичного столбца на Листе 2 были подтянуты в таблицу на Листе 1. При изменении данных на Листе 2 они автоматически будут изменяться и на первом.

Все данные столбца второй таблицы перенесены в первую в Microsoft Excel

Lumpics.ru

Способ 2: использование связки операторов ИНДЕКС — ПОИСКПОЗ

Но что делать, если перечень сотрудников в табличных массивах расположен не в одинаковом порядке? В этом случае, как говорилось ранее, одним из вариантов является установка связи между каждой из тех ячеек, которые следует связать, вручную. Но это подойдет разве что для небольших таблиц. Для массивных диапазонов подобный вариант в лучшем случае отнимет очень много времени на реализацию, а в худшем – на практике вообще будет неосуществим. Но решить данную проблему можно при помощи связки операторов ИНДЕКСПОИСКПОЗ. Посмотрим, как это можно осуществить, связав данные в табличных диапазонах, о которых шел разговор в предыдущем способе.

  1. Выделяем первый элемент столбца «Ставка». Переходим в Мастер функций, кликнув по пиктограмме «Вставить функцию».
  2. Вставить функцию в Microsoft Excel

  3. В Мастере функций в группе «Ссылки и массивы» находим и выделяем наименование «ИНДЕКС».
  4. Переход в окно аргуметов функции ИНДЕКС в Microsoft Excel

  5. Данный оператор имеет две формы: форму для работы с массивами и ссылочную. В нашем случае требуется первый вариант, поэтому в следующем окошке выбора формы, которое откроется, выбираем именно его и жмем на кнопку «OK».
  6. Выбор формы функции ИНДЕКС в Microsoft Excel

  7. Выполнен запуск окошка аргументов оператора ИНДЕКС. Задача указанной функции — вывод значения, находящегося в выбранном диапазоне в строке с указанным номером. Общая формула оператора ИНДЕКС такова:

    =ИНДЕКС(массив;номер_строки;[номер_столбца])

    «Массив» — аргумент, содержащий адрес диапазона, из которого мы будем извлекать информацию по номеру указанной строки.

    «Номер строки» — аргумент, являющийся номером этой самой строчки. При этом важно знать, что номер строки следует указывать не относительно всего документа, а только относительно выделенного массива.

    «Номер столбца» — аргумент, носящий необязательный характер. Для решения конкретно нашей задачи мы его использовать не будем, а поэтому описывать его суть отдельно не нужно.

    Ставим курсор в поле «Массив». После этого переходим на Лист 2 и, зажав левую кнопку мыши, выделяем все содержимое столбца «Ставка».

  8. Аргумент Массив в окне аргументов функции ИНДЕКС в Microsoft Excel

  9. После того, как координаты отобразились в окошке оператора, ставим курсор в поле «Номер строки». Данный аргумент мы будем выводить с помощью оператора ПОИСКПОЗ. Поэтому кликаем по треугольнику, который расположен слева от строки функций. Открывается перечень недавно использованных операторов. Если вы среди них найдете наименование «ПОИСКПОЗ», то можете кликать по нему. В обратном случае кликайте по самому последнему пункту перечня – «Другие функции…».
  10. Окно аргументов функции ИНДЕКС в Microsoft Excel

  11. Запускается стандартное окно Мастера функций. Переходим в нем в ту же самую группу «Ссылки и массивы». На этот раз в перечне выбираем пункт «ПОИСКПОЗ». Выполняем щелчок по кнопке «OK».
  12. Переход в окно аргуметов функции ПОИСКПОЗ в Microsoft Excel

  13. Производится активация окошка аргументов оператора ПОИСКПОЗ. Указанная функция предназначена для того, чтобы выводить номер значения в определенном массиве по его наименованию. Именно благодаря данной возможности мы вычислим номер строки определенного значения для функции ИНДЕКС. Синтаксис ПОИСКПОЗ представлен так:

    =ПОИСКПОЗ(искомое_значение;просматриваемый_массив;[тип_сопоставления])

    «Искомое значение» — аргумент, содержащий наименование или адрес ячейки стороннего диапазона, в которой оно находится. Именно позицию данного наименования в целевом диапазоне и следует вычислить. В нашем случае в роли первого аргумента будут выступать ссылки на ячейки на Листе 1, в которых расположены имена сотрудников.

    «Просматриваемый массив» — аргумент, представляющий собой ссылку на массив, в котором выполняется поиск указанного значения для определения его позиции. У нас эту роль будет исполнять адрес столбца «Имя» на Листе 2.

    «Тип сопоставления» — аргумент, являющийся необязательным, но, в отличие от предыдущего оператора, этот необязательный аргумент нам будет нужен. Он указывает на то, как будет сопоставлять оператор искомое значение с массивом. Этот аргумент может иметь одно из трех значений: -1; 0; 1. Для неупорядоченных массивов следует выбрать вариант «0». Именно данный вариант подойдет для нашего случая.

    Итак, приступим к заполнению полей окна аргументов. Ставим курсор в поле «Искомое значение», кликаем по первой ячейке столбца «Имя» на Листе 1.

  14. Аргумент Искомое значение в окне аргументов функции ПОИСКПОЗ в Microsoft Excel

  15. После того, как координаты отобразились, устанавливаем курсор в поле «Просматриваемый массив» и переходим по ярлыку «Лист 2», который размещен внизу окна Excel над строкой состояния. Зажимаем левую кнопку мыши и выделяем курсором все ячейки столбца «Имя».
  16. Аргумент Просматриваемый массив в окне аргументов функции ПОИСКПОЗ в Microsoft Excel

  17. После того, как их координаты отобразились в поле «Просматриваемый массив», переходим к полю «Тип сопоставления» и с клавиатуры устанавливаем там число «0». После этого опять возвращаемся к полю «Просматриваемый массив». Дело в том, что мы будем выполнять копирование формулы, как мы это делали в предыдущем способе. Будет происходить смещение адресов, но вот координаты просматриваемого массива нам нужно закрепить. Он не должен смещаться. Выделяем координаты курсором и жмем на функциональную клавишу F4. Как видим, перед координатами появился знак доллара, что означает то, что ссылка из относительной превратилась в абсолютную. Затем жмем на кнопку «OK».
  18. Окно аргуметов функции ПОИСКПОЗ в Microsoft Excel

  19. Результат выведен на экран в первую ячейку столбца «Ставка». Но перед тем, как производить копирование, нам нужно закрепить ещё одну область, а именно первый аргумент функции ИНДЕКС. Для этого выделяем элемент колонки, который содержит формулу, и перемещаемся в строку формул. Выделяем первый аргумент оператора ИНДЕКС (B2:B7) и щелкаем по кнопке F4. Как видим, знак доллара появился около выбранных координат. Щелкаем по клавише Enter. В целом формула приняла следующий вид:

    =ИНДЕКС(Лист2!$B$2:$B$7;ПОИСКПОЗ(Лист1!A4;Лист2!$A$2:$A$7;0))

  20. Преобразование ссылки в абсолютную в Microsoft Excel

  21. Теперь можно произвести копирование с помощью маркера заполнения. Вызываем его тем же способом, о котором мы говорили ранее, и протягиваем до конца табличного диапазона.
  22. Маркер заполнения в программе Microsoft Excel

  23. Как видим, несмотря на то, что порядок строк у двух связанных таблиц не совпадает, тем не менее, все значения подтягиваются соответственно фамилиям работников. Этого удалось достичь благодаря применению сочетания операторов ИНДЕКСПОИСКПОЗ.

Значения связаны благодаря комбинации функций ИНДЕКС-ПОИСКПОЗ в Microsoft Excel

Читайте также:
Функция ИНДЕКС в Экселе
Функция ПОИСКПОЗ в Экселе

Способ 3: выполнение математических операций со связанными данными

Прямое связывание данных хорошо ещё тем, что позволяет не только выводить в одну из таблиц значения, которые отображаются в других табличных диапазонах, но и производить с ними различные математические операции (сложение, деление, вычитание, умножение и т.д.).

Посмотрим, как это осуществляется на практике. Сделаем так, что на Листе 3 будут выводиться общие данные заработной платы по предприятию без разбивки по сотрудникам. Для этого ставки сотрудников будут подтягиваться из Листа 2, суммироваться (при помощи функции СУММ) и умножаться на коэффициент с помощью формулы.

  1. Выделяем ячейку, где будет выводиться итог расчета заработной платы на Листе 3. Производим клик по кнопке «Вставить функцию».
  2. Переход в Мастер функций в Microsoft Excel

  3. Следует запуск окна Мастера функций. Переходим в группу «Математические» и выбираем там наименование «СУММ». Далее жмем по кнопке «OK».
  4. Переход в окно аргуметов функции СУММ в Microsoft Excel

  5. Производится перемещение в окно аргументов функции СУММ, которая предназначена для расчета суммы выбранных чисел. Она имеет нижеуказанный синтаксис:

    =СУММ(число1;число2;…)

    Поля в окне соответствуют аргументам указанной функции. Хотя их число может достигать 255 штук, но для нашей цели достаточно будет всего одного. Ставим курсор в поле «Число1». Кликаем по ярлыку «Лист 2» над строкой состояния.

  6. Окно аргметов функции СУММ в Microsoft Excel

  7. После того, как мы переместились в нужный раздел книги, выделяем столбец, который следует просуммировать. Делаем это курсором, зажав левую кнопку мыши. Как видим, координаты выделенной области тут же отображаются в поле окна аргументов. Затем щелкаем по кнопке «OK».
  8. Суммирование данных с помощью функции СУММ в Microsoft Excel

  9. После этого мы автоматически перемещаемся на Лист 1. Как видим, общая сумма размера ставок работников уже отображается в соответствующем элементе.
  10. Общая сумма ставок работников в Microsoft Excel

  11. Но это ещё не все. Как мы помним, зарплата вычисляется путем умножения величины ставки на коэффициент. Поэтому снова выделяем ячейку, в которой находится суммированная величина. После этого переходим к строке формул. Дописываем к имеющейся в ней формуле знак умножения (*), а затем щелкаем по элементу, в котором располагается показатель коэффициента. Для выполнения вычисления щелкаем по клавише Enter на клавиатуре. Как видим, программа рассчитала общую заработную плату по предприятию.
  12. Общая зарплата по предприятию в Microsoft Excel

  13. Возвращаемся на Лист 2 и изменяем размер ставки любого работника.
  14. Изменение ставки работника в Microsoft Excel

  15. После этого опять перемещаемся на страницу с общей суммой. Как видим, из-за изменений в связанной таблице результат общей заработной платы был автоматически пересчитан.

Сумма заработной платы по предприятию пересчитана в Microsoft Excel

Способ 4: специальная вставка

Связать табличные массивы в Excel можно также при помощи специальной вставки.

  1. Выделяем значения, которые нужно будет «затянуть» в другую таблицу. В нашем случае это диапазон столбца «Ставка» на Листе 2. Кликаем по выделенному фрагменту правой кнопкой мыши. В открывшемся списке выбираем пункт «Копировать». Альтернативной комбинацией является сочетание клавиш Ctrl+C. После этого перемещаемся на Лист 1.
  2. Копирование в Microsoft Excel

  3. Переместившись в нужную нам область книги, выделяем ячейки, в которые нужно будет подтягивать значения. В нашем случае это столбец «Ставка». Щелкаем по выделенному фрагменту правой кнопкой мыши. В контекстном меню в блоке инструментов «Параметры вставки» щелкаем по пиктограмме «Вставить связь».
    Вставка связи через контекстное меню в Microsoft Excel

    Существует также альтернативный вариант. Он, кстати, является единственным для более старых версий Excel. В контекстном меню наводим курсор на пункт «Специальная вставка». В открывшемся дополнительном меню выбираем позицию с одноименным названием.

  4. Переход в специальную вставку в Microsoft Excel

  5. После этого открывается окно специальной вставки. Жмем на кнопку «Вставить связь» в нижнем левом углу ячейки.
  6. Окно специальной вставки в Microsoft Excel

  7. Какой бы вариант вы не выбрали, значения из одного табличного массива будут вставлены в другой. При изменении данных в исходнике они также автоматически будут изменяться и во вставленном диапазоне.

Значения вставлены с помощью специальной вставки в Microsoft Excel

Урок: Специальная вставка в Экселе

Способ 5: связь между таблицами в нескольких книгах

Кроме того, можно организовать связь между табличными областями в разных книгах. При этом используется инструмент специальной вставки. Действия будут абсолютно аналогичными тем, которые мы рассматривали в предыдущем способе, за исключением того, что производить навигацию во время внесений формул придется не между областями одной книги, а между файлами. Естественно, что все связанные книги при этом должны быть открыты.

  1. Выделяем диапазон данных, который нужно перенести в другую книгу. Щелкаем по нему правой кнопкой мыши и выбираем в открывшемся меню позицию «Копировать».
  2. Копирование данных из книги в Microsoft Excel

  3. Затем перемещаемся к той книге, в которую эти данные нужно будет вставить. Выделяем нужный диапазон. Кликаем правой кнопкой мыши. В контекстном меню в группе «Параметры вставки» выбираем пункт «Вставить связь».
  4. Вставка связи из другой книги в Microsoft Excel

  5. После этого значения будут вставлены. При изменении данных в исходной книге табличный массив из рабочей книги будет их подтягивать автоматически. Причем совсем не обязательно, чтобы для этого были открыты обе книги. Достаточно открыть одну только рабочую книгу, и она автоматически подтянет данные из закрытого связанного документа, если в нем ранее были проведены изменения.

Связь из другой книги вставлена в Microsoft Excel

Но нужно отметить, что в этом случае вставка будет произведена в виде неизменяемого массива. При попытке изменить любую ячейку со вставленными данными будет всплывать сообщение, информирующее о невозможности сделать это.

Информационное сообщение в Microsoft Excel

Изменения в таком массиве, связанном с другой книгой, можно произвести только разорвав связь.

Разрыв связи между таблицами

Иногда требуется разорвать связь между табличными диапазонами. Причиной этого может быть, как вышеописанный случай, когда требуется изменить массив, вставленный из другой книги, так и просто нежелание пользователя, чтобы данные в одной таблице автоматически обновлялись из другой.

Способ 1: разрыв связи между книгами

Разорвать связь между книгами во всех ячейках можно, выполнив фактически одну операцию. При этом данные в ячейках останутся, но они уже будут представлять собой статические не обновляемые значения, которые никак не зависят от других документов.

  1. В книге, в которой подтягиваются значения из других файлов, переходим во вкладку «Данные». Щелкаем по значку «Изменить связи», который расположен на ленте в блоке инструментов «Подключения». Нужно отметить, что если текущая книга не содержит связей с другими файлами, то эта кнопка является неактивной.
  2. Переход к изменениям связей в Microsoft Excel

  3. Запускается окно изменения связей. Выбираем из списка связанных книг (если их несколько) тот файл, с которым хотим разорвать связь. Щелкаем по кнопке «Разорвать связь».
  4. Окно изменения связей в Microsoft Excel

  5. Открывается информационное окошко, в котором находится предупреждение о последствиях дальнейших действий. Если вы уверены в том, что собираетесь делать, то жмите на кнопку «Разорвать связи».
  6. Информационное предупреждение о разрыве связи в Microsoft Excel

  7. После этого все ссылки на указанный файл в текущем документе будут заменены на статические значения.

Ссылки заменены на статические значения в Microsoft Excel

Способ 2: вставка значений

Но вышеперечисленный способ подходит только в том случае, если нужно полностью разорвать все связи между двумя книгами. Что же делать, если требуется разъединить связанные таблицы, находящиеся в пределах одного файла? Сделать это можно, скопировав данные, а затем вставив на то же место, как значения. Кстати, этим же способом можно проводить разрыв связи между отдельными диапазонами данных различных книг без разрыва общей связи между файлами. Посмотрим, как этот метод работает на практике.

  1. Выделяем диапазон, в котором желаем удалить связь с другой таблицей. Щелкаем по нему правой кнопкой мыши. В раскрывшемся меню выбираем пункт «Копировать». Вместо указанных действий можно набрать альтернативную комбинацию горячих клавиш Ctrl+C.
  2. Копирование в программе Microsoft Excel

  3. Далее, не снимая выделения с того же фрагмента, опять кликаем по нему правой кнопкой мыши. На этот раз в списке действий щелкаем по иконке «Значения», которая размещена в группе инструментов «Параметры вставки».
  4. Вставка как значения в Microsoft Excel

  5. После этого все ссылки в выделенном диапазоне будут заменены на статические значения.

Значения вставлены в Microsoft Excel

Как видим, в Excel имеются способы и инструменты, чтобы связать несколько таблиц между собой. При этом, табличные данные могут находиться на других листах и даже в разных книгах. При необходимости эту связь можно легко разорвать.


Download Article


Download Article

This wikiHow teaches you how to link data between multiple worksheets in a Microsoft Excel workbook. Linking will dynamically pull data from a sheet into another, and update the data in your destination sheet whenever you change the contents of a cell in your source sheet.

Steps

  1. Image titled Link Sheets in Excel Step 1

    1

    Open a Microsoft Excel workbook. The Excel icon looks like a green-and-white «X» icon.

  2. Image titled Link Sheets in Excel Step 2

    2

    Click your destination sheet from the sheet tabs. You will see a list of all your worksheets at the bottom of Excel. Click on the sheet you want to link to another worksheet.

    Advertisement

  3. Image titled Link Sheets in Excel Step 3

    3

    Click an empty cell in your destination sheet. This will be your destination cell. When you link it to another sheet, the data in this cell will be automatically synchronized and updated whenever the data in your source cell changes.

  4. Image titled Link Sheets in Excel Step 4

    4

    Type = in the cell. It will start a formula in your destination cell.

  5. Image titled Link Sheets in Excel Step 5

    5

    Click your source sheet from the sheet tabs. Find the sheet where you want to pull data from, and click on the tab to open the worksheet.

  6. Image titled Link Sheets in Excel Step 6

    6

    Check the formula bar. The formula bar shows the value of your destination cell at the top of your workbook. When you switch to your source sheet, it should show the name of your current worksheet, following an equals sign, and followed by an exclamation mark.

    • Alternatively, you can manually write this formula in the formula bar. It should look like =<SheetName>!, where «<SheetName>» is replaced with the name of your source sheet.
  7. Image titled Link Sheets in Excel Step 7

    7

    Click a cell in your source sheet. This will be your source cell. It could be an empty cell, or a cell with some data in it. When you link sheets, your destination cell will be automatically updated with the data in your source cell.

    • For example, if you’re pulling data from cell D12 in Sheet1, the formula should look like =Sheet1!D12.
  8. Image titled Link Sheets in Excel Step 8

    8

    Click Enter on your keyboard. This will finalize the formula, and switch back to your destination sheet. Your destination cell is now linked to your source cell, and dynamically pulls data from it. Whenever you edit the data in your source cell, your destination cell will also be updated.

  9. Image titled Link Sheets in Excel Step 9

    9

    Click your destination cell. This will highlight the cell.

  10. Image titled Link Sheets in Excel Step 10

    10

    Click and drag the square icon in the lower-right corner of your destination cell. This will expand the range of linked cells between your source and destination sheets. Expanding your initial destination cell will link the adjacent cells from your source sheet.

    • You can drag and expand the range of linked cells in any direction. This could include the entire worksheet, or only parts of it.
  11. Advertisement

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

Thanks for submitting a tip for review!

About This Article

Article SummaryX

1. Open Excel.
2. Click your destination cell.
3. Type «=«.
4. Click another sheet.
5. Click your source cell.
6. Press Enter on your keyboard.

Did this summary help you?

Thanks to all authors for creating a page that has been read 335,103 times.

Is this article up to date?

Excel files are also called workbooks for a very good reason. They can have multiple sheets, or worksheets, to help you organize your data. When working with multiple sheets, you may need to have links between them so that values ​​in one sheet can be used in another.

In this article, we’ll explain how to link data between worksheets in Excel. You’ll see several examples on linking sheets in the same workbook as well as across different ones.

Why link data between sheets in Excel?

Linking sheets in Excel can be a great way to organize your data and keep them consistent across different worksheets. You may want to do this for different purposes, for example:

  • You have a workbook containing data split by month, by state, or by salesperson, and you want a summary in one of the sheets.
  • You want to create lists using links from different sheets in Excel.
  • You want to collect data from multiple sheets and combine them into one to create a master sheet. Or, you may want to link data from a master sheet so that your data in other sheets are always up-to-date.
  • Your data is growing and becoming too voluminous. As a result, you split it into different workbooks to be managed by different people. There can be times when you need to write formulas to get data out of these files.

Creating links between sheets is pretty easy to do. Besides, the main benefit is that whenever your data in the source sheet changes, the data in the destination sheet will be automatically updated as well.

Problems with linking large data between worksheets in the same or different Excel workbooks

Indeed, using multiple worksheets can certainly make your data in one workbook easier to manage. However, linking large amounts of data between worksheets could decrease the performance of your Excel workbook. Avoid inter-workbook links unless it’s absolutely necessary because they can be slow, easily broken, and not always easy to find and fix. 

We suggest you try another solution 👇

When getting large data from different worksheets, especially from different workbooks, we recommend that you import instead of linking. Linking will slow down your Excel file, while an optimized performance can be maintained if you simply import data from Excel to Excel. Use a tool such as Coupler.io to refresh your data on the schedule you want to keep your data up-to-date.

Figure 00.1. Link sheets in Excel using Coupler.io

To start using Coupler.io, sign up for a free account and create your first importer. A wizard will walk you through setting up the source, destination, and auto-refresh schedule for your importer. If you’re importing from Excel to Excel, choose Microsoft Excel as the source and destination of your importer, as follows:

#1. Set up a source

Select Microsoft Excel as the source that contains your data. You’ll need to connect to your Microsoft account and select the workbook and worksheet(s) you want to import. If you want, you can import only a selected range from your worksheets, e.g., range B3:G10 only.

Figure 00.2. Coupler.io data source list

Notice that with Coupler.io, you can also import data from different sources such as HubSpot, Jira, QuickBooks, and more. Check out the complete list of Coupler.io integrations with Excel.

#2. Set up a destination

For the destination, select Microsoft Excel. No need to connect again if you’re importing to the same Microsoft account. After that, choose the workbook and worksheet where you want your data imported.

Figure 00.3. Coupler.io destination list

#3. Schedule

You can keep your data up-to-date by setting up an automatic data refresh on the schedule you want.

Figure 00.4. Coupler.io set up a schedule

Finally, click Save and Run to run your first importer. The import process may take several seconds or minutes to complete.

How to link two Excel sheets in the same workbook

Now, let’s see how to link two sheets in the same Excel workbook, including some tips and examples.

How to link sheets in Excel with a formula

To refer to a cell or range in another worksheet in the same workbook, type the name of the source worksheet followed by an exclamation mark (!) before the range address—see the following examples:

  • To reference a single cell A1 in Sheet2:
=Sheet2!A1
  • To reference a single cell A1 but the sheet name contains spaces:
='Sheet 2'!A1
  • To reference a range of cells A1 to C10 in Sheet2:
=Sheet2!A1:C10
  • To reference column A in Sheet2:
=Sheet2!A:A
  • To reference multiple columns A to E in Sheet2:
=Sheet2!A:E
  • To reference row 5 in Sheet2:
=Sheet2!5:5
  • To reference multiple rows 1 to 5 in Sheet2:
=Sheet2!1:5
  • To reference a worksheet-level named range Data in Sheet2:
=Sheet2!Data
  • To reference a workbook-level named range Data in Sheet2:
=Data

You can always manually type the linking formula in a destination cell. However, doing that is not recommended because it typically leads to mistakes. So, instead of typing the formula manually, check the tips below.

Tip 1: Create a link from the destination sheet

With the following spreadsheet, suppose you want to show the total for New York in the Summary sheet. In cell B2 of the Summary sheet, you want to display the values of cell F5 from the New York sheet.

Figure 01. The Summary and New York worksheets

To do that, follow the steps below:

  1. Begin by opening the destination sheet (Summary).
  2. Type = (equal sign) in the destination cell (B2). 

Figure 02. Typing the equal sign in the destination cell

  1. Switch to source sheet (New York).
  2. Select the cell you want to link (F5), then press Enter.

Figure 03. Selecting pressing Enter in the source cell

As a result, when you click on the destination cell, you’ll see the following formula: 

='New York'!F5

Figure 04. The linkage formula the sheet name is enclosed with single quotes

Notice that Excel automatically encloses the sheet name with single quotation marks because there is a space character in the sheet name. 

Tip 2: Use Copy and Paste Link

This second tip also allows you to link to another sheet without manually typing the linking formula. Unlike the first method that begins from the destination sheet, this method starts from the source sheet.

This time, suppose you want to show the total for Florida in the Summary sheet. In cell B3 of the Summary sheet, you want to display the values of cell F5 from the Florida sheet.

Figure 05. The Summary and Florida sheets

Follow the steps below:

  1. Begin by opening the source sheet (Florida).
  2. Right-click on the cell you want to link (F5), then select Copy.

Figure 06. Copy the source cell

  1. Switch to the destination sheet (Summary).
  2. In the destination cell (B3), right-click and select Paste Link

Figure 07. Paste Link

As a result, when you click on B3, you’ll see the following formula: 

=Florida!$F$5

Figure 08. The linkage formula with an absolute reference

Notice that by default, this method returns an absolute reference. If you want to change it to a relative reference, simply highlight the formula and press F4 multiple times to remove the dollar signs.

How to link numbers from different sheets in Excel using the INDIRECT function

In the previous example, notice that the New York and Florida sheets have the same layout. In cases like this, you can also use the INDIRECT function in the formula to get the totals. 

Now, let’s see the following spreadsheet with a Summary sheet and three other sheets with a similar layout. Assume you want to link the total in cell F5 from the three sheets and put them in the Summary sheet using the INDIRECT function.

Figure 09. An example of how to link numbers from different sheets in Excel

To do that, follow the steps below:

  1. Link the total for New York only:
='New York'!F5

Figure 10. Linking the total for New York

  1. Replace the formula using the INDIRECT function below. Notice that we concatenate A2 with single quotes because its value contains a space character.
=INDIRECT("'"&A2&"'!F5")

Figure 11. Using the INDIRECT function to link sheets in Excel

  1. Drag the formula down to A4 to apply it to the other states.

Figure 12. Applying the INDIRECT formula for other states as well

How to link data in a range of cells between sheets in Excel

With the following spreadsheet, suppose you want to link the retail sales data for Florida and put them in the Retail Summary sheet, as the following screenshot shows:

Figure 13. How to link a range of cells from another sheet example

The range to link is in B3:E3 of the second sheet. To display it in the destination sheet, use the following formula in a cell:

=Florida!B3:E3

Figure 14. How to link a range of cells from another sheet result

How to link columns from different sheets to another sheet in Excel

With the following spreadsheet, suppose you want to link the entire Column B from the Product sheet to Sheet1. To do that, you can use the following formula:

=Product!B:B

Figure 15. Link a column to another sheet example

However, if you notice, the blank cells are showing zeros. If you want to see empty cells when there is nothing in the original sheet, you can change the formula to the one below:

=IF(LEN(Product!B:B)>0, Product!B:B,"")

Figure 16. Link a column to another sheet result

How to link to a defined name in other sheets in Excel

For most people, words are easier to remember than numbers or codes. For this reason, Excel allows you to name an individual cell or range of cells. Then, you can use these names when referring to data in another sheet instead of typing the range address.

With the following worksheet, let’s create a defined name for range B2:B5 and name it Q1_Sales

Figure 17. An example case of creating a defined name in Excel

First, select the range of cells to include (B2:B5). Then, in the Name Box, type Q1_Sales and press Enter — and Done!

Figure 18. Giving a name for a range of cells

By default, Excel creates the name at the workbook level. To reference the defined name in another worksheet, just type the following formula into any cell.

=Q1_Sales

Figure 19. An example of linking to a defined name from another worksheet

You can also use the defined name with an Excel function in a formula. For example, the following formula calculates the average of Q1_Sales:

=AVERAGE(Q1_Sales)

Figure 20. An example of referencing a defined name in a calculation

How to link lists in different sheets in Excel

With the following spreadsheet, suppose you want to create a dropdown list in Sheet1 that contains product category data from Sheet2. This will allow you to select the Category in Column D using a dropdown instead of typing it manually.

Figure 21. Link lists in different sheets in Excel example

Follow these steps:

  1. In Sheet1, select the range you want to apply to the dropdown list, which is D2:D4.
  2. Click Data > Data Validation.
  3. In the “Data Validation” dialog box, enter the following details, then click OK.
  • Allow : List
  • Source : =Sheet2!$A$2:$A$5 

Figure 22. The Data Validation dialog box

We enter a link reference to product category data in Sheet2, which is in range A2:A5. As a result, now you select the product category in Sheet1 using a dropdown, as shown below:

Figure 23. Link lists in different sheets in Excel result

How to link to hidden sheets in Excel

A sheet can be hidden for different reasons. For example, you may want to hide sheets that are no longer frequently being used by other users. 

To create a link to a hidden sheet, simply unhide it first, create the link, then hide it again if necessary. 

You can actually refer to hidden sheets without unhiding them first, as long as you know the name of the sheets and the range you want to link from these sheets. However, most of the time, you’ll need to unhide them first to see the data you want to link so that you don’t accidentally refer to the wrong range of cells when creating the links.

There are two different types of hidden sheets in Excel: hidden and very hidden. While unhiding a hidden sheet is very easy, you will need to open the Visual Basic Editor (VBE) to unhide a very hidden sheet. 

To link to a hidden sheet in Excel

  1. Unhide the sheet by right-clicking on any visible sheet, then select Unhide.

Figure 24. How to unhide a hidden sheet

  1. In the “Unhide” dialog box that appears, select the sheet you want to unhide, then click OK.

Figure 25. Selecting a hidden sheet to unhide

  1. Use a linking formula to link the data you want to show in another sheet.
    For example, the following formula in the Summary sheet shows the range A1:E1 from the sheet we just made visible.
=HiddenSheet!A1:E1

Figure 26. A linking formula to show data from the HiddenSheet sheet

  1. If you want, hide the sheet again by clicking on the sheet tab, then select Hide

Figure 27. How to hide a sheet in Excel

To link to a very hidden sheet in Excel

  1. Open the VBE by pressing Alt+F11.
  2. Press F4 or click View > Properties Window to open the Properties window under the Project Explorer if it’s not already open.
  3. In Project Explorer, select the very hidden sheet you want to unhide. Then, set its Visible property to -1 - xlSheetVisible in the Properties window.

Figure 28. How to unhide a very hidden sheet

  1. Use a linking formula to link the data you want to show in another sheet. For example, the following formula in the Summary sheet shows the range A1:E1 from the very hidden sheet we just made visible.
=VeryHiddenSheet!A1:E1

Figure 29. A linking formula to show data from the VeryHiddenSheet sheet

  1. If you want, change the sheet’s Visible property back to 2 - xlSheetVeryHidden in the Properties window to make it a very hidden sheet again.

How to link sheets in Excel to a master sheet

With the following spreadsheet, suppose you want to link data from two worksheets into one.

Figure 30. Link sheets to a master sheet in Excel example

Notice that it’s like combining two ranges, which are Rose!A1:C6 and Sunflower!A1:C6

However, combining ranges in Excel using a formula is a bit complex. An easier way to do this is using Power Query, as explained in the steps below:

  1. In the Rose sheet, select the range A1:C6. 
  2. Then, on the Data tab in the Get & Transform Data section, click From Table/Range.
  3. In the “Create Table” dialog box, ensure that the My table has headers option checked.

Figure 31. Creating a table

  1. Click OK — this will bring you to the Power Query editor.
  2. In the Query Settings, give your query a descriptive name, e.g., Roses.

Figure 32. Renaming the table

  1. Click the Home tab, then click Close & Load > Close & Load To…
  2. In the “Import Data” dialog box, select Only Create Connection, then press OK.

Figure 33. The Import Data dialog box

  1. Repeat steps 1-7 for the Sunflower data. But for the fifth step, let’s rename the query as Sunflowers.
  2. Re-launch the Power Query editor by clicking the Data tab, then click Get Data > Launch Power Query Editor…
  3. Select any query, then click Append Queries > Append Queries as New to keep the existing queries unchanged.

Figure 34. The menu to append queries as new

  1. In the Append window, select the other table as the second table, then click OK.

Figure 35. Appending two tables

  1.  Make sure to select the newly created query. Then, on the Home tab, click Close & Load > Close & Load To…
  2. In the “Import Data” dialog box, load the combined data to Sheet1!A1, then click OK.

Figure 36. Loading the combined tables to another worksheet

To see the result, click Sheet1. You’ll find the combined data as shown in the following screenshot: 

Figure 37. Link sheets in Excel to a master sheet final result

When the source data from the other sheets change, you won’t see the new changes right away. Using this method, you need to click the Refresh All button in the Data tab to see the latest data.

How to link two Excel sheets in different workbooks

To link to a worksheet in another workbook, you can do it whether the source file is open or closed. If possible, we suggest you open all the source workbooks first before creating the links in the destination workbook. Why? Because this way is easier.

As an example, suppose you have the following four workbooks: Summary.xlsx, Jason Jones.xlsx, Melinda.xlsx, and Amanda Walker.xlsx. In the Summary workbook, you want to link the total sales of each salesperson, which is in cell F3 of each of the other workbooks—see the following screenshot:

Figure 38. An example of how to link worksheets from different workbooks in Excel

Link to another worksheet when the source workbook is open

When all the source files are open, you can follow the steps below to create the links:

  1. In the Summary workbook, type = (equal sign) in the destination cell for Jason Jones.

Figure 39. Typing the equal sign in the destination cell

  1. Click View > Switch Windows, then select Jason Jones.xlsx to switch to this workbook.

Figure 40. Switching to another workbook

  1. Select the cell to link, in this case, F3, then press Enter.

Figure 41. Linking a cell from another workbook

  1. Repeat Steps 1-3 for Melinda and Amanda Walker

As the final result, you’ll see formulas with the following format when you click on each of the destination cells:

='[SourceWorkbook.xlsx]SheetName'!RangeAddress

Figure 42. The linking formulas to workbooks that are currently open

Note: In the above example, the workbook name and/or sheet name contain spaces, so the path is enclosed in single quotation marks. 

Link to another worksheet when the source workbook is closed

If you close the source workbooks one by one, the linking formulas in the Summary workbook will change as shown in the below screenshot:

Figure 43. The linking formulas to workbooks that are currently closed

Now, you get the idea — you need to use the full path when linking to a workbook that’s currently closed.

Basically, you can use the following format to link data from any Excel workbooks:

='FolderPath[SourceWorkbook.xlsx]SheetName'!RangeAddress

However, if possible, just open the source files before you create the link, so you don’t need to manually type the long formula that’s shown above. 🙂

Can you break links between sheets in different workbooks in Excel?

When you open an Excel file, there may be formulas in it that get data from another workbook. 

To locate these formulas, click on the Data tab in the ribbon. If the Edit Links button is available, it means that your file contains links to other workbooks.

Figure 44. The Edit Links button

To break a link, follow these steps:

  1. On the Data tab, in the Queries & Connections section, click Edit Links.
  2. In the “Edit Links” dialog box that appears, select the link you want to break and click Break Link.

Figure 45. The Edit Links dialog box

  1. Click Break Links in the confirmation dialog box that appears.

Figure 46. A confirmation dialog to break links

Notice that when you break a link to the source workbook, all the linking formulas are converted to their current values. This action cannot be undone, so you may want to back up your workbook before breaking any links. 

  1. Click Close.

In this section, you’ve learned the basics of how to link sheets from different workbooks, as well as how to break those links. If you’re interested in more examples of linking worksheets from different workbooks, check out our article on how to link Excel files. 

Thanks for reading, and good luck with your data!

  • Fitrianingrum Seto

    Senior analyst programmer

Back to Blog

Focus on your business

goals while we take care of your data!

Try Coupler.io

As you use and build more Excel workbooks, you’ll need to link them up. Maybe you want to write formulas that use data between different sheets in a workbook. You can even write formulas that use data from multiple different workbooks.

If I want to keep my files clean and tidy, I’ve found it’s best to separate large sheets of data from the formulas that summarize them. I often use a single workbook or sheet to summarize things. 

In this tutorial, you’ll learn how to link data in Excel. First, we’ll learn how to link up data in the same workbook on different sheets. Then, we’ll move on to linking up multiple Excel workbooks to import and sync data between files.

How to Quickly Link Data in Excel Workbooks (Watch & Learn)

I’ll walk you through two examples linking up your spreadsheets. You’ll see how to pull data from another workbook in Excel and keep two workbooks connected. We’ll also walk through a basic example to write formulas between sheets in the same workbook.

Let’s walk through an illustrated guide to linking up your data between sheets and workbooks in Excel.

Basics: How to Link Between Sheets in Excel

Let’s start off by learning how to write formulas using data from another sheet. You probably already know that Excel workbooks can contain multiple worksheets. Each worksheet is a tab of its own, and you can switch tabs by clicking on them at the bottom of Excel.

Complex workbooks can easily grow to many sheets. In time, you’ll certainly need to write formulas to work with data on different tabs.

Maybe you use a single sheet in your workbook for all of your formulas to summarize your data, and separate sheets to hold the original data. 

Excel sheets

My spreadsheet has three tabs on it. I’ll write a formula to work with data from each sheet.

Let’s learn how to write a multi-sheet formula to work with data from multiple sheets in the same workbook.

1. Start a New Formula in Excel

Most formulas in Excel start off with the equals (=) sign. Double click or start typing in a cell and begin writing the formula that you want to link up. For my example, I’ll write a sum formula to add up several cells.

I’ll open up the sign, and then click on the first cell on my current sheet to make it the first part of the formula. Then, I’ll type a sign to add my second cell to this formula.

Excel Formula part 1Excel Formula part 1Excel Formula part 1

Start writing a formula in a cell and click on the first cell reference to include, but make sure not to close out the formula yet.

Now, make sure that you don’t close out your formula and press enter yet! You’ll want to leave the formula open before you switch sheets.

2. Switch Sheets in Excel

While you still have the formula open, click on a different sheet tab at the bottom of Excel. It’s very important that you don’t close out the formula before you click on the next cell to include as part of the formula.

Jump to different sheet in ExcelJump to different sheet in ExcelJump to different sheet in Excel

Jump to different sheet in Excel.

After you switch sheets, click on the next cell that you want to include in the formula. As you can see in the screenshot below, Excel automatically writes the part of the formula that references a cell on another sheet for you.

Notice in the screenshot below that to reference a cell on another sheet, Excel adds «Sheet2!B3», which simply references cell B3 on a sheet named Sheet2. You could write this manually, but clicking on the cells makes Excel write it for you automatically.

Multiple sheet formulaMultiple sheet formulaMultiple sheet formula

Excel automatically writes part of the formula for you to reference a cell on another sheet.

3. Finish the Excel Formula

At this point, you can press enter to close out and complete your multi-sheet formula. When you do so, Excel will jump back to where you started the formula and show you the results.

You could also keep writing the formula, including cells from more sheets and other cells on the same sheet. Keep combining those references throughout the workbook for all the data you need.

Level Up: How to Link Multiple Excel Workbooks

Let’s learn how to pull data from another workbook. With this skill, you can write formulas that pull together data from entirely separate Excel workbooks.

For this section of the tutorial, you can use two workbooks that you can download for free as a part of this tutorial. Open them both up in Excel, and follow the directions below.

1. Open Both Workbooks

Let’s start off by writing a formula that includes data from two different workbooks. 

The easiest way to use this feature is to open up two Excel workbooks at the same time and put them side by side. I use the Windows Snap feature to split them to each take up half the screen. You need to keep both workbooks in view to write formulas between them.

In the screenshot below, I’ve opened two workbooks that I’ll write formulas for side-by-side. For my example, I’m running a business that buys a variety of products, and sells them in a variety of countries. So, I’ll use separate workbooks to track my purchases/sales and cost data.

Two workbooksTwo workbooksTwo workbooks

For this example, I’m using separate workbooks to track my purchases/sales and cost data.

2. Start Writing Your Formula in Excel

The price of what I buy can change, and so can the rate that I receive payments in. I need to keep a lookup list of rates and multiply it times my purchases. This is the perfect time to link two workbooks together and write formulas between them.

Let’s take the number of barrels of oil I buy each month times the price per barrel. In the first Cost cell (cell C3), I’ll start writing a formula by typing the equals sign (=), and then clicking on cell B3 to grab the quantity. Now, I’ll add an * to prepare to multiply the quantity by the rate.

So far, your formula should be:

=B3*

Multiply quantityMultiply quantityMultiply quantity

Don’t close out your formula yet. Make sure to leave it open before moving onto the next step; we still need to point Excel to the price data to multiply the quantity by.

3. Switch Excel Workbooks

It’s time to switch workbooks, and this is why it’s important to keep both of your datasets in view while working between workbooks.

With your formula still open, click over to the other workbook. Then, click on a cell in your second workbook to link up the two Excel files.

Excel multiplying between workbooksExcel multiplying between workbooksExcel multiplying between workbooks

Excel automatically wrote the reference to a separate workbook as part of the cell formula:

=B3*[Prices.xlsx]Sheet1!$B$2

Once you press Enter, Excel will calculate the final cost by multiplying the quantity in the first workbook times the price in the second workbook.

Now, keep working on your Excel skills by multiplying each of the quantities or values times the reference amounts in the «Prices» workbook.

In short, the key is to get your workbooks open side by side, and simply switch workbooks to write formulas referencing other files.

There’s nothing stopping you from linking up more than two workbooks. You could open many workbooks to link up and write formulas, connecting the data between many sheets to keep cells up to date.

How to Refresh Your Data Between Workbooks

When you’ve written formulas that reference other Excel workbooks, you’ll need to think about how you’ll update your data.

So, what happens when the data changes in the workbook that you’re linking to? Will your workbook automatically update, or will you need to refresh your files to pull over the last data and import it?

The answer is, «it depends», and specifically, it depends upon if both workbooks are still open at the same time.

Example 1: Both Excel Workbooks Still Open

Let’s check out an example using the same workbook from the prior step. Both workbooks are still open. Let’s see what happens when we change the price of oil from $45 per barrel to $75 per barrel:

Change in priceChange in priceChange in price

In the screenshot above, you can see that when we updated the price of oil, the other workbook automatically updated.

This is important to know: if both workbooks are open at the same time, changes will update automatically and in real-time. When you change one variable, the other workbook will update or recalculate based upon the new value.

Example 2: With One Workbook Closed

What if you only open one workbook at a time? For example, each morning, we update prices of our commodities and currencies, and in the evening we review the impact of the change to our purchases and sales.

The next time you open up your workbook that references other sheets, you might get a message similar to the one below. You can click on Update to pull in the latest data from your reference workbook.

Update dataUpdate dataUpdate data

Click update on the pop-up that shows when opening the workbook to pull the latest values from the separate file.

You might also see a menu where you can click Enable Content to automate updating data between Excel files.

Recap and Keep Learning More About Excel

Writing formulas between sheets and workbooks is a necessary skill when you work with Microsoft Excel. Using multiple spreadsheets inside your formulas is no problem with a bit of know-how. 

Check out these additional tutorials to learn more about Excel skills and how to work with data. These tutorials are a great way to continue learning Excel.

Let me know in the comments if you have any questions about how to link up your Excel workbooks.

Did you find this post useful?

Andrew Childress

I believe that life is too short to do just one thing. In college, I studied Accounting and Finance but continue to scratch my creative itch with my work for Envato Tuts+ and other clients. By day, I enjoy my career in corporate finance, using data and analysis to make decisions.

I cover a variety of topics for Tuts+, including photo editing software like Adobe Lightroom, PowerPoint, Keynote, and more. What I enjoy most is teaching people to use software to solve everyday problems, excel in their career, and complete work efficiently. Feel free to reach out to me on my website.

Add worksheet data to a Data Model using a linked table

Excel for Microsoft 365 Excel 2021 Excel 2019 Excel 2016 Excel 2013 More…Less

A Linked Table is an Excel table that contains a link to a table in a data model. The advantage of creating and maintaining the data in an Excel table, rather than importing the data from a file, is that you can continue to edit the values in the Excel worksheet, while using the linked table in a Data Model as the basis of a PivotTable or PivotChart report.

Adding a linked table is as easy as selecting a range and clicking Add to Data Model. It’s also good to format the range as table and then give it a proper name. It is so much easier to perform calculations and manage relationships by using named linked tables.

Follow these steps to link data to a table:

  1. Select the range of rows and columns that you want to use in the linked table.

  2. Format the rows and columns as a table:

    • Click Home > Format as Table, and then select a table style. You can choose any style, but be sure to always select My table has headers. If the table does not have headers, consider creating them now. Otherwise, Excel will use arbitrary names (column1, column2, and so on) that convey no meaningful information about the contents of the column.

    • Name the table. In the Excel window, click Table Tools Design. In the Properties group, type a name for the table.

  3. Place the cursor on any cell in the table.

  4. Click Power Pivot > Add to Data Model to create the linked table. In the Power Pivot window, you will see a table with a link icon, indicating the table is linked to a source table in Excel:

    Linked table icon

  5. If the model already contains tables, then there is only one more step. You should create a relationship between the new table that you just added and the other tables in the model. See Create a relationship between two tables or Create relationships in Diagram View for instructions.

If the workbook did not previously contain one, it now has a data model. A model is created automatically when you create a relationship between two tables or click Add to Data Model in Power Pivot. To learn more, see Create a Data Model in Excel.

Now that you have a linked table, you can edit any cell in the worksheet, including adding and removing rows and columns. The Data Model in Power Pivot will immediately synchronize. 

Table names are an exception. If you rename a table in Excel, you will need to manually update the table in Power Pivot.
 

Synchronize changes between table and model

By default, a linked table is a active connection that persists between the range or named table that contains the data values, and the Data Model that drives the report. If you add or remove data, or rename columns and tables, the Data Model is will update automatically.

In some cases, you might want to control the update behavior. Switch to manual update mode by using the Power Pivot add-in.

Follow these steps to switch to manual update mode:

  1. Ensure that the workbook that contains the linked table is open in Excel.

  2. Open the Power Pivot window.

  3. In the tabs at the bottom, click the linked table. Any linked table is indicated by a small link icon next to the table name.

  4. In the ribbon at the top, click Linked Table.

  5. In Update Mode, choose Manual or Automatic. Automatic is the default. If you switch to Manual, updates will only occur when you use the Update All or Update Selected commands in the Linked Table ribbon in the Power Pivot window—or the Update All command in the Power Pivot ribbon in Excel.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Понравилась статья? Поделить с друзьями:
  • Linked object in word
  • Linked images in word
  • Linked excel file in powerpoint
  • Linked data in excel
  • Linked cells in excel