Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
telewats
 
Posts: n/a
Default Counting data in columns


I'm attempting to write a formula that will count instances of certain
criteria in different columns. The results have to be dependent on
whether -both- columns contain certain data. For instance, Colunm A
must -contain- 5 Days (have to search for this since there is other
data in the cells in addition to this) and column D must contain
"TXACTN1" *or* "TXGDVW1" *or* "TXWNNE1". Based on the sample below, the
result should be 2.

...Column A... | ...Column B...
5 Days : 621 | Area TXACTN1
5 Days : 050 | Area TXBLOM1

Past Due : 621 | Area TXACTN1
Past Due : 012 | Area TXWNNE1
5 Days : 007 | Area TXGDVW1


Below is what I have tried, but the totals aren't coming up right.
Obviously, I don't have my formula correct, so could someone please
point out my mistake?

=(SUMPRODUCT(--(ISNUMBER(SEARCH("5 Days",'# DSL REPORT
TX.xls'!$A$1:$A$100)))))*SUMPRODUCT(--(ISNUMBER(SEARCH("TXGDVW1",'# DSL
REPORT
TX.xls'!$D$1:$D$100)))))*(SUMPRODUCT(--(ISNUMBER(SEARCH("TXACTN1",'#
DSL REPORT TX.xls'!$D$1:$D$100)))))
*(SUMPRODUCT(--(ISNUMBER(SEARCH("TXWNNE1",'# DSL REPORT
TX.xls'!$D$1:$D$100)))))*(SUMPRODUCT(--(ISNUMBER(SEARCH("GRID
TXWNNE1",'# DSL REPORT TX.xls'!$D$1:$D$100)))))[/b]


--
telewats
------------------------------------------------------------------------
telewats's Profile: http://www.excelforum.com/member.php...o&userid=30270
View this thread: http://www.excelforum.com/showthread...hreadid=514908

  #2   Report Post  
Posted to microsoft.public.excel.misc
vezerid
 
Posts: n/a
Default Counting data in columns

telewats,

don't multiply the SUMPRODUCT's. Use one SUMPRODUCT and each --ISNUMBER
is an argument.

HTH
Kostis Vezerides

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
how do I lookup data based on two columns of data bttreadwell Excel Worksheet Functions 2 November 19th 05 03:54 AM
Text to Columns / Importing Data John Thomson Excel Discussion (Misc queries) 0 May 4th 05 08:21 PM
Macro to Synchronize data frm svrl workbooks & columns to 1 workbo jbsand1001 Excel Discussion (Misc queries) 1 April 28th 05 10:42 AM
sort column data with hidden columns - excel 2003 nanimadrina Excel Discussion (Misc queries) 2 April 26th 05 08:27 PM


All times are GMT +1. The time now is 08:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"