rajeshi1980

New Member
Joined
May 9, 2013
Messages
14
Hello,

Need help in calculating Call Detail Record of few mobile numbers.

Have already calculated all new rates as per new tariff, but am not able to deduct free minutes from the local charges.

basically in the raw cdr, with values, i want to make $0 to the top 500 minutes of local calls.
Can someone help me with this...
 
ABCDEFGHI
1dttmorigdesttypdurloc cum duradj duramt
202/12/201308:30:003344553237738737Local Call0:02:000:02:000:00:000
302/12/201308:40:003344553239992222222ILD0:00:320:02:000:00:3218.2
402/12/201308:44:003344553233362733Local Call0:07:000:09:000:00:000
502/12/201308:49:003344553233362733Local Call0:48:000:57:000:47:005.2
602/13/201308:30:003344553237738737Local Call0:02:000:59:000:02:001.2
702/13/201308:40:003344553239992222222ILD0:00:320:59:000:00:3218.2
802/13/201308:44:003344553233362733Local Call1:12:002:11:001:12:009.8
902/13/201308:49:003344553233362733Local Call0:48:002:59:000:48:005.2

<tbody>
</tbody>

Using the 2nd method- I also added a "helper" column to show cumulative local call duration in column G.

Make your sheet look like the table above.
formula in G2: =SUMIF(F$2:F2,"Local Call",G$2:G2)
formula in H2: =IF(F2="Local Call",IF(H2<10/60/24,0,IF(H2-G2<10/60/24,H2-10/60/24,G2)),G2)

Fill down column G and H.
Then change your formula in column I to be based on column H instead of F.
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,216,109
Messages
6,128,880
Members
449,477
Latest member
panjongshing

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