Macro for total entries in excel sheet with break up

peermsk

New Member
Joined
Dec 19, 2016
Messages
4
Good day
i have an Excel Sheet consisting of below columns:
Wk A B C D E
Location Company Document Ref no Status
49 Muscat Sharaf Exp Visa 1234 on hire
49 Sohar Merchant Visit visa 4321 offhire
50 Salalah Star Transit 5678 leave
50 Sur Sharaf Crew Visa 9876 Joining
51 MAF Merchant Crew Visa 9898 Sick

Summary
Muscat Sohar Salalah Sur MAF Total

Week 49 1 1 2
Week 50 1 1 2
Week 51 1 1

Grant Todal 1 1 1 1 1 5

i need the total row wise and column wise to change automatically , when i add data in the rows for week 51 or Week 52 or week 53 week 54
every time i add data totals should change.
Kindly give some Macro/VB or conditional formating solution if any
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Are you looking for a SUM function?

Its pretty simple. Inside the cell that you want your total to be type
Code:
=SUM(
and then select your range you want to gather data from. Once the range is selected close the bracket with another...
Code:
)
and hit enter.

You should have something like this:
Code:
=sum(F2:F9)
Which will give you the total of all your selected cells.
 
Upvote 0
No pls find below my file and and how the totals should be

Sea Crew1289175708REDDIARPET GODHANDAPANI MANIMARANJ4716567INDIAMT SUN PLOEG20.11.2016SOHARSHARAFGODHABDAPANIONمهندس
Express visa1288474203KUNDNANI HARESH UTTAMCHANDZ2364834INDIAOTHER20.11.2016OTHERSHARAFSURIBAIONمهندس
Express visa1290736807GIOVANIS PANAGIOTISAN3232223GREECEMSC POSITANO22.11.2016SALALAHSHARAFPANAGIOTISONرجل أمن
Express visa1290734411CHRISTOS MOUSTAKASAM1777644GREECEMSC POSITANO22.11.2016SALALAHSHARAFPANAGIOTISOFFرجل أمن
Express visa1290813410ABHICHANDANI YOGESH RAMESHP1768384INDIAMSC FANTASIA22.11.2016MUSCATSHARAFCHANDRAONمدير عمليات
This week up to 22.11.2016 - Total 6 (Year Total 1716 visas)
No. of Visa MuscatSalalahSoharSurOther’sTotalBudgetVariance
Last Week12201630-24
Year to date 3517844191461617161410306

<colgroup><col><col><col span="11"></colgroup><tbody>
</tbody>




Are you looking for a SUM function?

Its pretty simple. Inside the cell that you want your total to be type
Code:
=SUM(
and then select your range you want to gather data from. Once the range is selected close the bracket with another...
Code:
)
and hit enter.

You should have something like this:
Code:
=sum(F2:F9)
Which will give you the total of all your selected cells.
 
Upvote 0
zF3mSfb.png


Like this?
 
Upvote 0
zF3mSfb.png


Like this?
No sir
every time i add a data - i mean a next line based on the location quantity should be added automatically and total subtotals too change automatically
say for example i add a data which shows location Sohar then in he below summary under Sohar 1 number to add and right side total to increase with 1
and column wise total too increase with 1
 
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,467
Members
448,965
Latest member
grijken

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top