Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
pomalley
 
Posts: n/a
Default Search for record with specific name in a cell

I'm trying to add another criteria that will look at the cell in column Z to
see if the record has been tagged for use in report(s). Column Z can contain
one or more tags. Multiple tags would indicate that the record is to be
included in more than one report.

Cells in Column Z could look as follows; the letter/report names indicate in
which report(s) the record should be included.

AB, CDE, EFG, GHI, IJK, KLMN
AB, CDE, GHI, KLMN
AB, CDE, EFG, GHI, IJK, KLMN
EFG, GHI, IJK, KLMN
AB
AB, KLMN

I want to retrieve the records that meet the criteria to be added to report
AB, CDE, etc. I'm using the following query and want to add the report
criteria to this:

=SUMPRODUCT((MONTH('[Wkly Rpt 2005.xls]Data'!$A$2:$A$500)=MONTH(S$1))*
((LEFT('[Wkly Rpt 2005.xls]Data'!$B$2:$B$500,3)="STP"))*
((LEFT('[Wkly Rpt 2005.xls]Data'!$T$2:$T$500,1)=$K$2)))

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default Search for record with specific name in a cell

Try...

=SUMPRODUCT(--('[Wkly Rpt
2005.xls]Data'!$A$2:$A$500<""),--(MONTH('[Wkly Rpt
2005.xls]Data'!$A$2:$A$500)=MONTH(S$1)),--(LEFT('[Wkly Rpt
2005.xls]Data'!$B$2:$B$500,3)="STP"),--(LEFT('[Wkly Rpt
2005.xls]Data'!$T$2:$T$500,1)=$K$2),--(ISNUMBER(SEARCH("AB",'[Wkly Rpt
2005.xls]Data'!$Z$2:$Z$500))))

If you want the month and year to be met as a criteria, try...

=SUMPRODUCT(--('[Wkly Rpt 2005.xls]Data'!$A$2:$A$500-DAY('[Wkly Rpt
2005.xls]Data'!$A$2:$A$500)+1=DATE(YEAR(S$1),MONTH(S$1),1)) ,--(LEFT('[Wkl
y Rpt 2005.xls]Data'!$B$2:$B$500,3)="STP"),--(LEFT('[Wkly Rpt
2005.xls]Data'!$T$2:$T$500,1)=$K$2),--(ISNUMBER(SEARCH("AB",'[Wkly Rpt
2005.xls]Data'!$Z$2:$Z$500))))

Hope this helps!

In article ,
"pomalley" wrote:

I'm trying to add another criteria that will look at the cell in column Z to
see if the record has been tagged for use in report(s). Column Z can contain
one or more tags. Multiple tags would indicate that the record is to be
included in more than one report.

Cells in Column Z could look as follows; the letter/report names indicate in
which report(s) the record should be included.

AB, CDE, EFG, GHI, IJK, KLMN
AB, CDE, GHI, KLMN
AB, CDE, EFG, GHI, IJK, KLMN
EFG, GHI, IJK, KLMN
AB
AB, KLMN

I want to retrieve the records that meet the criteria to be added to report
AB, CDE, etc. I'm using the following query and want to add the report
criteria to this:

=SUMPRODUCT((MONTH('[Wkly Rpt 2005.xls]Data'!$A$2:$A$500)=MONTH(S$1))*
((LEFT('[Wkly Rpt 2005.xls]Data'!$B$2:$B$500,3)="STP"))*
((LEFT('[Wkly Rpt 2005.xls]Data'!$T$2:$T$500,1)=$K$2)))

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
pomalley
 
Posts: n/a
Default Search for record with specific name in a cell

Thanks very much. It works like a charm. You're terrific.

"pomalley" wrote:

I'm trying to add another criteria that will look at the cell in column Z to
see if the record has been tagged for use in report(s). Column Z can contain
one or more tags. Multiple tags would indicate that the record is to be
included in more than one report.

Cells in Column Z could look as follows; the letter/report names indicate in
which report(s) the record should be included.

AB, CDE, EFG, GHI, IJK, KLMN
AB, CDE, GHI, KLMN
AB, CDE, EFG, GHI, IJK, KLMN
EFG, GHI, IJK, KLMN
AB
AB, KLMN

I want to retrieve the records that meet the criteria to be added to report
AB, CDE, etc. I'm using the following query and want to add the report
criteria to this:

=SUMPRODUCT((MONTH('[Wkly Rpt 2005.xls]Data'!$A$2:$A$500)=MONTH(S$1))*
((LEFT('[Wkly Rpt 2005.xls]Data'!$B$2:$B$500,3)="STP"))*
((LEFT('[Wkly Rpt 2005.xls]Data'!$T$2:$T$500,1)=$K$2)))

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
delete cell that doesn't contain a specific word [email protected] Excel Discussion (Misc queries) 1 October 12th 05 05:54 AM
Specific cell values Nigel Excel Discussion (Misc queries) 3 August 26th 05 11:23 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
How can I search for more than one text character in a cell? Dolores Excel Worksheet Functions 3 May 19th 05 09:44 PM
How do I search for more than one text character in one cell? Dolores Excel Worksheet Functions 0 May 19th 05 06:54 PM


All times are GMT +1. The time now is 11:01 AM.

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

About Us

"It's about Microsoft Excel"