How to Create Array Formula for image in Spreadsheet - google-sheets

I need to create array formula to show image in spreadsheet, I used formula it doesn't work.
=ARRAYFORMULA(Image("http://drive.google.com/uc?export=view&id="&I2:I))
The formula didn't work. How can I create an array formula to get image in row K2,K3....

The formula that you have should be working fine. I tried the same with a sample images. See below screenshot.
You just need to make sure that all the images in your "ID FOTO" column are public. If they are not shared publicly, it will not be visible.

Related

Refer to itself in ARRAYFORMULA

I am just wondering whether it is possible to achieve what I need to achieve, but using an ARRAYFORMULA.
I have a simple setup where in column B I show the value, which is present in the last previous filled in row in column A
Here is an example.
So, the questios is: is it possible to achieve the same, but with ARRAYFORMULA(s), so that in case a new row is incerted, one does not need to drag formula to fill in the new row, but the formula would be added automatically. All my attempts ended up with the circular reference problem.
This is tradtionally done with a vlookup of row numbers into a filtered array of the values. It would look like this in row 4 of your sample sheet:
=ARRAYFORMULA(VLOOKUP(ROW(A4:A),FILTER({ROW(A4:A),A4:A},A4:A<>""),2,TRUE))

Copy rows to another sheet while maintaining original referencing

I have a Google Sheet with rows of data. There is a second sheet which uses a reference formula to pull from this data. I am making a third sheet where I may need to copy rows from the second sheet varying numbers of times. However, I need it to pull from the original cells (i.e. use absolute referencing, but while copy-pasting data instead of putting a dollar sign on everything). Currently it just maps to the corresponding row in the first sheet which I don't want.
How do I do this?
I think I figured it out... ctrl+shift+v to just copy the values

Apply same formula to every cell

I have a sheet with several numbers, which I want to convert to percentage. These are scores imported from a form, where the maximum score is 5.
According to the bellow image, the cell B2, I applied a basic formula =(3/5)*100% to convert three to 60%.
In order to avoid copy and paste the same formula into all cells, is there any formula to find all the cells and apply its value, divide per 5 and multiple per 100%? I thought something similar to Javascript such as (this/5)*100%.
https://docs.google.com/spreadsheets/d/1ZtqJaXy1pHkjk1sywGfSodo0FcOoLlkou79cZBk-jmU/edit?usp=sharing
you could treat it as array and on Sheet2 use:
=ARRAYFORMULA(IF(Sheet1!B2:AA="";;(Sheet1!B2:AA/5)*100%))
demo sheet
I've also looked for a solution to this for some time.
I don't think it's possible as a cell can only hold one value and the moment you try to change that value, it will delete the value.
Your best bet is to create a different table on the same sheet that references the specified values, then copy and paste the results (values only).
Just create a second Sheet, then in cell B2 of Sheet2 use the formula =Sheet1!B2/5*100%.
Then copy the formula to all cells of Sheet2.

I made a custom formula for conditional formatting in excel which is working perfectly but it doesn't work the same way in google sheets

So I have 3 sheets in excel, 1 with some info that I need to use, and 2 "maps", one of the maps has the codes from Sheet1 in it, the other one has names but other than that the text they are identical.
I'll call the first sheet (with the info) InfoSheet, the map with the codes Map1, and the map with the names Map2.
Now I need the cells in Map2 to format and change cell color if the code for that cell from Map1 is also present in InfoSheet, if not to keep the same color,
I managed to do this by using a New rule under conditional formatting, "Use a formula to determine which cells to format" and used the formula:
=NOT(ISNA(VLOOKUP('Map1'!$N$61,InfoSheet!$E:$E,1,FALSE))), then selected a color and everything works just fine...
Now I need to do the same but I google sheets and I can't figure it out how to add the same conditional formatting with that rule, cause from what I tried the formula isn't working.
Since you refer to a different tab/sheet you have to use the INDIRECT function.
Please try the following formula
=NOT(ISNA(VLOOKUP(INDIRECT("Map1!$N$61"),INDIRECT("InfoSheet!$E:$E"),1,FALSE)))
Functions used:
INDIRECT

Insert formula through google sheet column

lets say I have a column of URLs in A, I would like to have a script that would insert a formula into the next column over so that it would look like the attached image.
I know how to insert a formula into a single cell through script, but unsure of how to get it down the entire column relative to the cell to the left.
You can use array formula like this:
=ARRAYFORMULA(IMAGE(A2:A))
or you can wrap it in an if statement to only pull in the images where there is a valid url present with:
=ARRAYFORMULA(IF(ISURL(A2:A),IMAGE(A2:A),))
ArrayFormula is good solution. I prefer limiting the used range by it's size. If your data has no blanks, you could also use this formula:
=ARRAYFORMULA(IMAGE(OFFSET(A2,,,COUNTA(A:A)))
Paste it in cell B2.
offset + counta will give range A2:A6 in your case.

Resources