I'm using this script to integrate price change inside my google sheet. The command I'm performing is:
=VALUE(Right((Index(ImportHtml("http://bigcharts.marketwatch.com/quickchart/quickchart.asp?symb="&B5&"", "table"),3,2)),7))
Where B5 contains: BTOU and this is the value I got returned.
As a result I see following error:
VALUE parameter ': +0.02' cannot be parsed to number.
Would be much appreciated for the help.
You can use another Right() to get the last 5 digits.
=Value(Right(Right((Index(ImportHtml("http://bigcharts.marketwatch.com/quickchart/quickchart.asp?symb="&B5&"", "table"),3,2)),7),5))
I had been using this formula for years.
After trial and error this one works. It just changed the 7 and the end to a 6. Dont ask me why!
=VALUE(Right((Index(ImportHtml(CONCATENATE("http://bigcharts.marketwatch.com/advchart/frames/frames.asp?symb=",B5,"&insttype=Fund"), "table"),3,1)),6))
Related
I want to check a column of strings on another column of substrings to see the strings contain any of the substrings.
I am currently attempting =SEARCH(lower('Sheet2'!$A$1:$A$100),lower(B1)) and would like a True/False response.
Thanks in advance.
An example of Sheet2 would be:
A
1 Hello
2 Hi
3 I said she
an example of Sheet1 with the expected result in column C would be:
A B C
1 23 There are many FALSE
2 45 I said he is slow FALSE
3 3 I said she is bad TRUE
4 78 he yelled hello TRUE
Any help is appreciated
EDIT: link to example - https://docs.google.com/spreadsheets/d/1c2pskSYsGs12Yjbn-5gORQ22mDSaC9cSnp1nWeULlf4/edit?usp=sharing
In Sheet1!C1:
=ArrayFormula(IF(B:B="",,REGEXMATCH(LOWER(B:B),JOIN("|","\b"&FILTER(LOWER(Sheet2!A:A),Sheet2!A:A<>"")&"\b"))))
You haven't shared a link to a spreadsheet, so this is untested on any actual data. Your locale is also unknown, which may required modifications as well. So if this formula doesn't work as provided, share a link to your sample spreadsheet.
I am trying to sum values using sumifs but I am getting an error. Went throught several website but I guess I don't have a good understanding of how SUMIF works.
Right now I have a sheet with a registry date(C), a price per weeek(G) and a end date(D).
I would want to calculate the earning every week.
So I created another sheet with every week of the year.
=SUMIFS(Clients!G2:G;A5;>=Clients!C2:C;A5;<=Clients!D2:D)
I am not using coma as a separator as my google sheet is not in english.
I am trying to sum the incomes if the date on the second sheet is between the starting date and the end date. But I keep getting errors and I don't really unerstand why.
Thanks
I found an formula which look to be working.
=SUMIFS(Clients!G2:G;Clients!C2:C;"<="&A5;Clients!D2:D;">="&A5)
I guess that it was not working because I was letting A5 to incremente.
Problem solved.
Thanks for your help.
Find out more here on Google's post about =SUMIFS().
Sample usage
SUMIFS(A1:A10, B1:B10, ">20")
SUMIFS(A1:A10, B1:B10, ">20", C1:C10, "<30")
SUMIFS(C1:C100, E1:E100, "Yes")
Syntax
SUMIFS(sum_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])
sum_range – The range to be summed.
criteria_range1 – The range to be checked against criterion1.
criterion1 – The pattern or test to apply to criteria_range1.
criteria_range2, criterion2, … (OPTIONAL) – Additional ranges and criteria to be checked.
The ArrayFormula I'm using is doing a cumulative calc, so col D is cumulative... eg =D1+C2 etc. Works fine when I create the ArrayFormula except for the first calc - since D1 is a header (text), not a number.
I tried an IF(), to check IsNumber(), but no good, same error. Any suggestions on how to correct this error?
Sorry, just fixed it. I had tried to use IFERROR(), but did it incorrectly before, now works when I use:
=ArrayFormula(iferror(D1:D1957+C2:C1958,C2:C1958))
=COUNTIFS((Tab1!C2:Tab1!C250),"*sam*") & ((Tab1!B2:Tab1!B250), ">1-Nov-2020")
In the above formula, I'm trying to get the count of 'person names whose name is sam and the value which is past 1-Nov-2020.
While trying to fetch the count using the above formula, it is showing Formula parse error.
Please analyze and tell where might I went wrong.
You need to correct your syntax to:
=COUNTIFS('Tab1'!C2:C9,"sam", 'Tab1'!B2:B9,">1-Nov-2020")
Please read more on how the COUNTIFS function work.
EDIT (following OP's comment)
The correct syntax would be
COUNTIFS(criteria_range1, criterion1, [criteria_range2, …], [criterion2, …]) meaning:
=COUNTIFS('Tab1'!C2:C9,"sam", 'Tab1'!B2:B9,">1-Nov-2020", 'Tab1'!B2:B9,">=1-11-2020")
BUT
Since you refer to dates 1-Nov-2020 is the same as 1-11-2020.
So you only need
=COUNTIFS('Tab1'!C2:C9,"sam", 'Tab1'!B2:B9,">=1-11-2020")
OR
=COUNTIFS('Tab1'!C2:C9,"sam", 'Tab1'!B2:B9,">=1-Nov-2020")
In Google sheet, when I want to get last value from column A, I use this.
=index(A:A,max(row(A:A)*(A:A<>"")))
It works perfect. Even if there are spaces in between it skips them. This is exactly how I wanted it. But when I want to refer column from another sheet I changed it to this:
=index((AnotherSheetName!A):(AnotherSheetName!A),max(row((AnotherSheetName!A):(AnotherSheetName!A))*((AnotherSheetName!A):(AnotherSheetName!A)<>"")))
And with this I am getting error:
Error Unknown range name:
'A'.
Not getting any clue for the error as I am just replacing column name with sheetname!column name. Can someone please help me out? Thanks.
Your notation for ranges in a remote sheet is incorrect, this should work:
=index(AnotherSheetName!A:A,max(row(AnotherSheetName!A:A)*(AnotherSheetName!A:A<>"")))