Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Indirect function countif

Hi, i have a number in "C5" and i need to search for this number in another
workbook. I need to search only in column C:C.
But i need an indirect function because the name of book2 will change every
week. I will put in "N1" the name of other workbook.

Can this be done?
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default Indirect function countif

Try this

=COUNTIF(INDIRECT("["&N1&"]"&"Sheet1!$C:$C"),C5)


On Nov 14, 2:56*pm, puiuluipui
wrote:
Hi, i have a number in "C5" and i need to search for this number in another
workbook. I need to search only in column C:C.
But i need an indirect function because the name of book2 will change every
week. I will put in "N1" the name of other workbook.

Can this be done?
Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Indirect function countif

Hi, it's working, but it's looking only in one sheet. Can your code search in
5 sheets? And i need to display "yes" if the code finds a duplicate nr, and
"no" if doesn't find a duplicates.
Can this be done?
Thanks!!!!

"muddan madhu" wrote:

Try this

=COUNTIF(INDIRECT("["&N1&"]"&"Sheet1!$C:$C"),C5)


On Nov 14, 2:56 pm, puiuluipui
wrote:
Hi, i have a number in "C5" and i need to search for this number in another
workbook. I need to search only in column C:C.
But i need an indirect function because the name of book2 will change every
week. I will put in "N1" the name of other workbook.

Can this be done?
Thanks!


.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default Indirect function countif


=IF(SUMPRODUCT(COUNTIF((INDIRECT("["&N1&"]"&"sheet"&{1,2,3}
&"!"&"C:C")),M1))1,"YES","NO")



On Nov 14, 4:58*pm, puiuluipui
wrote:
Hi, it's working, but it's looking only in one sheet. Can your code search in
5 sheets? And i need to display "yes" if the code finds a duplicate nr, and
"no" if doesn't find a duplicates.
Can this be done?
Thanks!!!!

"muddan madhu" wrote:
Try this


=COUNTIF(INDIRECT("["&N1&"]"&"Sheet1!$C:$C"),C5)


On Nov 14, 2:56 pm, puiuluipui
wrote:
Hi, i have a number in "C5" and i need to search for this number in another
workbook. I need to search only in column C:C.
But i need an indirect function because the name of book2 will change every
week. I will put in "N1" the name of other workbook.


Can this be done?
Thanks!


.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Indirect function countif

Hi, it's working except for sheet 1.
both workbooks have the same name for the sheets and i think it is a little
bit confusing for excel.
ex:
workbook 1 and 2 sheets(same name for the sheets in both wbooks):
LUNI
MARTI
MIERCURI
JOI
VINERI
PLANNING
SEARCH
I don't want to search in "planning" and in "search".
and i cand replacein your code, 1,2,3 with LUNI, MARTI.......

What am i doing wrong?
Thanks for your patience!
Thanks!

"muddan madhu" wrote:


=IF(SUMPRODUCT(COUNTIF((INDIRECT("["&N1&"]"&"sheet"&{1,2,3}
&"!"&"C:C")),M1))1,"YES","NO")



On Nov 14, 4:58 pm, puiuluipui
wrote:
Hi, it's working, but it's looking only in one sheet. Can your code search in
5 sheets? And i need to display "yes" if the code finds a duplicate nr, and
"no" if doesn't find a duplicates.
Can this be done?
Thanks!!!!

"muddan madhu" wrote:
Try this


=COUNTIF(INDIRECT("["&N1&"]"&"Sheet1!$C:$C"),C5)


On Nov 14, 2:56 pm, puiuluipui
wrote:
Hi, i have a number in "C5" and i need to search for this number in another
workbook. I need to search only in column C:C.
But i need an indirect function because the name of book2 will change every
week. I will put in "N1" the name of other workbook.


Can this be done?
Thanks!


.


.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default Indirect function countif

Try this

=IF(SUMPRODUCT(COUNTIF((INDIRECT("["&N1&"]"&A2:A5&"!"&"C1:C10")),M1))
1,"YES","NO")


You need mention the sheet names in the Range A2:A5

Change the range according to the need.


On Nov 14, 7:38*pm, puiuluipui
wrote:
Hi, it's working except for sheet 1.
both workbooks have the same name for the sheets and i think it is a little
bit confusing for excel.
ex:
workbook 1 and 2 sheets(same name for the sheets in both wbooks):
LUNI
MARTI
MIERCURI
JOI
VINERI
PLANNING
SEARCH
I don't want to search in "planning" and in "search".
and i cand replacein your code, 1,2,3 with LUNI, MARTI.......

What am i doing wrong?
Thanks for your patience!
Thanks!

"muddan madhu" wrote:

=IF(SUMPRODUCT(COUNTIF((INDIRECT("["&N1&"]"&"sheet"&{1,2,3}
&"!"&"C:C")),M1))1,"YES","NO")


On Nov 14, 4:58 pm, puiuluipui
wrote:
Hi, it's working, but it's looking only in one sheet. Can your code search in
5 sheets? And i need to display "yes" if the code finds a duplicate nr, and
"no" if doesn't find a duplicates.
Can this be done?
Thanks!!!!


"muddan madhu" wrote:
Try this


=COUNTIF(INDIRECT("["&N1&"]"&"Sheet1!$C:$C"),C5)


On Nov 14, 2:56 pm, puiuluipui
wrote:
Hi, i have a number in "C5" and i need to search for this number in another
workbook. I need to search only in column C:C.
But i need an indirect function because the name of book2 will change every
week. I will put in "N1" the name of other workbook.


Can this be done?
Thanks!


.


.


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
Using INDIRECT Function and INDEX Function ChristopherG Excel Discussion (Misc queries) 1 June 10th 09 04:07 PM
how to countif when using indirect cell on_lunch Excel Discussion (Misc queries) 1 October 14th 08 10:04 PM
Countif indirect question Doug Laidlaw Excel Discussion (Misc queries) 6 August 8th 07 08:34 PM
INDIRECT function inside AND function Biff Excel Worksheet Functions 3 September 23rd 06 07:20 PM
INDIRECT WITH COUNTIF Malcolm Austin Excel Worksheet Functions 2 November 26th 04 07:50 PM


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

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"