Count comma separated value with one of criteria in between commas

joonpr

New Member
Joined
May 18, 2018
Messages
1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Sum[/TD]
[TD]1-Jan[/TD]
[TD]2-Jan[/TD]
[TD]3-Jan[/TD]
[TD]4-Jan[/TD]
[TD]5-Jan[/TD]
[TD]6-Jan[/TD]
[/TR]
[TR]
[TD]?[/TD]
[TD]HQ5[/TD]
[TD]HQ1[/TD]
[TD]HQ1[/TD]
[TD]LQ1[/TD]
[TD]LQ3[/TD]
[TD]LQ2[/TD]
[/TR]
</tbody>[/TABLE]

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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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