Bloomberg Security List Generator - excel

Assume that I have a list of bonds for various deals. However, I only know, e.g., the ISIN (alternatively security name or deal name) of a particular bond (that is part of a given deal). However, I do not know how many securities belong to a given deal. For example, the "HERME 12 Mtge" deal includes 5 different securities (i.e., ISINs), but I only know one particular ISIN (e.g., XS0271028838) within that deal.
My idea is to use the information (e.g., ISIN or deal name) from that specific bond to get all ISINs or security names within a specific deal. I end up with a list of multiple deals (orange) and should have an additional list of securities within each deal (blue) as shown in the figure below.
I know that in the Bloomberg terminal I can see how many securities are covered within each deal using the Collateral and Structure and VAC View All Classes functions. Since this is very tedious for a large number of deals, I would like to automate this process using the Bloomberg Excel add-in.
In fact, it would be enough to achieve this for one deal, because then I could use a VBA procedure.

One way to achieve this is to use the BQL function, and search the debt universe for any securities that have the MTG_DEAL_NAME matching the deal you are after.
So, a 2-step process,
Take the ISIN you have, and get the MTG_DEAL_NAME field via BDP(): =BDP(C2 & " Mtge","MTG_DEAL_NAME")
Use BQL to search for any securities that have that deal name: =BQL.Query("get(id_isin()) for(filter(debtUniv('ALL'), mtg_deal_name == '" & C4 & "'))", "showids=false", "showheaders=false","array=true")
NB. I've used the dynamic array version of BQL (array=true), so you can simply pass this list to another function.

Related

What are common GIS filters that would be used in a spreadsheet-like interface

I have a spreadsheet-like application where a column may be a GEOGRAPPHY type, for example something like POINT(1 1). I haven't used GIS too much personally, and so was curious what is the most common filter that someone might apply to a GEO column. Giving a basic comparison, in Excel on a TEXT column, I would most commonly do something like =value, displaying the available values in a list of checkboxes:
My thought having zero experience other than using things like Google Maps or Kayak is that a user may want to see something like:
Value within [Distance] [units] of [Place]
For example, "Point is within 10 miles of Chicago, Illinois". And the reverse would be "outside of". Is this the most popular filter type, or are there others that are used frequently?

Return a subset of a List of objects in vb.net

I feel like there is a more simple way then anything I am thinking of right now to do this..
So I am going to lay some groundwork here:
I have an Organization which has Departments stored as a List(of Department)
The Departments has Person which is stored as a List(of Person)
Each person has a Calendar in it which is a List(of Dictionary(String, String))
The short reason why is people do not want to upgrade to databases and I have to make do with pulling the data from an Excel table and manipulating the data to make a manning chart.
Now the issue I am having is that I need to scour the Organization across all Departments to select only Persons who's Calendar says they should be assigned to that Department for the day.
I can select their calendar status as follows:
If (person.Cal(dateOffset).Item("status") = Right(departmentName, 1) & ".") Then
So to make this more clear.. the calendar works as follows:
They select a date range in the GUI. The program finds the first date listed (a constant location in the Excel Table) and then does a date diff to get the dateOffset. That becomes the Excel Jump to number to lookup the dates. I am storing the cell color, cell text ("status") and cell comment in the Dictionary.
If they are assigned to a different department that day (where the departments could be DA, DB, DC, DD etc) they put A., B., C., D. and I have to parse the difference. Keep in mind this function works flawlessly. I am restructuring the code to make this dynamic and a lot less hard coded stuff as I have right now, a little less code, and less things running in memory.
Now the dilemma, the I need to access this information from the List and I'm hoping there is a way I don't have to do a for loop to do it since that is currently the way I am doing it. Is there a way to make a sub list from the full list of personnel that only returns people who's calendar status is equal to a value. I think the term is Lambda but whatever the term is I'm hoping for a solution like that. Thanks in advance.
Note: sorry I did not produce much code but there is a lot going on in there and the code is not releasable.

NetSuite - Generating Multiple Sales Orders from one Estimate (aka Quote)

Is it possible to generate two (or more) Sales Orders for one Quote/Estimate in NetSuite?
When I ask if it's possible I mean without doing everything manually in SuiteScript.
Specifically we have a custom field added to the Opporutnity & Estimate transaction called custcol_hauler_rate and there are firm business rules disallowing a Sales Order to be generated with more than one distinct hauler rate.
I was hoping that there was a way to transform a Quote using a "filter". If I knew there were two distinct haul rates, say $10/ton and $15/ton, than in SuiteScript I could perform two transform statements one for the $10 items and one for the $15 items. This sounds too good to be true.
The number of distinct hauler rates on a Quote is usually one, but on it could be half a dozen so if that matters. Otherwise I am leaning towards splitting out the Quote using copy and plucking out items from the copied versions.
You can transform a single Quote to Order multiple number of times. Without SuiteScript it wont be possible.
I would suggest write your own button using beforeLoad user event script.
There is no built-in way to do this.
I'm not sure you can transform a quote multiple times. I'd test that first.
You can use nlapiCopyRecord on the quotes though and filter out items by hauler rate.

