Need help in importing data from web. Conditional formatting not working on imported data

Copper Contributor

I am importing data from this link - 

https://www.nseindia.com/live_market/dynaContent/live_watch/option_chain/optionKeys.jsp?symbolCode=-...

After loading of the table, I am applying conditional formatting to get data bars. But I am getting data bars in only one column (Column named Strike pice). In all the other columns the formatting is not working.

da.jpg

 

9 Replies

@chandragoku 

That's since all such columns most probably are formatted as text. If you replace all "-" on nothing or zero, and convert the rest to numbers, conditional formatting shall work on columns with numbers.

@chandragoku 

Check the datatype of other columns. They seem to have Text datatype. Edit your query and change the datatype to numeric datatype i.e. Whole Number or Decimals and it should word as expected.

@Sergei Baklan 

Tried it. But the problem still persists. This was not the problem in office 2010 & 2013.

@chandragoku 

I see on you screenshort that these columns are formatted as text. You tried to convert to numbers and still have texts or you tried something else?

n 2010 perhaps similar query returned numbers, not text. 

@Sergei Baklan 

 

Well, if I am formatting the data into number after loading the table then it is not working. Albeit, if I am formatting it in power query editor before loading it on spreadsheet then it is working. Seems like a solution was found. Thanks alot.

@chandragoku 

I tried that with legacy Web connector which returns numbers, not texts. Data bar conditional formatting works on returned result.

image.png

If use Power Query by default it converts these columns to text. If not Load but Transform and add couple of more steps - apply Decimal Number type to these columns and Replace all errors on nulls, it works as well.

image.png

@chandragoku 

If you in Excel just format cell from text to number, the value of the cell won't be converted from text to number even if text has number representation. You need to re-enter value, or use VALUE()/--, or some other methods to convert, depends on situation.

@chandragoku 

That's what I suggested and maybe you didn't pay attention to what I was suggesting.