Can I add based on columns that contain a specific word in Power Query

ecrodrig

Board Regular
Joined
Jan 21, 2022
Messages
99
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hello, I have done the following with some data I need calculated:

1 - I have grouped my rows and got the counts I required for each of my headings
2 - I pivoted my Column
3- Now that I have my pivoted column, I need to do some calculations.

My Columns have the following headings: In Progress (18), Just Assigned (4), WithDrawn (2), PCR-In Progress (4)

What I want to be able to do is get the sum of everything that contains the word "In progress" (In Progress and PCR-In Progress) + Just Assigned. So my answer should be a total of 26

Is there a formula I can use for this?

Any help would be greatly appreciated. Many thanks for considering my request.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Are you looking for something more complex than adding a Conditional Column that sums the "In Progress" and "PCR-In Progress" columns together?
 
Upvote 0
Add a column in PQ and then create an if-then statement using the Text.Contains Formula. You can then either filter or group on that new column to get your sum results.
 
Upvote 0
Solution
Add a column in PQ and then create an if-then statement using the Text.Contains Formula. You can then either filter or group on that new column to get your sum results.
So what I came up with was I created a conditional column to give me those fields and then grouped and went from there. So basically followed what you stated :) Had to take some time to get there but trial and error ha ha. Thanks for the response.
 
Upvote 0

Forum statistics

Threads
1,214,621
Messages
6,120,568
Members
448,972
Latest member
Shantanu2024

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