I tried following formula.....
=ARRAYFORMULA(SUBSTITUTE(IMPORTHTML("https://niftyinvest.com/option-chain/BAJFINANCE","Table",1)and was able to get the data but with two symbols - and *. Now I want to remove * and - symbol to be replaced by zero. How to do that plz ???
Try the following formula:
=ARRAYFORMULA(SUBSTITUTE(SUBSTITUTE(IMPORTHTML("https://niftyinvest.com/option-chain/BAJFINANCE","Table",1),"-", "0"), "*", ""))
Related
I am trying to count the number of cells that contain the symbol "?" in a specific range.
But the formula =COUNTIF(C3:C60; "?") seems to interpret the char as 'any string with one char'.
I tried with "\?", "'?" and "'?'".
I tried this solution too : =SUM(IF(A2:A10="?"; 1; 0))
Is there an other solution to escape the char and just take it as it is ?
The wildcard escape character for COUNTIF as per the function help page is a tilde:
=COUNTIF(C3:C60;"~?")
try regex it:
=SUMPRODUCT(REGEXMATCH(C3:C60; "\?"))
I need to remove * in following data output ....
=IMPORTHTML("https://niftyinvest.com/option-chain/BAJFINANCE?expiry=26MAY2022","Table",1)
I want to know the formula to do it.
Try
=arrayformula(iferror(substitute(IMPORTHTML(A1,"Table",1),"*","")*1,substitute(IMPORTHTML(A1,"Table",1),"*","")))
if you want to transform values from text to umeric
=arrayformula(iferror(
substitute(IMPORTHTML("https://niftyinvest.com/option-chain/"&A1&"/strike/"&B1&"?expiry="&C1,"Table",1),"*","")*1,
substitute(IMPORTHTML("https://niftyinvest.com/option-chain/"&A1&"/strike/"&B1&"?expiry="&C1,"Table",1),"*","")))
or try just:
=ARRAYFORMULA(SUBSTITUTE(IMPORTHTML(
"https://niftyinvest.com/option-chain/"&A2&"/strike/"&B2&"?expiry="&C2,
"table", 1), "*", ))
to not import stuff twice and save resources. yes the output is text but if you intend further calculations with those numbers, they will be auto-converted to numeric values
Trying to add a condition in the following formula that IF(F3:F<DATE(2020,6,30),13 whenever i tried to add it gives me an error.
Your help will be highly appreciated
=ArrayFormula(if(len(G3:G),ROUND(IF(LEN(F3:F),IF(G3:G="Confirmed",13 - MONTH(DATEVALUE(TEXT(F3:F,"mmm")&" 1"))) * 13/12,IF(G3:G="Probation",0)))),""))
I broken the formula and make it work for me but how to do the same thing with above one
=IF(AND(F3:F<DATE(2020,6,30),G3:G="Confirmed"),13,(13 - MONTH(DATEVALUE(TEXT(F3:F,"mmm")&" 1"))) * 13/12
)
Sheet link
https://docs.google.com/spreadsheets/d/1IGSRMfqDODklJdPS4_TIMlIZJSM2JXqf_4pWOGjav4I/edit#gid=0
Issues
1.) You placed your "Probation" condition outside an IF statement does generating the error of "Wrong number of arguments..."
2.) AND formula cannot be used inside an ARRAYFORMULA because it will end the whole array together which will generate unexpected result.
Solution
1.) You can place your "Probation" condition before the "Confirmed"&DATE condition right after the IF(LEN(F3:F)..
2.) Instead of using AND. You can multiply both conditions which will return 1 if both conditions are TRUE.
You can use the formula below. This is working as expected on my end:
=ArrayFormula(if(len(G3:G),ROUND(IF(LEN(F3:F),IF(G3:G="Probation",0,IF(F3:F<DATE(2020,6,30)*(G3:G="Confirmed"),13,(13 - MONTH(DATEVALUE(TEXT(F3:F,"mmm")&" 1"))) * 13/12))),"")))
Some of my data contain "=" at the beginning. I was able to collect and organize them to one sheet using ImportRange and Query, but then when I pasted the query output as value to another worksheet, they are not recognized as valid cell values anymore because of the equal sign.
I tried to get the cell contents using direct reference and concatenate, but all functions returned "formula phrase error".
scientific notations are not supported in such format you attempt to, hence those errors. here is a quick fix - press CTRL + H and do:
you need to insert something between =4.6 and E3 like:
&
+
-
/
*
&" "&
etc.
I'm trying to use the JOIN function to concatenate all the values of a column using a space and the at-sign (" #") as a delimiter. I'm receiving a Formula Parse Error when using the following text:
=JOIN(" #",!A2:A)
The referenced column is completely empty right now. Is that what's causing it not to function? If so, is there another way I can concatenate a row with a delimiter that will function even when some of the referenced cells are empty?
If it helps here is a link to the spreadsheet. The "Buyers Pinglist" is the one I need help with.
Thanks in advance!
You could wrap the formula in an IFERROR if you don't want the #N/A to show:
= IFERROR(JOIN( " #" ," ", FILTER(B3:B, NOT(B3:B = "") )))
The formula seems to work as soon as a value is added to the 'Buyers' tab - the issue is that when the column B is completely empty then there is no data returned by the FILTER and hence nothing for the formula to JOIN