Excel - Search entire column for string

gfuentes4

New Member
Joined
May 27, 2018
Messages
5
Hello,

I am not sure I am finding a way to do this online.

I want to count the number of times something happens each month by searing an entire column for a string value. If that specific string value is found, then check the corresponding column over to see if it matches a specific month, if it does, then add +1.

Example


This is where I would want everything to be copied to:
IncidentsJul-17Aug-17
Running11
Jogging1
Talking1

This is where I would be comparing the data from a different sheet:

DateClassification
7/16/2017Running
8/22/2017Running
8/28/2017Jogging
8/31/2017Talking

<tbody>
</tbody>

<tbody>
</tbody>
 
Based on your image from post # 3, my original formula should work, IF the ranges are correct, AND the dates in the top row are actual dates of the 1st of the month. Since that image doesn't show the row/column indicators, I can't help adjust the ranges for you in the formula.

If the dates are text values, there are other options, such as a hybrid from sunilbsrv2k's formula.

If you wish to show an Excel readable table, check out the HTML Maker link in my signature, that's what I used. The process is pretty simple, and there's even a YouTube instructional video if you have questions. You're more likely to get help if people can copy your data and test with it directly.
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,214,653
Messages
6,120,755
Members
448,989
Latest member
mariah3

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