Fill dynamically GOOGLEFINANCE function - google-sheets

I have a table with list of stocks of shares with its day today transactions. I want to add a column with its current NAV. I can as well add the function at each row as
=GOOGLEFINANCE("NSE:"&A2)
in column I. But I would like to automatically fill the column as a new row in added. How can this be achieved?
Regards,
Pravin Kumar.

Related

How do I automatically add rows in google sheets with cell condtion?

I am working on a sheet where I may have to automatically add a row based for product that is ordered. the first row contains the customer information I need add rows between customers if they have ordered more than one product, I am looking for a way to list the products on a new row between each customer data row. Basically I want to do a transpose function but add a new row for each product. Is there a formula to do this? Sample of my data and how it needs to be displayed Additionally I would like to add a product description from a VLOOKUP with each new product row as well.
I am not quite sure how to use the array formula but looks like it might be an option. Transpose but add a new row is the best description I can come up with for this.

How to get sum/difference From a different sheet using dates as reference?

Collections Sheet
Expenses Sheet
Hi, I would like to get the daily sum/difference of the expenses from the expenses sheet then output to collections sheet using dates as reference/identifier.
I tried this code =MINUS(C8,INDEX(Expenses!20:31,12,2)) but I want it to auto compute when I drag the box. sorry for bad english. thank you
Desired output:
Desired Output
Output at (Net) Cash On Hand Row / Reference Date Column, the output should be August 1 Collection - August 1 Expenses.
The main issue is with the structure of your expense sheet, since you need to use only every second column. For this you can use various methods, something like
=split(substitute(join(";",Expenses!A2:DJ2),"Total:;",""),";")
The join function takes the whole row and joins it into one string, the substitute function removes the Total: from it, along with the trailing ; and the split function separates it again to separate values. This will be an array, automatically spread out to 31(-ish) columns width if entered into a cell like C10 on your Collections sheet.
Then you have two options, simply do =C8-C10 in C9, which you can drag with no problem. You can also hide the row 10 by making the text color white, or even integrate it in that sheet.
My recommendation however is not to do any of that, instead enter the formula
=arrayformula(C8:AG8 - split(substitute(join(";",Expenses!A2:DJ2),"Total:;",""),";")
into C9 on the Collections sheet and it's taken care of, without the need to drag it out. You might need to tweak it, not sure if the AG8 and DJ2 are the correct columns to end them on (should be the last column if every column or every 2 columns is a day). The arrayformula makes sure that the subtractions are done automatically for each pair of values, and expanded automatically into the row. Make sure that there are no values or formulas in D9:AG9, so it can fill up the values automatically and you don't get a #REF error.

Making a drop down populate sheet from a database

I have two sheets in my document. The first sheet’s columns are days (A-C) and the rows are specific attributes for each day (temperature, cloud cover, rain, etc).
On the second sheet, I have a data validation drop down selector, it’s contents sourced from the “Days” strip (A-C, so it displays A-C as options) in sheet one. When I select day C for example, I want all the attributes for that day to populate in cells down the page. It should update depending on which page is selected.
Much appreciated, thank you.
Image: https://ibb.co/DgvnLLc
Use MATCH to find the column index that corresponds to the dropdown value.
Use OFFSET to retrieve the corresponding column data.
=OFFSET(Sheet1!B3, 1, MATCH(A2,Sheet1!B3:D3,0)-1, 3)

How do I populate an empty array, with a specific table in another sheet, based on dropdown menu?

How can I populate an array, with a specific financials table from another sheet, depending on the chosen company in the dropdown list?
SO... populate the blue-area in DASHBOARD!, with the blue-area in FINANCIALS!, because it matches the company in the dropdown menu on DASHBOARD!.
Or is there an easier way to do this. In essence... I want the chosen company's key financials to be shown, when it is chosen in the dropdown menu...
Thank you so much in advance!
GOOGLE SHEETS LINK
You can try the ‘QUERY’ function.
In the “FINANCIALS” sheet - Column A , I added the name of the company (you can hide this column if you prefer). This way we can make a query and return only rows that match with that specific company.
In the “DASHBOARD” sheet, cell D15, I added the following:
=QUERY(FINANCIALS!A6:H42,"select C,D,E,F,G,H where A='"&B10&"'",0)
And after formatting the rows with Number/Percent, this is the result which matches with the information in the "FINANCIALS" sheet:

how to sum the sales by child in this google sheet

I'm working on a project for local children's org. We have charity sales data in the following format in Google sheet:
How can I create total sales by child from this table above? I want the output to be like this:
I've tried to use Query but couldn't get it right. Please help! Thank you!
If your Child 1-4 column is not expected to expand, then I would just use sumif functions to get the sum of each column based on the child's letter. Then add all to get the result for each letter child. Then you will list all the letters in one column, copy the result column down. Make sure to lock your cells for the sumif formula.

Resources