Lookup partial text and sum data based multiple cells

Rachel22

New Member
Joined
Aug 3, 2022
Messages
1
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
Hi All,

I am trying to find the following. I have a set of data for call duration for sales people.

1. I need to use a lookup formula to calculate the total duration of call time per sales person in one cell, pulling partial data of the person's name from Column B AND C.

2. Add a rule to this that if the number in the FROM column starts with +1 and add up the durations for these calls only.

The entire range is A1:E722

I trust someone can guide me on the best way to achieve these results?

Thank you
 

Attachments

  • EXCEL SHEET FOR FORUM .png
    EXCEL SHEET FOR FORUM .png
    119.4 KB · Views: 10

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi and welcome to MrExcel!

I'm not sure if the following formula is what you need, since in your image apparently no record satisfies the rules.

Dante Amor
ABCDEFGH
1FromToForwardResultDurationPersonSum
2+1 618-853- EvanLuvo Dunjwa 00:06:47Darryn00:00:00
307 - UKLuvo Dunjwa 00:02:47Luvo00:22:53
407 - UKTristan Fautley00:03:15Mick00:11:07
5David cowlin - +1 317-650Luvo Dunjwa 00:16:06
6+1 618-853- EvanMick Uk ext 80000:11:07
7
Hoja22
Cell Formulas
RangeFormula
H2:H4H2=SUM(IF(ISNUMBER(SEARCH("+1",$A$2:$A$722)),IF(ISNUMBER(SEARCH(G2,$B$2:$C$722)),$E$2:$E$722)))
Press CTRL+SHIFT+ENTER to enter array formulas.


----------------
NOTE XL2BB:
For the future, it would help greatly if you could give us the sample data in a form that we can copy to test with, rather that a picture.
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in
Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
----------------
 
Upvote 0
I agree with Dante's comments about XL2BB. Please consider for future use.

Are these the results that you are looking for? (For use with 365 and 2021)

22 08 04.xlsm
ABCDEFGHI
1FromToForwardResultDurationPersonSum (All)Sum (+1)
2+1 618-853- EvanLuvo Dunjwa 00:06:47Darryn00:00:0000:00:00
307 - UKLuvo Dunjwa 00:02:47Luvo00:25:4000:22:53
407 - UKTristan Fautley00:03:15Mick00:11:0700:11:07
5David cowlin - +1 317-650Luvo Dunjwa 00:16:06
6+1 618-853- EvanMick Uk ext 80000:11:07
Call Times
Cell Formulas
RangeFormula
H2:H4H2=SUM(FILTER(E$2:E$722,ISNUMBER(SEARCH(G2,B$2:B$722&C$2:C$722)),0))
I2:I4I2=SUM(FILTER(E$2:E$722,ISNUMBER(SEARCH(G2,B$2:B$722&C$2:C$722))*ISNUMBER(FIND("+1",A$2:A$722)),0))
 
Upvote 0
Are these the results that you are looking for? (For use with 365 and 2021)
If you need to include older versions then I think these with standard-entry should also be an option.

22 08 04.xlsm
ABCDEFGHI
1FromToForwardResultDurationPersonSum (All)Sum (+1)
2+1 618-853- EvanLuvo Dunjwa 00:06:47Darryn00:00:0000:00:00
307 - UKLuvo Dunjwa 00:02:47Luvo00:25:4000:22:53
407 - UKTristan Fautley00:03:15Mick00:11:0700:11:07
5David cowlin - +1 317-650Luvo Dunjwa 00:16:06
6+1 618-853- EvanMick Uk ext 80000:11:07
Call Times (2)
Cell Formulas
RangeFormula
H2:H4H2=SUMPRODUCT(ISNUMBER(SEARCH(G2,B$2:B$722))+ISNUMBER(SEARCH(G2,C$2:C$722)),E$2:E$722)
I2:I4I2=SUMPRODUCT(ISNUMBER(SEARCH(G2,B$2:B$722))+ISNUMBER(SEARCH(G2,C$2:C$722))*ISNUMBER(FIND("+1",A$2:A$722)),E$2:E$722)
 
Upvote 0
Or try

Book1
ABCDEFGHI
1FromToForwardResultDurationPersonSum (All)Sum (+1)
2+1 618-853- EvanLuvo Dunjwa 0:06:47Darryn0:00:000:00:00
307 - UKLuvo Dunjwa 0:02:47Luvo0:25:400:06:47
407 - UKTristan Fautley0:03:15Mick0:11:070:11:07
5David cowlin - +1 317-650Luvo Dunjwa 0:16:06
6+1 618-853- EvanMick Uk ext 8000:11:07
Sheet1
Cell Formulas
RangeFormula
H2:H4H2=SUMPRODUCT(--ISNUMBER(SEARCH(G2,B$2:B$722&"|"&C$2:C$722)),E$2:E$722)
I2:I4I2=SUMPRODUCT(ISNUMBER(SEARCH(G2,B$2:B$722&"|"&C$2:C$722))*(LEFT(A$2:A$722,2)="+1"),E$2:E$722)
 
Upvote 0

Forum statistics

Threads
1,215,606
Messages
6,125,814
Members
449,262
Latest member
hideto94

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