Counting the number of a instance of a word in a string if another cell equals a specific cell

aldea187

New Member
Joined
Apr 4, 2014
Messages
42
Hello everyone,

Looking for some help again on the our love hate with with this great application.

I have a base statement of = =IF(Jan!C[1]=RC[-2], SUMPRODUCT(LEN(Jan!C[11])-LEN(SUBSTITUTE(Jan!C[11],RC[-3],"")))/LEN(RC[-3]), " ")

I am looking to check if a column equals a cell, and if so count a cell in that row for another keyword

LocationCritical LevelJanFebMarApr
northhigh
southlow
eastmed
westCritical

<tbody>
</tbody>


The data is by month and has about 4000 records per. Let me know if any other data is needed.

Thanks in advance
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
In addition, the reason the Len statement and sumproduct is because there a list of items in the cell that it needs to scan through to get the data. An example would be:

|*User ID:* z123456|*User Name:* Last First|*Telephone:* +19999999999|*Region:* RN|*Country:* US|*Location:* Gray Court|*StructureCode:* |
| |[mailto:first.last@zf.com]|[]|

<tbody>
</tbody>
 
Upvote 0
So to expand.

In one workbook, I have my data

Ticket
Priority

<tbody>
</tbody>
Created

<tbody>
</tbody>
Updated

<tbody>
</tbody>
Resolved

<tbody>
</tbody>
Status

<tbody>
</tbody>
Affected Enduser Details

<tbody>
</tbody>
1low
9-4-20149-5-20149-6-2014closed
| *User ID:* z123456| *User Name:* micky mouse | *Telephone:* +5555555555| *Region:* RN | *Country:* US | *Location:* Northville | *StructureCode:* |
| | [mailto: ] |

<tbody>
</tbody>
2medium9-5-20149-6-2014progress
| *User ID:* z234567| *User Name:* daffy duck | *Telephone:* +6666666666 | *Region:* RN | *Country:* US | *Location:* Gray Court | *StructureCode:* |
| | [mailto:] |

<tbody>
</tbody>
3critical9-6-20149-7-20149-8-2014Closed
| *User ID:* z345678| *User Name:* Winnie TePuhh | *Telephone:* +7777777777 | *Region:* RN | *Country:* US | *Location:* Lapeer | *StructureCode:* |
| | [mailto: ] |

<tbody>
</tbody>

<tbody>
</tbody>


This data i have for each month. so in the other workbook, i have my data

LocationPriorityJanFeb
Northville
Low
Grey CourtMedium

<tbody>
</tbody>

What i am looking for is to count when northville has low priority and so on. Above is a mix of a few that i have used for other types of data pulls, but I am having issues at this point with this double check.

Hope this additional information helps.
 
Upvote 0

Forum statistics

Threads
1,215,038
Messages
6,122,798
Members
449,095
Latest member
m_smith_solihull

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