Count comma separated value with one of criteria in between commas

joonpr

New Member
Joined
May 18, 2018
Messages
1
Sum1-Jan2-Jan3-Jan4-Jan5-Jan6-Jan
?HQ5HQ1HQ1LQ1LQ3LQ2

<tbody>
</tbody>

HQ=High quality
LQ=Low quality

Hi, I have a gantt chart that I log how many high-quality products and low-quality products that are produced per day. How do I keep the get a sum with a criteria for each, "HQ", and "LQ" to differentiate the sum for each? I want the cell to contain the HQ, and the number of product together in one cell.

The reason I need the HQ or LQ label in the cell is to conditionally format the days with HQ and LQ entries.

Is there a way to count if I were to separate the cell content using commas? HQ,5 and what would be the formula to count it?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Welcome to the MrExcel board!

Not certain I have understood what you want but if this, copied across to B2, does what you want.

Excel Workbook
ABCDEFGH
1HQLQ1-Jan2-Jan3-Jan4-Jan5-Jan6-Jan
276HQ5HQ1HQ1LQ1LQ3LQ2
SUM
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,800
Messages
6,121,641
Members
449,044
Latest member
hherna01

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