Excel With VBA

poonamkvp

New Member
Joined
Feb 19, 2014
Messages
2
I have 24 hours Road Survey Data in different direction and different Vehicles and these datas at 15 min intervals and these datas are in excel sheet . I want to sum each hour's values eg. (07.00-07.15),(07.15-07.30),(07.30-07-45),(07.45-08.00) I want to add values for these time periods.Then I want to proceed and add all values for the next hour, i.e. between 07.00 and 08.00, and i need Peak Hour Value,Total Hours and Pie & Line chart .
I need these calculations are using vba programming.For example, THIS IS MY DATA FORMAT


timecartwowheelerautominibusbus3wgoodslcvhcvmavcyclec.ricksawothersT.P.VT.G.VT.S.VT.VT.V(PCU)
7.00-7.1578935455120840
7.15-7.3012681514161389526
7.30-7.456238795612323
7.45-8.007218172523227615712
8.00-8.15429687126834
8.15-8.3078945515424522
8.30-8.457894561236974
8.45-9.00141516171819121314151914
up to
text day
morning
5.00-5.151425141414481719814
5.15-5.301214151718189161412151877
5.30-5.451223456789141
5.45-6.0014528697145896
6.00-6.15121417181916151213111417
6.15-6.30545849422678768946434758
6.30-6.451213141515614171819141516
6.45-7.00121314141414141414141414
totalsum ofsum ofsum of
24 hourscarstwo wheeler........................................others

<tbody>
</tbody>
T.P.V=Total Passenger Vehicles(sum of car+t.w+auto+minibus+bus)
T.G.V=Total Goods Vehicles (sum of 3w Goods+lcv+hcv+mav)
T.S.V=Total Slow Moving Vehicles(cycle+cycleRickshaw+others)

T.V=Total Vehicles(sum of T.P.V+T.G.V+T.S.V)
<o:p> </o:p>

HourlyValue : sum of 15 minutes<o:p></o:p>

<o:p> </o:p>

Peak Hour :Which time the large amount of vehicles will come ,that time is peakhour<o:p></o:p>

<o:p> </o:p>

Total Hours : sum of every one hour value<o:p></o:p>


Every Direction has like this .How to generate these coding in VBA?Can anyone please help?Because i am new for VBA.Thanks
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,215,219
Messages
6,123,687
Members
449,117
Latest member
Aaagu

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