Im trying to have dividend payable dates, or ex-dividend dates populate in the cell next to a ticker. Anyone ever done this? Does not seem I can find this one.
If you are able to find a web page that provides this information based on a given ticker, you can use importXml function in the spreadsheet.
This function gets the URL of the site (probably with some query as q=TICKER), and XPATH expression of the field with the relevant value.
You can find the XPATH using "Inspect Elemnt" in Chrome, Safari and other modern browsers.
Related
I'm trying to scrape the votes from SofaScore with google sheets using the importxml function.
I'm running into an issue because the class name has a random string at the end of it.
Example "class="sc-5b0433e1-5 koUsvm"
Lets use https://www.sofascore.com/washington-nationals-new-york-mets/ExbsFtc as an example link.
Typically I would just use something similar to the code below.
//div[contains(#class= 'sc-5b0433e1-5')]
Does anyone know how to go about this.
JS elements are not supported by google sheets importxml formula:
I've looked at the following questions already posted in this forum, but neither quite address the specific issue I'm having.
Can I create a COUNTIF calculated column in SharePoint?
How can I build a CountIF function in SharePoint?
I am wondering if SharePoint allows you to reference a certain cells data to then look that value up in a column and count how many of that value there are. These would not be set values, which is why the workarounds proposed in the articles above are not working for me.
EX:In our Excel sheet that we are putting into SharePoint, we are using this formula =COUNTIF($C$2:$C$2007,C2007) and we are trying to translate this into SharePoint.
As shown in the image I've attached, we want a frequency column to calculate how many times each value in the Values column occurs. So the results would end up looking like what's in the image.
Sample Table with Desired Results
Based on my research, SharePoint does not support CountIF function, it is by design.
However, you can use "Group By" as a workaround:
1.Go to the list and click on All Items >> Edit current view
2.On the Edit View page, scroll to "Group By" section and select column that your wanted.
I'm trying to generate a List Price Sheet report using the Dynamic NAV gui, which is located under Departments > Sales & Marketing > Inventory & Pricing.
Under the Reports and Analysis there is an option called List Price Sheet, which we use to create the price lists as Excel Files.
What I would like to do is to return only items that has been created or modified during an specific year, instead of having a list of all Items in the ItemCard.
When I add the Last Date Modified as a filter, it does not matter what value I enter, it keeps giving me a warning saying...
One or more filters are not valid and will be ignored. Do you want to continue?
Is there's a way I can accomplish that using the GUI or this is something that needs to be done with a custom function?
this "List Price Sheet" is not a standard report (NAV has a standard set of reports for every modules) therefore we can't help. You should contact your (=your company's) NAV partner for help.
Maybe if you can share the warning/error what you getting when entering the date I can help. Here is a link which maybe helps : Entering Dates and Times in Dynamics NAV
Cheers!
Sorry I did not provided more depth information, the problem was, that I was trying to search as string the value "2015", which is not a valid parameter to pass when searching a DateTime column. I have to search using a Date range, cause I wanted to get the result for the specific year 2015, in my case, the value I should've pass was:
01/01/2015..12/31/2015
Which return all items that has been modified during this specific year. After doing that I found out that every time NAV developers updated the production site with the test site, all items were marked as modified the date the update occurred. So was not of use for me any way.
I am trying to pull in information from Yahoo Finance into my spreadsheet. I am able to pull in some information from Yahoo Finance such as the current stock price, but I would also like to pull in information on when the "Next Earnings Date" will be for a company.
For example, I was able to use this function to get the current stock price for Google:
=NUMBERVALUE(WEBSERVICE("http://finance.yahoo.com/d/quotes.csv?s=GOOG&f=l1"))
Yahoo has some built in APIs which are listed on this website: https://greenido.wordpress.com/2009/12/22/yahoo-finance-hidden-api/
However, I do not see an API for Next Earnings Date. Any suggestions on how to pull that type of information into my spreadsheet? I know some basic VBA but I'm not familiar with querying web data using VBA. Anyone know a way to get this done?
Thanks! Let me know if you have any questions.
Based on the documentation you provided for the API, the data you are looking for is not available in the Yahoo Finance API. Because Yahoo does not make this data available, you actually need to find a different API to work with instead of trying to solve the problem via VBA.
Somebody else on StackOverflow seems to have had the same challenge (getting the Next Earnings Date data). Here's the thread: Free API or similar to get Next Earnings Date for stocks
Alternatively, you can use a service like KimonoLabs or Scrapy to build your own API and get the next earnings date.
For example, I just built this API using Kimono: https://www.kimonolabs.com/api/bq0hsy5y?apikey=30ef2f027c78a399898ac016d22dc0e1&s=goog
To use this API, simply replace s=goog with s=[INSERT STOCK SYMBOL]
Using this URL, you will get JSON returned with 2 collections:
Collection 1
Measure (contains the title of the information you want like "Next Earnings Date:"
Data (contains the actual information)
Collection 2
StockName (contains the full name & symbol for the stock)
While the WEBSERVICE() function is pretty cool, though it seems to have trouble leveraging the KimonoLabs API (it can't parse JSON & I can't get the API to return XML). Instead, you can use PowerQuery to get the information that you want. Here's a great walkthrough of how to do that: http://southbaydba.com/2013/08/30/part-3-power-query-api-table-as-parameter-for-a-query-indeed/
I hope this helps!
In my list i have created calculated field to get the difference between the last modified date and today's date.
I use the formula
=datedif([modified],[today],"d")
It is throwing an error : The formula contains reference(s) to field(s).
Please advise.
I do not have a separate column to hold today's date.
Regretfully, you cannot use [Today] for calculated fields. Calculated fields only update when an item is modified, so the Today Trick of creating a column named Today, setting your calculated field, then deleting that column, is a bad move.
You have a couple options, the best of which is probably to use JavaScript within a Content Editor Web Part on the page to do the calculation for you. You could also try using SharePoint designer and custom XPath and xslt to get "days since modified" to appear on your page.
Generally, if you want something to identify items that haven't been modified in a while, it should be done with filter library views: they can use [Today], and they don't require tricks or workarounds.