+ Reply to Thread
Results 1 to 19 of 19

Extract Talk Time to Mobile Phones

  1. #1
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Extract Talk Time to Mobile Phones

    Hi

    I’m trying to develop a spreadsheet that will analyse phone call data made from my school’s extension number and school mobile phones (Caller Number) to mobile phone numbers (Callee Number).
    I’ve created two worksheets to analyse the call data. The first worksheet is called “Call Data” and the second is “Call Report”.

    Call Data Worksheet
    The data will be pasted into Columns A (Caller Number), B (Callee Number) and C (Talk Time (Seconds)) in the Call Data Worksheet. I’ve inserted a formula in to Column D (Talk Time (Decimal Minutes) to convert the seconds into decimal minutes. I’ve also inserted a formula in to Column E that rounds up the decimal minutes in Column D to the nearest minute.

    Call Report Worksheet
    I need a formula in the Column C (Total Talk Time to Mobile Numbers) in the Call Report Worksheet that will add up all rounded-up minutes (Column E of the Call Data worksheet) for each Caller Number (Column A of the Call Report worksheet) to mobile phone numbers only (i.e. the numbers that are 8-10 digit long and starting with any one of the following: 20…, 21…, 22…, 23…, 24…, 25…, 26…, 27…, 28…, 29…) in Column B of the Call Data worksheet.
    Please note: I have changed the actual phone numbers for privacy reasons.


    Thanks in advance.

    Alan L
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,201

    Re: Extract Talk Time to Mobile Phones

    Look at SUMIF/SuMIFS functions

  3. #3
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Re: Extract Talk Time to Mobile Phones

    Hi

    I tried to use a SUMIFS with OR logic but I can't get the formula correct.

    =SUM(SUMIFS('Call Data'!E:E,'Call Data'!B:B{"20*","21*","22*","23*","24*","25*","26*","27*","28*","29*"}))

    Can someone please help me with the correct formula?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Extract Talk Time to Mobile Phones

    You missed a comma:

    =SUM(SUMIFS('Call Data'!E:E,'Call Data'!B:B,{"20*","21*","22*","23*","24*","25*","26*","27*","28*","29*"}))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,201

    Re: Extract Talk Time to Mobile Phones

    This will give a total of ALL numbers

    =SUM(SUMIFS('Call Data'!E:E,'Call Data'!B:B,{"20*","21*","22*","23*","24*","25*","26*","27*","28*","29*"}))

    To select mobile numbers, I checked number length > 8 and checked the number prefix

    =IF(AND(LEN(A2)>=8,LEFT(A2,2)>="20",LEFT(A2,2)<="29"),SUMIFS('Call Data'!E:E,'Call Data'!A:A,A2),"")

  6. #6
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Re: Extract Talk Time to Mobile Phones

    Hi Ali

    Thanks for your correct. You must have a good eye for detail.

    I’m very much an amateur at this and unfortunately, the formula I developed doesn’t do what I want it to do. It looks like it totals up for all mobile phone as it gives the same total for all ‘Caller Numbers’ of 1881.
    I need a formula in the Column C (Total Talk Time to Mobile Numbers) in the Call Report Worksheet that will add up all rounded-up minutes (Column E of the Call Data worksheet) for each Caller Number (Column A of the Call Report worksheet) to mobile phone numbers only (i.e. the numbers that are 8-10 digit long and starting with any one of the following: 20…, 21…, 22…, 23…, 24…, 25…, 26…, 27…, 28…, 29…) in Column B of the Call Data worksheet.

    Alan L

  7. #7
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Re: Extract Talk Time to Mobile Phones

    Hi John

    Thanks for the better formula than I developed. I’ve pasted it in to cell C2 on the Call Report worksheet, but can’t get it to add up all rounded-up minutes (Column E of the Call Data worksheet) for each Caller Number (Column A of the Call Report worksheet) to mobile phone numbers. See the attached spreadsheet.

    Can you please help me?

    Alan L
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,201

    Re: Extract Talk Time to Mobile Phones

    =SUMPRODUCT(('Call Data'!E2:E8754),(LEN('Call Data'!A2:A8754)>=8)*(LEFT('Call Data'!A2:A8754,1)="2"))

    or

    =SUM(SUMPRODUCT(('Call Data'!E2:E8754),(LEN('Call Data'!A2:A8754)>=8)*(LEFT('Call Data'!A2:A8754,2)>="20")*(LEFT('Call Data'!A2:A8754,2)<="29")))

    Sums all mobiles

  9. #9
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Re: Extract Talk Time to Mobile Phones

    Hi John

    Thanks for your prompt response. I’ve copied and pasted you first new formula into Column C of the Call Report worksheet and filled down.

    Unfortunately, all figures are the same. I’ve attached the adjusted spreadsheet to show you.


    Alan L
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,201

    Re: Extract Talk Time to Mobile Phones

    You need to copy down the original formula I gave in post #5

  11. #11
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Re: Extract Talk Time to Mobile Phones

    Sorry, John I'm confused.

    Could you please send it to me in the spreadsheet I uploaded?

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,201

    Re: Extract Talk Time to Mobile Phones

    See the attached
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Extract Talk Time to Mobile Phones

    I interpret the request differently to the above. I take it that mobile numbers on the data sheet need to be summed for each person on the report sheet. Each person needs to be monitored for phoning mobile numbers.
    =SUMPRODUCT((LEN('Call Data'!$B$2:$B$8755)>8)*(LEFT('Call Data'!$B$2:$B$8755,2)>="20")*(LEFT('Call Data'!$B$2:$B$8755,2)<="29")*('Call Data'!$E$2:$E$8755)*('Call Data'!$A$2:$A$8755=A59))

    although this would take a long time computationally to be replicated for each number.

    perhaps add a helper column to the data sheet =AND(LEN(B2)>=8,LEFT(B2,2)>="20",LEFT(B2,2)<="29") and copy down, and then perform a pivot on the data filtering for this would be quicker

  14. #14
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Re: Extract Talk Time to Mobile Phones

    Hi

    Yes davsth, your interpretation of what I need is correct. I want a list of the 'talk time' made from school landline and mobile phones to monile phones. My apology for causing confusion.

    I've added a third worksheet (Call Report (Manual Example)), where I've manually calculated the total talk time made from school landline and mobile phones to moblile phone numbers. I hope this helps to clarify what I need.

    Could you please help me by changing the attached worksheet so that it performs the calculations automatically?

    Alan L

  15. #15
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Re: Extract Talk Time to Mobile Phones

    Sorry, I can't upload the adjusted file.

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Extract Talk Time to Mobile Phones

    What’s the problem with uploading the workbook?

  17. #17
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Re: Extract Talk Time to Mobile Phones

    Hi

    It was a file size problem. I've zipped the file and uploaded it.


    Alan L
    Attached Files Attached Files

  18. #18
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,201

    Re: Extract Talk Time to Mobile Phones

    See attached using formula from Davsth: spot on!!!

    Interpretation of your request was my fault not yours:
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Re: Extract Talk Time to Mobile Phones

    Thank you very much. It works great.

    All the best.

    Alan L

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. XLSM on Andriod/Mobile Phones
    By mangeshp4 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2019, 01:09 AM
  2. [SOLVED] Extract a mobile number from string AND remove the spaces?
    By Akshay in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-14-2018, 11:05 AM
  3. [SOLVED] Average Talk Time Per Category in a Pivot Table
    By sherylt13 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-22-2016, 08:19 PM
  4. Mobile Phones
    By anavasis in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-23-2014, 06:24 AM
  5. Mobile Phone Numbers/ Cell Phones
    By pdiminski in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 02-16-2010, 02:06 PM
  6. Replies: 3
    Last Post: 08-28-2008, 09:05 AM
  7. mobile phones numbers
    By sparky in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2005, 12:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1