Formula help

Coachclw87

New Member
Joined
Dec 8, 2017
Messages
7
I have a set a columns that are listed below:

P9: 34R+ 30H+
P10: 34R-
P11: 21D+ 1H#
P12: 34R- 21H+
P13: 1H+

I am using the formula: =SUMPRODUCT(--(ISNUMBER(SEARCH(" "&'Code Chart'!$D$5," "&$P$9:$P$13)))) in another cell to count the number of cells that contain 1H. This formula should result with answer being 2. With P11 and P13 both containing 1H In the formula above it is pulling 1H from a cell in a different sheet. This formula works for me just fine. The result of the formula will be in a certain cell. In a different cell I need a formula that counts the number of cells that contain "D" as well as 1H. I know the answer I am looking for based on the columns above should be 1 with P11 being the one cell that contains both.

Any suggestions?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
See if this works for you.
@MARZIOTULLIO - There is an issue with your formula in that if cell P12 had a D in it it would add this to the count, but in a previous post OP stated that 21H and 1H are different, so things like 31H, 21H etc. would not be included in a count for 1H.
Excel Workbook
PQ
7Contains "D" and 1H
81
934R+ 30H+
1034R-
1121D+ 1H#
1234R- 21H+
131H
Sheet
 
Upvote 0
I have to use the formula I put in my post for a few reasons. If I use the formula you provided, it will count 21H as 1H cause it has 1H in it. So the formula I am using takes into account a space in front of 1H. Also, the 1H may not always be what I am looking for...so in the formula I have in my first post is pulling from a cell from a different sheet. What ever is in that cell that particular day I am using it is what I need it to count. The "*d*" part I know but I can't get it to work.
 
Upvote 0

Forum statistics

Threads
1,223,754
Messages
6,174,311
Members
452,554
Latest member
Louis1225

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