Excel file Homework1 - invoices.xlsx contains data about invoices of a reseller of office equipment that ships its products to customers in several countries. The tables in the workbook refer to data collected from different systems within the company.
a) Copy worksheet “InvoiceHeader” into a new worksheet. For each invoice in the new worksheet, show the matching information from the other tables: Invoice date, Invoice Number, Customer ID, Customer Name, Country, Invoice Quantity, Unit Cost, Unit Price.
b) In the worksheet in (a), calculate gross profit of each invoice as total sale minus total cost of all units of the invoice.
c) Calculate tax on profits for each invoice. Create two columns. One column must show if tax is due for the order (YES or NO). Tax is due if the gross profit of the order is greater than $0. The other column must show the tax rate. The rate is 0% for negative gross profit. For positive gross profit, the tax rate depends on profit according to the following table:
Gross Profit |
Tax rate |
$0 to $1,000 |
10% |
$1,000.01 to $5,000 |
20% |
$5,000.01 or more |
25% |
(Tip: you may need to specify a maximum profit in the table. You can use $100,000.)
d) Calculate Net profit as “Gross profit” * ( 1 – “tax rate” ) of each order.
e) Calculate Total net profit as the sum of Net profit of all orders.
Excel functions you may want to use: Vlookup, IF
This is very crude form of submitting questions (Screen Shot) which is not helpful in answering the response & specifically it will be very difficult for reader as well. The reader should have provided excel table.
The solution depends on simple excel formula like Vlookup, Referencing cells, Sum, If with nesting formula. It will be difficult to explain this excel formula functionalities and syntax since this is altogether difference subject.
Since the screen shots only available i am trying to explain the things with minimal sample data :
Sample Invoice Header | ||
Invoice Date | Invoice Number | Customer ID |
5/8/2005 | ORDST1025 | BAKERSEM0001 |
4/12/2007 | STDINV2251 | BAKERSEM0001 |
5/27/2004 | INV1012 | KELLYCON0001 |
Sample Customer Header | ||||||
Customer ID | Customer Name | Address | Country | City | State | PIN |
BAKERSEM0001 | Baker's Emporium Inc | 789 University Ave | USA | Fort Waync | IN | 46802-3918 |
Sample Invoice Data | |||
Invoice Number | Quantity | Unit Cost | Unit Price |
ORDST1025 | 5 | 879.05 | 1759.95 |
For Solution we need following fields :
Invoice Date | Invoice Number | Customer ID | Customer Name | Country | Invoice Quantity | Unit Cost | Unit Price | Gross Profit per unit | Gross profit per Invoice | Tax due (Yes / No) | Tax Rate | Net Profit |
5/8/2005 | ORDST1025 | BAKERSEM0001 | Baker's Emporium Inc | USA | 5 | 879.1 | 1759.95 | 881 | 4405 | Yes | 20% | 3523.6 |
3523.6 |
- The first three fields is need to copied from Invoice header filed
- Customer name and customer country is fetched through "Vlookup" from "Customer Header" data / table considering customer code which is unique field in each table
- Invoice Quantity, Unit cost and Unit price is fetched through "vlookup" from Invoice detail data/table considering "Invoice Number" which is unique filed in each table
- Gross profit per unit is derived --> Unit price - Unit Cost
- Gross Profit Per Invoice is derived --> Gross Profit * Invoice Quantity
- The tax rate is derived through "IF" formula with nest i.e. =IF(J5<0,0,IF(J5<1000,10%,IF(J5<5000,20%,25%)))
I am showing excel formula for the above results :
Invoice Date | Invoice Number | Customer ID | Customer Name | Country | Invoice Quantity | Unit Cost | Unit Price | Gross Profit per unit | Gross profit per Invoice | Gross Profit due (Yes / No) | Tax Rate | Net Profit |
=A14 | =B14 | =C14 | =VLOOKUP(C5,A20:G21,2,0) | =VLOOKUP(C5,A20:G20,4,0) | =VLOOKUP(B5,A24:D25,2,0) | =VLOOKUP(B5,A24:D25,3,0) | =VLOOKUP(B5,A24:D25,4,0) | =H5-G5 | =I5*F5 | =IF(J5>0,"Yes", "No") | =IF(J5<0,0,IF(J5<1000,10%,IF(J5<5000,20%,25%))) | =J5*(1-L5) |
=SUM(M5) |
Where :
- The current row in excel worksheet is 5, hence Customer name refers to C5 which is actual refering to Customer ID
- Cell A14-C14 refers to Sample Invoice Header table
- Cell A20:G20 refer to Customer Header data table
- Cell A24:D25 refers to Invoice detail table
Excel file Homework1 - invoices.xlsx contains data about invoices of a reseller of office equipment that...
from the table "X" (a), calculate gross profit of each invoice as total sale minus total cost of all units of the invoice. c) Calculate tax on profits for each invoice. Create two columns. One column must show if tax is due for the order (YES or NO). Tax is due if the gross profit of the order is greater than $0. The other column must show the tax rate. The rate is 0% for negative gross profit. For positive...
In the worksheet in (a), calculate gross profit of each invoice as total sale minus total cost of all units of the invoice. c) Calculate tax on profits for each invoice. Create two columns. One column must show if tax is due for the order (YES or NO). Tax is due if the gross profit of the order is greater than $0. The other column must show the tax rate. The rate is 0% for negative gross profit. For positive...
Normalizatoin and SQL Join Display all states the LifeStyle has a business (customer or supplier). Show state and country. Display all states the LifeStyle ha State Country Beijing China 1 CA USA 2 England 3 UK 4 GA USA IL USA 6 NY USA 7 Ontario Canada 8 South Korea Suwon 9 Tokyo Japan 10 USA WA L APPENDIX B: LIFESTYLE DATABASE TABLES Sales.Customers Table Contact Email Country Customerid PostalCode StreetAddress State CustomerName Cty [email protected] John White USA 12012 Just...
Database Design Problem You have been hired to review the accuracy of the books of Northeast Seasonal Jobs International (NSJI), a job broker. NSJI matches employers whose business is seasonal (like ski resorts) with people looking for part time positions at such places. Employers are located in the Northeast (New England), but recently expanded to include parts of Canada. NSJI maintains all of this information in a flat file spreadsheet (see attached layout of the spreadsheet structure). Required: 1) From...
Create SQL statements based on the given tables: Code to create the tables: CREATE DATABASE LAB4DB; USE LAB4DB; CREATE TABLE CUSTOMER ( CUS_CODE int primary key, CUS_LNAME varchar(15), CUS_FNAME varchar(15), CUS_INITIAL varchar(1), CUS_AREACODE varchar(3), CUS_PHONE varchar(8), CUS_BALANCE float(8) ); INSERT INTO CUSTOMER VALUES('10010','Ramas','Alfred','A','615','844-2573','0'); INSERT INTO CUSTOMER VALUES('10011','Dunne','Leona','K','713','894-1238','0'); INSERT INTO CUSTOMER VALUES('10012','Smith','Kathy','W','615','894-2285','345.86'); INSERT INTO CUSTOMER VALUES('10013','Olowski','Paul','F','615','894-2180','536.75'); INSERT INTO CUSTOMER VALUES('10014','Orlando','Myron','','615','222-1672','0'); INSERT INTO CUSTOMER VALUES('10015','O''Brian','Amy','B','713','442-3381','0'); INSERT INTO CUSTOMER VALUES('10016','Brown','James','G','615','297-1228','221.19'); INSERT INTO CUSTOMER VALUES('10017','Williams','George','','615','290-2556','768.93'); INSERT INTO CUSTOMER VALUES('10018','Farriss','Anne','G','713','382-7185','216.55'); INSERT INTO CUSTOMER VALUES('10019','Smith','Olette','K','615','297-3809','0'); /*...
Need general journal transactions for 31, 35, 36, 37, 38, and 41. Excel File Edit View Insert Format Tools Data Window Help Page Layout Formulas Data Review View AA = = = Wrap Text Home Insert R Xcut © Copy - Paste Format A x B I U Morge & Center f June 30: Check #5013 was used to pay for a cash dividend of $0.21 per share to Jeremy, a shareholder of Byt B The Computer Equipment has an...
please answer these queries. 1. List the artist name of the artists who do not have a webaddress and their leadsource is “Directmail” 2. List the names of members in the artist called 'Today'. 3. Report the total runtime in minutes FOR EACH album in the Titles table. 4.List the firstname, lastname of members who are represented by the salesperson “Lisa Williams” 5.List EACH salesperson’s firstname along with the number of Members that EACH SalesPerson represents. DROP TABLES IF EXISTS...