EvonS

Board Regular
Joined
Jun 1, 2016
Messages
111
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Hello Everyone,


I would like to compare data from multiple workbooks but I am finding it quite cumbersome to reference all the sheets in formulas. I'm also finding it cumbersome because I can't seem to make the workbook references relative either (i.e. C:\mydir\workbooks\file.xls vs \file.xls) and the file references keep breaking. is there an easier way to do this other than putting all the data in one sheet? Here's an example of a formula:

Code:
=(COUNTIF('Z:\Analysis and Reporting\FOCUS 2017-2018 YTD Analysis\Discussion Notes\2018\[Discussion Notes - DE 2018.xlsm]Data Fields'!$N$2:$N$9000, A2)+COUNTIF('Z:\Analysis and Reporting\FOCUS 2017-2018 YTD Analysis\Discussion Notes\2018\[Discussion Notes - DW 2018.xlsm]Data Fields'!$N$2:$N$9000, A2)+COUNTIF('Z:\Analysis and Reporting\FOCUS 2017-2018 YTD Analysis\Discussion Notes\2018\[Discussion Notes - REX 2018.xlsm]Data Fields'!$N$2:$N$9000, A2)+COUNTIF('Z:\Analysis and Reporting\FOCUS 2017-2018 YTD Analysis\Discussion Notes\2018\[Discussion Notes - NS 2018.xlsm]Data Fields'!$N$2:$N$9000, A2))


Thanks in advance for your help.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi,

COUNTIF won't work on closed workbooks, I assume this is why it's breaking.

https://www.mrexcel.com/forum/excel-questions/46473-using-countif-closed-workbooks.html

Try this array (use ctrl+shift+enter to confirm it)

=COUNT(IF('Z:\Analysis and Reporting\FOCUS 2017-2018 YTD Analysis\Discussion Notes\2018\[Discussion Notes - DE 2018.xlsm]Data Fields'!$N$2:$N$9000=A2,1))+COUNT(IF('Z:\Analysis and Reporting\FOCUS 2017-2018 YTD Analysis\Discussion Notes\2018\[Discussion Notes - DW 2018.xlsm]Data Fields'!$N$2:$N$9000=A2,1))+COUNT(IF('Z:\Analysis and Reporting\FOCUS 2017-2018 YTD Analysis\Discussion Notes\2018\[Discussion Notes - REX 2018.xlsm]Data Fields'!$N$2:$N$9000=A2,1))+COUNT(IF('Z:\Analysis and Reporting\FOCUS 2017-2018 YTD Analysis\Discussion Notes\2018\[Discussion Notes - NS 2018.xlsm]Data Fields'!$N$2:$N$9000=A2,1))
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,588
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top