ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Count text in cells? (https://www.excelbanter.com/excel-discussion-misc-queries/255678-count-text-cells.html)

Hoyos

Count text in cells?
 
How can I modify the formula below so that it counts the word "Search"

=SUMPRODUCT(--(Date1=Orders!$H$3),--(Date1<=Orders!$I$3),--(Purpose=A2))

Jim Thomlinson

Count text in cells?
 
Since you have not told us which column will contain the word search...

http://www.xldynamic.com/source/xld....2.html#partial
--
HTH...

Jim Thomlinson


"hoyos" wrote:

How can I modify the formula below so that it counts the word "Search"

=SUMPRODUCT(--(Date1=Orders!$H$3),--(Date1<=Orders!$I$3),--(Purpose=A2))


Hoyos

Count text in cells?
 
Appologies Jim
It's column "C"

"Jim Thomlinson" wrote:

Since you have not told us which column will contain the word search...

http://www.xldynamic.com/source/xld....2.html#partial
--
HTH...

Jim Thomlinson


"hoyos" wrote:

How can I modify the formula below so that it counts the word "Search"

=SUMPRODUCT(--(Date1=Orders!$H$3),--(Date1<=Orders!$I$3),--(Purpose=A2))


Jim Thomlinson

Count text in cells?
 
Since you are using named ranges this will be a general formula...

=SUMPRODUCT(--(Date1=Orders!$H$3),--(Date1<=Orders!$I$3),--(Purpose=A2),
--(isnumber(Search("Search", C1:C10))))

Check out the previously supplied link for more info...
--
HTH...

Jim Thomlinson


"hoyos" wrote:

Appologies Jim
It's column "C"

"Jim Thomlinson" wrote:

Since you have not told us which column will contain the word search...

http://www.xldynamic.com/source/xld....2.html#partial
--
HTH...

Jim Thomlinson


"hoyos" wrote:

How can I modify the formula below so that it counts the word "Search"

=SUMPRODUCT(--(Date1=Orders!$H$3),--(Date1<=Orders!$I$3),--(Purpose=A2))


Hoyos

Count text in cells?
 
Thanks Jim,
I was looking at the link but getting in a muddle!!!
I used your formula and modified it alittle and came up with this:

=SUMPRODUCT(--(Date1=Orders!$H$3),--(Date1<=Orders!$I$3),--(ISNUMBER(SEARCH("Search", Purpose))))

It works well.
Thanks once again.

"Jim Thomlinson" wrote:

Since you are using named ranges this will be a general formula...

=SUMPRODUCT(--(Date1=Orders!$H$3),--(Date1<=Orders!$I$3),--(Purpose=A2),
--(isnumber(Search("Search", C1:C10))))

Check out the previously supplied link for more info...
--
HTH...

Jim Thomlinson


"hoyos" wrote:

Appologies Jim
It's column "C"

"Jim Thomlinson" wrote:

Since you have not told us which column will contain the word search...

http://www.xldynamic.com/source/xld....2.html#partial
--
HTH...

Jim Thomlinson


"hoyos" wrote:

How can I modify the formula below so that it counts the word "Search"

=SUMPRODUCT(--(Date1=Orders!$H$3),--(Date1<=Orders!$I$3),--(Purpose=A2))



All times are GMT +1. The time now is 05:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com