Building a customized, fuzzy and multiple Vlookup

Ok so, twice a month I receive a large file of about 100 rows, which contains 4 columns:
Building name - value - county - state
I´ve to complete 2 other columns based on a master list that have thousands of entries.
I want to produce something very similar to this fabulous add-in (http://www.microsoft.com/en-us/download/details.aspx?id=15011), but a bit simpler and that I could use at work without problems.
What I need to do is the following:
In order to match my input with the master file, I know the county and state must match, but then, the building names can change a bit in each file for the same building (ie "John Miller #34" can be "Miller, John 34 A"), and that the values may vary but not too much.
Based on that, I want to bring from the master to my file, all the entries that may match each of my rows, filtering by County and State first, and then by similarity in name and value.
Could you please share your thoughts on how you´d approach this?
I know this is not a simple thing, but anything may help!
You could also use wildcards to try and match on the primary identifier within the name. from your example, that might be "Miller", for example.
Unfortunately for you, the vlookup "fuzzy logic" is nowhere near reliable for your purpose (see the comment on my answer below for details), and you won't have any indicator as to whether the returned result is accurate or not.
It's possible to get 100% of what you want through some heavy coding in a user-defined function, but this is probably well beyond your comfort zone.
A clunky solution, although somewhat easy to explain and adopt, is to create an "identity column" for every unique scenario that can occur. So, for example:
Then you can import your master sheet and add the same identity column to the left, and perform your vlookup. When a new configuration is added you can just add that to the master list and it will populate in your imported file in future instances.
That said, if you are interested in learning, there have been many people who have walked in your shows and felt your pain. You may want to indulge in this:
http://www.mrexcel.com/forum/excel-questions/195635-fuzzy-matching-new-version-plus-explanation.html
Because what you are truly requesting is an algorithm. It's not a simple thing, but it's very possible. And if you take the time to learn you not only solve your immediate problem, but make yourself marketable as an Excel wiz. Good luck!

Book ordering comparison between spreadsheets for existing catalogue of a Library

I have recently asked this question of google's spreadsheet page.
I a significant data comparison problem I would like to solve. It relates to purchasing books for a Library. We have a catalogue of over 11,000 books. When we order new books we need to compare our proposed purchases to the current stock. Currently we can manually compare them to our catalogue, very laboriously book by book.
We need to do 3 things to make our life easier -
1 easily clean out bad data/characters in the ISBN's - these are either spaces, - (hyphen's) or . (period mark or full stops). A simple formula to run over all ISBN fields would be great.
2 I need to compare data between 1 spreadsheet with 11,000 books in it (current library stock), a second with up to 1000 books in it (currently on order) and finally the third currently active one (about to be ordered) with 50 to 200 books listed in it.
All spreadsheets use the same column configuration as below
Library orders
Title Author Publisher ISBN (long version) US$ UKgpd HK$ Other$ P/O no. Date ordered
UNNATURAL SELECTION MARA HVISTENDAHL Public Affairs Publishing; Reprint edition (May 1, 2012) 978610391511
Finally, the out put of these comparisons should quickly and easily identify on what lines we have matches. and what type of match it is, Author only, Author and Title, or Author, title and ISBN etc for all the possible combinations. To make this easier assume spreadsheet 1 is an unalterable master table, with spreadsheet two similar. It is really only on Spreadsheet 3 we need to be clear if we are starting to reorder materials.
If it is possible to have these as different sheets in a workbook it would be ideal. The only additional feature is that any scripts that run need to be able to cope with spreadsheet 1 increasing in size as new acquisitions arrive and are included. Both spreadsheets 2 and 3 will vary (increase and decrease) as the ordering process proceeds.
Finally the absolute ideal would be for this comparison process to be instant (live) and ongoing as data is included.
If anyone would like to take this on 3 Library staff will be eternally grateful.
regards
Nick
This would be very much easier had you one sheet rather than three (simply add a column to each existing sheet to show whether in stock, on order or to be ordered – three individual letters would be sufficient, then append each of the smaller two files to the largest). Then for example you could apply Conditional Formatting to highlight duplicates one column at a time (Author, Title etc). Apart from the initial data cleansing it would mean in the future switching ‘between sheets’ would merely involve changing a one-letter flag. Filtering would allow you and your colleagues to appear to have three separate sheets and if anyone asks for a particular Title the search would be one-time, not in triplicate.
Also, http://www.microsoft.com/en-gb/download/details.aspx?id=15011 may be of interest, also =SUBSTITUTE.And with data validation you would prevent entry of a new ISBN that already is in your list.

Resources