Z
Z
ZorX2019-12-17 22:07:02
Search Engine Optimization
ZorX, 2019-12-17 22:07:02

Is it possible to link GoogleSheets without improtrange?

Is it possible to link GoogleSheets without improtrange?
For example, so that the formula looks like this:
=if(A1:Document 1 :Sheet2 >= A1:Document 2 :Sheet2; A2 = 4) well, something like this =)
Importrange does not suit me, since there is a lot of data and I don't want to import them into the table I need.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Yudin, 2019-02-04
@RotgarSett

Do without /. But there is no fundamental difference, just the url will be one character shorter, which is better than longer. :)

G
Grigory Boev, 2019-12-19
@ZorX

Wrap IMPORTRANGE in FILTER ( Data;Condition1;Condition2... ) by condition. Or try scripting the data.
Here is such a thing that can come in handy (to select the first rows of rows from the data), somehow I did it and now I constantly use it:

/**
 * Возвращает rows строк и cols столбцов из array
 *
 * @param {A:A} array Исходный массив
 * @param {10} rows Количество строк. По умолчанию возвращаются все строки
 * @param {1} cols Количество столбцов. По умолчанию возвращаются все столбцы
 * @return Возвращает rows строк и cols столбцов из array
 * @customfunction
 */
function take(array,rows,cols) {
  if (!array.map) {return array};
  var rows = rows||array.length;
  var cols = cols||array[0].length;
  
  if (array.length>rows) {array.length = rows};
  return array.map(
    function(row){
      return row.map?((row.length>cols)?row.splice(cols,row.length-cols):row):row;
    }
  );
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question