Excel COUNTIF with link to another workbook -


i trying count of records sheet in different workbook. i'm using following formula:

=countif('c:\path\to\file\[work1.xlsm]sheetname'!$a:$a,"*")-1 

note: file xlsm. has header row, that's why i'm subtracting 1

if have work1.xlsm file open @ same time 'summary' workbook, numbers populate , correct. once close work1, #value in cell.

so 2 questions:

  1. is there reason won't work?

  2. is there better way write this?

thanks consideration.

countif doesn't work closed workbooks, looks can use counta, i.e.

=counta('c:\path\to\file\[work1.xlsm]sheetname'!$a:$a)-1


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -