If it's the right date and IF a cell contains a certain string.....

SandsB

Well-known Member
Joined
Feb 13, 2007
Messages
731
Office Version
  1. 365
Platform
  1. Windows
Two sheets in my file.

Sheet 1 has a date in column B and the free form text in column A may or may not contain the string #EOB.
Sheet 2 is where I want to count this stuff. Column A is the date and column B is where I need a formula to look at Sheet 1, look at only the rows where the date in column B (could be several hundred records with the same date) is the same as the date in Sheet 2 column A and give me the count of how many of those records have #EOB somewhere in column A. So.... a COUNTIF with a date match of some sort?

Sheet 1 sample
Gibberish, 7/1/23
Gibberish #EOB, 7/1/23
Gibberish, 7/1/23
Gibberish #EOB, 7/1/23
Gibberish, 7/1/23
Gibberish, 7/2/23
Gibberish #EOB, 7/3/23
Gibberish, 7/3/23

Sheet 2 result
7/1/23, 4
7/2/23, 0
7/2/23, 1
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
not sure how you got 4 for the first row, try this:
Book1
ABC
1Sheet 1 sample
2Gibberish2007-01-23
3Gibberish #EOB2007-01-23
4Gibberish2007-01-23
5Gibberish #EOB2007-01-23
6Gibberish2007-01-23
7Gibberish2007-02-23
8Gibberish #EOB2007-03-23
9Gibberish2007-03-23
10
11Sheet 2 result
122007-01-2342
132007-02-2300
142007-03-2311
Sheet1
Cell Formulas
RangeFormula
C12:C14C12=SUM((ISNUMBER(FIND("#EOB",$A$2:$A$9)))*(A12=$B$2:$B$9))
 
Upvote 0
I got 4 because I'm sloppy. Thank you so much.
Standing on the shoulders of giants
 
Upvote 0

Forum statistics

Threads
1,223,628
Messages
6,173,426
Members
452,515
Latest member
Alicedonald9

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