# Create VBA code as a macro (or some way) to calculate automatically

A small job. Need someone to make a excel-macro (or any other way it can be done) to do a series of calculations on a sheet of excel workbook. It's a small job. Details will be discussed.

Look into the file
Turnover Calculation:
TurnOver (as per Income Tax) = Sum of ((abs(Profits)) + (abs(Losses)))
Profit or Loss = Sell Value - Buy Value
Buy / Sell Value = Quantity x Rate

On a particular date, either there's 1 trade or many.
To calculate TURNOVER trade-wise, QUANTITIES of Buy and Sell need to match.
(As one can only sell what one has bought!)

but 1 transaction may not have happened in 1 step

take sum of G2 to G13
then
match the total you got with G14

ALso, if you noticed F2 to F13 says "S" meaning Sell
BUT F14 says "B" meaning Buy

Numbers won't match necessarily by dates. Because a person can buy today sell tomorrow or even later.

If total "S" quantity is matched to total "B" quantity then that's 1 trade.

The attached file has been updated.

Please refer to column "I" in blue and to its right

I have tried to calculate TURNOVER for total of 2 trades in the attached file.
Click on cell to understand formulas used

1. Calculate Amount (column "Quantity" x column "Rate")
2. Get a total of entries in column "Quantity" while referring to column "Type". So, if data starts with "S" go on adding "Quantity" until "B" is found in "Type"
3. If "B" is found in "Type" - refer to column quantity
4. Is the total "Quantity" column which has "S" = "Quantity" found for "B"
5a. If yes, populate columns "Total S" and "Total B"
5b. Calculate "Profit or Loss" in column L. Where, Profit or Loss = Total S - Total B
5c. Take the "Absolute Figure" from column L to column M
6. Move to row 15 to begin calculation for Trade 2
7. Notice -- entry F15 is "B" and G15 = 75
8. Notice -- entry F16 is "S" and G16 = 75
9. As quantities matched this becomes a complete trade. Trade number 2.

Keahlian: Pemrosesan Data, Excel, VBScript, Visual Basic

Tentang Pemberi kerja:
( 3 ulasan ) New Delhi, India

ID Proyek: #17814715

AkilaArun

Hi, I can get this done right away. A macro with an execute button should do the job. Looking forward to hear from you to proceed. Best Regards, Akila.K

₹900 INR dalam 0 hari
(37 Ulasan)
4.9

## 21 freelancer menawar dengan rata-rata ₹1174 untuk pekerjaan ini

paulodayto08

Hi Good day! A serious freelancer here! I have a lots of available time to this work. I can help you to complete this work, but need to know the full requirements to assess how long would it take to complete Lebih banyak

₹600 INR dalam 0 hari
(16 Ulasan)
3.5
Mokshith30

Hi I am "VBA Developer". Expert in Web Scraping & VBA Macros.. Outlook Automation i can scrape any website.. & Python programming, Google Apps Script coding, Wordpress Developement, HTML, VB.Net I will do Lebih banyak

₹1300 INR dalam 1 hari
(9 Ulasan)
2.7
abhaya2

Hi, I am an expert in excel and will do this perfectly

₹2250 INR dalam 2 hari
(1 Ulasan)
2.7
maguirrer

Hello, I can help you with this job, please send me a message with a little more information and I can do it inmediately and send you back asap

₹750 INR dalam 1 hari
(7 Ulasan)
2.4
srijanagrawal21

I have been working on the excel and VBA for more than 4.5yrs. I have good working experience on VBA coding. I have worked from scratch and also modified various VBA codes. I can work on tight deadlines with high accur Lebih banyak

₹1050 INR dalam 1 hari
(7 Ulasan)
2.4
noyonuzzamanmout

Dear Hiring Manager, This letter is to express my interest in discussing this position posted on freelancer.com. The opportunity presented in this listing is very appealing, and I believe that my experience and accura Lebih banyak

₹850 INR dalam 1 hari
(0 Ulasan)
0.0
MgtEng

Dear Sir/Madam, I have done Macros and I can do this task, Please share the details further. Thank you,

₹1300 INR dalam 1 hari
(0 Ulasan)
0.0
Jpg1807

I can work on project with an exceptional amount of energy . I have previously executed many projects which required excellent knowledge of and experience in MS-Excel.

₹2250 INR dalam 1 hari
(0 Ulasan)
0.0
ksudr1990

I may be new to this site, but I have good experience in this work I will deliver with high quality and ontime delivery.

₹1050 INR dalam 1 hari
(0 Ulasan)
0.0
₹1250 INR dalam 1 hari
(0 Ulasan)
0.0
vakash628444

I have more than 6 years experience and currently working as a VBA Developer in American Express. It's a global brand name so you can aspect good work within the time frame. I am excellent in vba/macro, excel, sql, ms Lebih banyak

₹750 INR dalam 1 hari
(0 Ulasan)
0.0
dhruvsuri

Hello, I am Dhruv Suri and I have been working as a Business Analyst for the past 2 years with a manufacturing company in California. I have professional knowledge of analyzing data on Excel pretty easily and I have al Lebih banyak

₹1300 INR dalam 1 hari
(0 Ulasan)
0.0
abhi13tri

I have worked on several excel VBA projects and have created files for maintaining inventory, error logging and computing availability of a software based on error logging.

₹600 INR dalam 1 hari
(0 Ulasan)
0.0
₹1250 INR dalam 2 hari
(0 Ulasan)
0.0
suditp

I am good at VBA and logic building. I can build code with good performance

₹1300 INR dalam 1 hari
(0 Ulasan)
0.0
₹1250 INR dalam 4 hari
(0 Ulasan)
0.0
MarcoACV

ill work on this and share a preview with you once ready

₹1750 INR dalam 1 hari
(0 Ulasan)
0.0
₹750 INR dalam 3 hari
(0 Ulasan)
0.0
nishitgala89

I have created an Excel Macro with GUI that is used for managing Expenses between peoples or Groups. It shows the settlement amount to be shared between people in the group. Its on the same lines as popular expense S Lebih banyak

₹850 INR dalam 1 hari
(0 Ulasan)
0.0
₹1300 INR dalam 14 hari
(0 Ulasan)
0.0