Solved

Excel 2013 Sum calls based on first two digits.

Posted on 2014-10-02
9
138 Views
Last Modified: 2014-10-06
Hi,

I am currently trying to find the cost for telephone calls made from number 123-456789 to numbers starting with 7 and then sum the costs for all those calls. See example below.

The only thing is that it must not contain numbers that start with 77

I will then do similar matches with other numbers, say starting with the number 6.

Is this possible without very complicated macros?

From               To                  Cost
123-456789      71574588      0,2 - Included
123-456789      72574588      0,2 - Included
123-456789      73574588      0,2 - Included
123-456789      74574588      0,2 - Included
123-456789      75574588      0,2 - Included
123-456789      76574588      0,2 - Included
123-456789      77574588      0,2 - Not Included

SUM = 1,2.
0
Comment
Question by:MarcusSjogren
  • 5
  • 4
9 Comments
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 40357472
see the attached example.
Book1.xlsb
0
 
LVL 4

Author Comment

by:MarcusSjogren
ID: 40364304
Sorry for my late reply but I haven't been able to test it yet. But it looks promising and I will revert tomorrow!
0
 
LVL 4

Author Comment

by:MarcusSjogren
ID: 40364773
HI again,

Sorry but it does not fully comply with what I was looking for. I wanted it to match on both source and destination number.
Now it is only looking for all "to-numbers" that doesn't start with 77.

Any ideas how to include the source-number matching as well? Added a new row to the bottom of the example table below.

From               To                  Cost
123-456789      71574588      0,2 - Included
123-456789      72574588      0,2 - Included
123-456789      73574588      0,2 - Included
123-456789      74574588      0,2 - Included
123-456789      75574588      0,2 - Included
123-456789      76574588      0,2 - Included
123-456789      77574588      0,2 - Not Included
223-456789      71574588      0,2 - Not Included
0
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 40364787
please find attached.
Book1.xlsb
0
 
LVL 26

Accepted Solution

by:
ProfessorJimJam earned 500 total points
ID: 40364793
please bear in mind that my earlier formula was a correct solution to what you have asked initially.  what you have added  in your latest comment, is an additional condition which wasn't part of your initial question.

anyways, i have included now this new condition into the attachment just uploaded few seconds earlier.
0
 
LVL 4

Author Comment

by:MarcusSjogren
ID: 40364798
Hi,

Yes - I realize that I was too unclear with my request in my first comment, sorry about that.

Second one is working like a charm. Thanks a lot for your swift help!
0
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 40364799
cell c11  shows the solution.

please see attached.
0
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 40364800
you are welcome.

glad it worked.
0
 
LVL 4

Author Closing Comment

by:MarcusSjogren
ID: 40364801
Very quick and correct answers!
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Difference between Office 2013 fresh install and update from 2007 5 105
Password Protecting PDF's 8 56
Link to a specific evernote 6 108
Office 2010 and Skype for Business 5 781
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
The advancement in technology has been a great source of betterment and empowerment for the human race, Nevertheless, this is not to say that technology doesn’t have any problems. We are bombarded with constant distractions, whether as an overload o…
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question