Array Formula

D310633

New Member
Joined
Apr 26, 2013
Messages
9
Hi,

I have this table below...
I'd like to ask assistance what array formula I can use to add the values for those cells that has "L :"?

Thank you in advance!
2/122/132/142/152/16
PPL : 13PL : 3

<tbody>
</tbody>





<tbody>
</tbody><colgroup><col span="5"></colgroup>
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Re: Help Needed: Array Formula

Hi,

Are you saying you want to add the numbers for cells with L, in your sample, 13+3?
 
Upvote 0
Re: Help Needed: Array Formula


Excel 2010
ABCDE
1
2PPL : 13PL : 3
3
416
5
2b
Cell Formulas
RangeFormula
E4=SUMPRODUCT(SUBSTITUTE(REPLACE(A2:E2,1,1,0)," : ",0,1)+0)
 
Last edited:
Upvote 0
Re: Help Needed: Array Formula

Hi Dave,

Thank you very much!
I tried the formula and it works....

I have a follow up question, does the length of the table matter?
The actual table has column from D to Z, when I expanded the column using the formula you created, it provides an error value.
 
Last edited:
Upvote 0
Re: Help Needed: Array Formula

Hi jtakw,

Yes, That's what my goal is.

The actual table has the following headers:
Column A1: ID
Column B1: Name
Column C1: Manager's Name
Column D1 to Z1: Date

The data on the table shows "L : 13" where "L" stands for "Late" and the number value is the duration in minutes.
Based on the given data, I would like to get the total Late duration.

Thank you very much!
 
Last edited:
Upvote 0
Re: Help Needed: Array Formula

Hi Dave,

Thank you very much!
I tried the formula and it works....

I have a follow up question, does the length of the table matter?
The actual table has column from D to Z, when I expanded the column using the formula you created, it provides an error value.

Hi

Can you post an example where you get an error using Dave's formula?
 
Upvote 0
Re: Help Needed: Array Formula

Hi pgc01,

Thank you for your response.
I tried to study what the problem was when i expanded the range from the original formula provided by Dave.

It was because there were other data from the range that has more than 6 characters and without numbers.

So I tweaked the formula a little and now it works the way I wanted it to.

This has been fixed.

Thank you everyone for your help!!!
 
Upvote 0
Re: Help Needed: Array Formula

Hi!

Try this array formula (use Ctrl+Shift+Enter to enter the formula):

=SUM(--IFERROR(REPLACE(D2:Z2,1,SEARCH(" : ",D2:Z2)+2,""),0))

Markmzz
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,840
Members
449,096
Latest member
Erald

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