insert record to a new worksheet - excel-formula

Currently I have a weekly report workbook and import export workbook.
In Weekly report, I have 3 worksheet iron ore, steel scrap and wire rod.
Every time user enter these fields in any of the 3 work sheet in weekly report
Index Contract no Seller Bank Buyer Issuing Bank Product Vessel
I need to reflect it in import export workbook.
Is it possible?

Something like that maybe?
=IF([Weekly_report.xls]Sheet1!A2="";"";[Weekly_report.xls]Sheet1!A2)

Related

Excel: Parametrizing using Microsoft Query

I use Excel as front end to display data from a database. Concretely, I have customer information in a MariaDB database and with sql I extract for each customer
information from the database using Microsoft Query/ODBC:
SELECT name, n_consultation
FROM consultation
WHERE customer_id = 1
So, for each customer I have one Excel workbook with five sheets where each sheet has another sql-query with the same customer.
To create a new Excel workbook I make a copy of the Excel workbook of customer 1, change name of the workbook and in each sheet I change the WHERE part by changing
the customer_id = 1 to customer_id = 2. This I can do quite fast by short cuts (ALT+V, J, etc.).
Having 10 customer and 5 sheets for each workbook I have to do 50 changes and this is feasible. But in case of 100 customer this is not manageable. Is there a
way to use a parameter with Microsoft Query/ODBC?
For example, the queries could be written with:
SELECT name, n_consultation
FROM consultation
WHERE customer_id = #id
and #id can be defined in the first sheet.
If this is not possible I suppose that the only alternative is using VBA.
I propose to change the SQL syntax at Queries & Connection--> Properties --> Definition tab like follows
WHERE customer_id = ?.

Attendance Sheet in Google Sheets Using forms

This is a pseudo code for my excel work
IF sheet1(column(range)).value IS Exit in sheet2(column(range)).value on specific(date) in sheet2(column(range)).value(date) Then print "P" Else print "A"
Hello guys i create a google form for employee attendance so i want that when employee submit their form and automatic update in daily attendance sheet in google sheet.
but i don't find any solution regarding this issue and i need to create like in images Daily Attendance Sheet

Is there a way to use VBA to change the language in VBA generated worksheets?

I was assigned a project at work to develop a Macro that would automatically take financial data from an Excel table and generate credit notes and invoices for customers. I have the Macro developed already it is working the way it should, but the issue I am running into is with the language that is used for each invoice.
When generating credit notes, the Macro is taking the the invoices month of issue from the financial data table and displaying then as them as the months where credit was issued to the customer. i.e., a customer is requesting a partial refund on transactions from a period of time (say Feb.2019 - Apr. 2019) it will be displayed as:
February 2019 (02-19) -20.20
March 2019 (03-19) -32.03
April 2019 (04-19) -24.21
The problem is that my primary working language is English, but my company works in several European marketplaces and the invoices and credit notes have to be displayed in the language of the market where the customer is located.
So if an Italian customer requests an invoice, the months displayed must be listed as
Febbraio 2019 (02-19) -20.20
Marzo 2019 (03-19) -32.03
Aprile 2019 (04-19) -24.21
However, when running the Macro it still displays the issuing months in English when it should be displayed in the language of the market. The entirety of all invoices and credit notes created with this Macro are generated in the correct language, but since the Macro is taking the issuing months from the data table it automatically displays them in English.
Is the any way to ensure that it displays the issuing months in the required language?
I already know that the language settings can be changed for the entire workbook, but I still run into the same problem as I would have to manually change the issuing language each time I run the Macro to ensure the issuing month is correct?
To format a date in another regional setting you need to change the number format of the date for the desired range of cells. Eg. format the cell pressing Ctrl+1 to get the following dialog, and choose the regional setting ("Gebietsschema") for the country you desire.
Image 1: Change the regional setting for the date (sorry for the German screenshot).
Alternatively use the Range.NumberFormat property to format the cell with VBA:
.NumberFormat = "[$-it-IT]d mmmm yyyy;#"
Note that these both work if your dates are real date values but don't work if your dates are text. If they are text you need to change them into real dates.

Trying to set up a summary sheet for data validation

I've created a workbook for a friend who owns her own business. The workbook includes a sheet for each month, with Data Validation to determine the service, price, products, etc. It also indicates a method of payment.
She's asked that I update the summary sheet to not only show the totals per month, but to also show the total for each method of payment.
I'm having a hard time finding the right way to do this. Since this could change for each client, I imagine I'll have some sort of If statement, but I don't have enough experience to be able to successfully write this out (at least not in excel).
Any help is greatly appreciated. Thanks!

SSIS Realtime scenarios-Send Mail Task

how to get email from send mail task when Excel sheet have records daily
Example: I have 10 records in excel sheet on Monday
12 records on Tuesday
7 records on Wednesday
no records on Thursday on so on.
Scenario: If records are there i get mail. if no records are there i didn't get mail daily
Thanks
Here is what you should do:
Set up a User variable with the scope of the whole package
Use a row count transformation between the source and destination and stored it in the user variable
In control flow added constraints between data flow task and send mail task so that one or another 'path' was taken dependant on row count

Resources