As you can see there is a column which displays IP Address. Basically it is a survey form (JotForm) whose responses are real-time updated on Google spreadsheets.
Based on IP Address available, how can I find its respective country name.
I got one solution
=query( importhtml("http://whatismyipaddress.com/ip/" & G4, "table", 2), "select Col2 where Col1 = 'Country:' ", 0 )
But in this I am facing one issue. I am using jotforms and integrating it with Google Spreadsheets. It gives me location of all responses received till date. I used drag down feature and dragged it to cell no 100. As as soon the new response is received, the information is now stored at cell no 101 and all the other where I have entered formula are left blank.
Any workaround for this? Will any array formula will do?
Is there any other way to do it?
Your formula seems to be working well. Unfortunately, I have not found an easier way for this using arrayformula(). But your question regarding how to make this update auto-magically is very doable. The following will assume you have placed your formula in cell G2. (You might find that you will want to use this in other places too, in which case you will just create different functions to make it work and put them in onChange()).
Open up your script editor. Tools->Script Editor
Add the following code to the end of the script editor:
Save the edited script file as "CCI Responses".
Now inside the script editor go to Resources->Current Projects Triggers. Use the pull downs to produce the following settings and save:
Now see what happens when a new IP is added to column G.