Dynamic sum based on cell text.

glynn1969

Board Regular
Joined
Nov 24, 2018
Messages
80
Office Version
  1. 365
Platform
  1. Windows
Hello - any help much apprciated.

I have managed to sort a large (varying) data set as below but need a formuale to sum up the values returned, however the number of returned vlaues will not always be the same.

For example below i have 4 areas to sum with 3,3,1,1 variables however next time i could have 2,2,4,2 variable in each section.

Is there a formulae i can enterin column C that can dynamically sum the values in each section. So looking in column A and summing each sub-service but also when it sees the word service then i sums the value associated to the service section but also all the above sub-service totals.

Might be too much of an ask i think.

Column AColumn BColumn C
1547.25
2848
384.5
Sub-Service -dig031_(sum three above)
498.5
541.5
678.5
Sub-Service -dig042_(sum three above)
799.2
Sub-Service -dig053_(sum one above)
878.8
Service-dig014_(sum one above)
Function -Child R&bSUM All sub-service and service totals

<tbody>
</tbody>
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I worked out a solution "=IFERROR(IF(SEARCH("*sERV*",K3,1)=1,(SUM($L2:L$3)-SUM($M2:M$3))),0)+IFERROR(IF(SEARCH("*fUNC*",K3,1)=1,(SUM($L2:L$3))),0)" but if anyone knows any better would be appreciated
 
Upvote 0

Forum statistics

Threads
1,214,424
Messages
6,119,404
Members
448,893
Latest member
AtariBaby

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