Count multiple column of "Text" in a date range

Kidmon

Board Regular
Joined
Mar 4, 2011
Messages
71
I need to create a formula that will (count "text" from 2 columns on sheet 1 within a specific date range) and show the totals in a summary I have on sheet 2.
I think it is something like this but I am missing 1 column of "text", =COUNTIFS('sheet1'!$D:$D,"text",'sheet1'!$G:$G,">="&"1/1/2011"+0,'sheet1'!$G:$G,"<="&"1/31/2011"+0)


This is what I need to add to the above formula. ('sheet1'!$D:$D,"text"),COUNTIF('sheet1'!$E:$E,"*text*"))

thanx for the help, luvin this forum.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I need to create a formula that will (count "text" from 2 columns on sheet 1 within a specific date range) and show the totals in a summary I have on sheet 2.
I think it is something like this but I am missing 1 column of "text", =COUNTIFS('sheet1'!$D:$D,"text",'sheet1'!$G:$G,">="&"1/1/2011"+0,'sheet1'!$G:$G,"<="&"1/31/2011"+0)


This is what I need to add to the above formula. ('sheet1'!$D:$D,"text"),COUNTIF('sheet1'!$E:$E,"*text*"))

thanx for the help, luvin this forum.
Those date criteria are really nasty!

Why don't you use cells to hold the date boundaries?

A1 = 1/1/2011
B1 = 1/31/2011

Maybe this is what you had in mind:

=COUNTIFS(Sheet1!$D:$D,"text",Sheet1!$D:$D,"*text*",Sheet1!$G:$G,">="&A1,Sheet1!$G:$G,"<="&B1)
 
Upvote 0
Nasty is very true.http://www.mrexcel.com/forum/images/smilies/rolleyes.gif I thought about what you suggest with date=B:2 but I am not sure how to place the date reference on sheet 1, it is already almost too wide for easy viewing. I like your simple approach but how can I use date= from sheet 1 and summarize the info on sheet 2.
Thanx again
I'm not sure what you're asking.

Typically, if you have a summary sheet where you do all your calculations somewhere you have column/row labels that describe or refer to the calculation in a cell.

So, on your summary sheet where you want this formula use a couple of cells to hold the date boundaries.

If those cells are on a different sheet then just include the sheet name in the cell reference:

=COUNTIFS(Sheet1!$D:$D,"text",Sheet1!$D:$D,"*text*",Sheet1!$G:$G,">="&Sheet2!A1,Sheet1!$G:$G,"<="&Sheet2!B1)
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,948
Latest member
UsmanAli786

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