Formula Assistance

jehbro

New Member
Joined
Jun 3, 2011
Messages
1
I have a spreadsheet where I am trying to extract some information from raw data.

In Column F there is a list of telephone numbers and in Column D there is a number which equates to duration in minutes.

I have to break down all of the data into different areas. So I currently have many lookups similar to =SUMPRODUCT(--(LEFT($F:$F,4)="1281")) This will find all of the telephone numbers that begin with 1281 in Column F. For example, on one sheet the total instances of 1281 is 19.

What I need to be able to do is lookup those 19 instances but then also lookup column D and sum the total duration in minutes for all 19 instances of 1281 only.

Any ideas on a formula I would use to do this?

Thanks in advance!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I have a spreadsheet where I am trying to extract some information from raw data.

In Column F there is a list of telephone numbers and in Column D there is a number which equates to duration in minutes.

I have to break down all of the data into different areas. So I currently have many lookups similar to =SUMPRODUCT(--(LEFT($F:$F,4)="1281")) This will find all of the telephone numbers that begin with 1281 in Column F. For example, on one sheet the total instances of 1281 is 19.

What I need to be able to do is lookup those 19 instances but then also lookup column D and sum the total duration in minutes for all 19 instances of 1281 only.

Any ideas on a formula I would use to do this?

Thanks in advance!

Try something like...

=SUMPRODUCT(--(LEFT($F:$F,4)="1281"),$D:$D)
 
Upvote 0
I have a spreadsheet where I am trying to extract some information from raw data.

In Column F there is a list of telephone numbers and in Column D there is a number which equates to duration in minutes.

I have to break down all of the data into different areas. So I currently have many lookups similar to =SUMPRODUCT(--(LEFT($F:$F,4)="1281")) This will find all of the telephone numbers that begin with 1281 in Column F. For example, on one sheet the total instances of 1281 is 19.

What I need to be able to do is lookup those 19 instances but then also lookup column D and sum the total duration in minutes for all 19 instances of 1281 only.

Any ideas on a formula I would use to do this?

Thanks in advance!
If the phone numbers are TEXT strings...

Book1
DEF
224_1281-100-2011
360_1000-112-1234
478_1281-222-3265
557_2314-128-1281
623_1281-000-0001
Sheet1

=SUMIF(F:F,"1281*",D:D)

Or, if you use a cell to hold the criteria:

A2 = 1281

=SUMIF(F:F,A2&"*",D:D)
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,176
Members
452,893
Latest member
denay

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