Convert tIckers bloomberg into ISIN - bloomberg

I have a large list of bloomberg tickers for BE500 Index
but I need the ISIN or CUSIPS...
How can I get it?
Thanks

If you are on excel with the Bloomberg extension, try
=BQL(A1,"ID_ISIN")
Where cell A1 is your ticker.

Related

How to get all the filled data in the table in google sheets api?

Please tell me how in the Google Sheets API you can not manually get the range of the entire table located on a certain sheet.
I have a table in which the number of columns can change, but I still have to get information from it.
sheet = service.spreadsheets().values().get(
spreadsheetId=spreadsheet_id, range='???').execute()
You can you sheet.getDataRange() to get range of the visible data on your spreadsheet.
solution:
sheet = service.spreadsheets().values().get(
spreadsheetId=spreadsheet_id,
range='Sheet1',
majorDimension='ROWS').execute()

Bloomberg (in Excel): Get security name from ISIN

In Excel, I have a list of ISINs for bonds. Now I want to find the ratings for them and use BDP. The problem is how do I get the security name (Bloomberg can work with) from the ISIN? I can do it manually with the spreadsheet builder, but there I have to do this for each individual security. Is it possible to automate this?
You don't need the Security Name to do your job. Simply place in an excel cell (example B1) this formula (assuming that in cell A1 you have a valid ISIN):
= A1 & " Corp"
and then use B1 to obtain your desired data from Bloomberg.

Referencing a sheet by index number

I've got a LibreOffice Calc spreadsheet that I use to keep track of my accounts receivable at work. Each sheet lists invoices and their status (paid, unpaid, etc) as well as info about each invoice. I'm trying to create a Summary sheet that lists certain data from each sheet. Creating the sheet manually is easy, but I'm trying to "automate" the process. I want the summary page to auto-update if I add a new sheet (or remove one) as I add and remove accounts to the file.
I know that LibreOffice assigns each sheet an index number that I could refer to in some sort of formula, but I cannot find a function that I can use to refer to that index number when getting a value from a cell within it. One would expect that a function like Sheet(2) would reference the second sheet, but, alas, that is not so!
I've tried using the indirect and address functions without success, but I'm not sure if I'm not understanding these functions or if they're not appropriate for what I'm trying to accomplish.
This has been a missing piece in Calc for a long time. The preferred solution is to write a user-defined function. Spreadsheet formulas do not access sheets by index number but Basic can.
The following function is from https://ask.libreoffice.org/en/question/16604/how-do-i-access-the-current-sheet-name-in-formula-to-use-in-indirect/.
Function SheetName(Optional nSheet)
If IsMissing(nSheet) Then
SheetName = ThisComponent.getCurrentController().getActiveSheet().getName()
Else
SheetName = ThisComponent.getSheets().getByIndex(nSheet-1).getName()
EndIf
End Function
Then get a relative address of the first sheet cell A1 like this.
=ADDRESS(1,1,4,,SHEETNAME(1))
A slightly different function is given at https://forum.openoffice.org/en/forum/viewtopic.php?f=9&t=49799.

Sorting Excel with openpyxl

My English is not well,sorry about that.
I am trying to sort a sheet using openpyxl and Python. I have read the documents and I don't quite understand this page. I am expecting to sort my excel file by some columns,at frist sort by column A,then by column B,then by cloumn C and last by column F.My problem is how to use add_sort_condition and add_filter_column these two ways,just the simple way would be great.If i can get an example,that's help me a lot!
wb_read = openpyxl.load_workbook(filename)
sheet_read = wb_read.get_active_sheet()
sheet_read.auto_filter.ref = 'A3:Q40000'
"""sheet_read.auto_filter.add_filter.column(2,['id'],blank=False) Didn't work
sheet_read.auto_filter.add_sort_condition('A') How and Where to use condition?
sheet_read.auto_filter.add_sort_condition('A3:Q40000') It seems didn't work again"""
wb_read.save('sorted.xlsx')
By the way,If i want to sort,Do I have to use auto_filter?

Matching against ID and copying cells of other column as a block to another sheet

I got a Sheet1 looking like this:
And what I want to do is that I copy the amounts where the ID matches the ID I am looking for (here 3) into another Sheet.
So my result in Sheet 2 would look like this:
Any ideas on how to do that? I think Excel VBA is necessary (would be awesome if its not needed though) and I also thought about using SQL expression in VBA.
Thanks
When ids are on B2:B10 and amounts are on D2:D10 and the value to find is on B13, this array formula will get multiple matches:
{=IFERROR(INDEX(D$3:D$10, SMALL(IF(B$3:B$10=$B$13, ROW(B$3:B$10)-MIN(ROW(B$3:B$10))+1), ROW(E$3:E$10)-2)), "")}
Note that the last E$3:E$10 can be an any column. This method is from this article, which explains the formula very kindly.
Also, as I commented, in Google Sheets, you can achieve this by more simple query() function:
=query($B:$D, "select D where B = "&$B$13)