How to use Tokens with Feeds Module in Drupal 6 - drupal-6

I'm trying to import data from a custom cell of an excel spreadsheet but can't figure out how to use the mapping tokens.
This would be one of them:
Excel_sheet tokens
[sheet-cell-1-1] Formatted string of the given cell within the sheet.
So I figure if I input [sheet-cell-1-1] as a source, it should import the first cell from the spreadsheet. But it doesn't. Any suggestions?

Related

How to search a website using a range of cells in excel to extract specific data

I'm trying to search the website "capfriendly.com/players/" using a column of cells and import the "Cap Hit" value back into excel in the adjacent column for each.
I'm a complete beginner when it comes to programming, so I've mostly been trying to learn from previous questions such as this one: excel macro to search a website and extract results
I'm still pretty perplexed, especially with how to extract just the specific value I'm looking for. Any guidance would be greatly appreciated.
I don't know which version of Excel you work with.
Anyway you can try this :
Create a new sheet.
Go to Data in the ribbon to get external data and choose "From web".
Input the url of your page ie https://www.capfriendly.com/browse
After a moment you should retrieve "Results" data that you can load with or without structure modifications. You now have a data table in your new sheet.
You can now access it with Vlookup or similar function, with VBA code or with formulas, to put specific data on specific cells of specific sheets like you need to.
Hope it helps.

How to predefine the required format of a cell?

I currently build a dashboard in Excel to track forex trades. One worksheet is for adding new trades to the database. Within this worksheet i have several fields that the user needs to fill in order to add the trade to the database. Now I want to avoid that the user inserts wrong data (regarding format) in the cells and therefor crashes the outputs from the database later on.
How can I define such criteria via VBA? For example the field date to have the format YYYY-MM-DD and the field Trading Volume XX,YY so the user can't (accidentally) insert X,YY etc. For dropdown fields it is easy by defining the inputs within the dropdown menue itself, but i need some solution for the manually filled cells.
I will then define a msgbox to pop up and inform the user to meet the required input formats.
Thank you very much in advance!
Some key words would help me, I can then get into deeper it and code it by myself.
Rather than using code could you not use data validation and force entry of a date, numeric value etc.?
If you define the cell format to be custom 'yyyy-mm-dd' then apply data validation with a defined date range Excel will auto format it for you even if they enter dd/mm/yyyy and alert if an invalid entry is added.
Then for a belt and braces approach run a routine at Save that will mimic what your database will do and alert if there is still invalid data see https://learn.microsoft.com/en-us/office/vba/api/excel.workbook.beforesave
I would also lock down the sheet to avoid users adding rows / columns or moving your cells around.
enter image description here

Import certain fields in Excel into Access based on field name -

I will be obtaining a few dozen MS Excel spreadsheets with 500+ columns and need to import just selected few columns into MS Access based on their column name. I have no control over this and yes, there doesn't need to be that many columns. I want to import a few selected fields only. In particular, I only want to import columns that have "c_" in the column name. The problem is I can't figure out how to do this. The other problem is the number of columns will vary each time, but I will always need the columns that start with "c_".
Normally when I use VBA code to import Excel data, it's not too difficult for me if I have to select a range. For example:
DoCmd.TransferSpreadsheet acLink, acSpreadsheetTypeExcel9, "ards_data_new", "H:\Misc. Projects\ARDS project\ards_data.xlsx", True, "ards_data!A1:A50"
The problem is that the range will vary for each file, so I can't do it this way. I wish there was a way I could use the command Like "c_" in obtaining the columns I need only, but I just don't know how. Any help would be appreciated.

How do I get the unformatted cell value in an Excel source in SSIS

I've got a problem with importing an SQL spreadsheet into SSIS.
The spreadsheet has values in its columns, such as 40.09, however the cell has a custom format on it so it displays as $40 and this is the value that SSIS attempts to bring in.
I can't change the source spreadsheet as it is supplied by a vendor, and the purpose of this package is to automate the import of this spreadsheet. I tried changing the data type of the external and output columns of the Excel source to currency however at runtime, I received an error about not being able to convert due to loss of precision. The annoying thing is it correctly picked up another column as currency (which I'm guessing is because this column has values within the first 8 rows?).
Any advice on how to get the unformatted value?

Export different sized tables to same excel tab in SAS

I have two tables A and B that have a different number of columns, with absolutely no match between the columns names but one differentiator (let's call it ID).
I'm programming a macro in SAS, so that it outputs an excel file such as:
each sheet within the excel is corresponding to an ID.
within each sheet, I have:
content of table A
empty line
content of table B
The problem is that I can't append rows of data in SAS because columns are non matching.
Any thoughts?
Thanks for your help!
You can use DDE for that - Dynamic Data Exchange Protocol. Basically what it does is simulating user's commands and clicks on various menus and buttons in Excel (and also in Word and some other applications) - or, more exactly, issues commands on now obsolete Macro Language for Excel ver. 4 (X4ML).
So, using DDE, you can in SAS program launch Excel, open or create workbook, create tabs (spreadsheets), put your data into specified cells range, format any single cell or range etc.
Here's a good intro into this topic:
http://www2.sas.com/proceedings/sugi26/p011-26.pdf

Resources