Link COUNTIFS formula from old workbook to new

Ofsthun01

New Member
Joined
Jul 31, 2021
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Morning all. Relative Excel novice, so I just don't know where to start with figuring this out.

I have an Excel file that's getting too large and need to make a new one for the year it seems. But I have a COUNTIFS formula in column Q that counts the number a times a street address and city appear together (=COUNTIFS($F:$F,@$F:$F,$G:$G,@$G:$G)) so I know how many times an address shows up my report.

How can I reference this formula from my old workbook, so I keep the running total of every time an address has shown up, while simultaneously counting each time it shows up going forward on the new workbook?

Thanks!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I'm not quite sure, but will you have the "old" workbook still accessible on the same computer?
Does the below formula work?

Excel Formula:
= [NAME_OF_YOUR_OLD_WORKBOOK.xlsx]Sheet1!$A$1

replace NAME_OF_YOUR_OLD_WORKBOOK with the corresponding name of your old workbook
Then the above formula would reference cell A1 on the worksheet named "Sheet1".
 
Upvote 0
I'm not quite sure, but will you have the "old" workbook still accessible on the same computer?
Does the below formula work?

Excel Formula:
= [NAME_OF_YOUR_OLD_WORKBOOK.xlsx]Sheet1!$A$1

replace NAME_OF_YOUR_OLD_WORKBOOK with the corresponding name of your old workbook
Then the above formula would reference cell A1 on the worksheet named "Sheet1".
Sorry, no that's just populating the counts from the previous workbook.
 
Upvote 0
OK.

I've got another idea, a workaround:

You could copy just the last ROW of your old Worksheet to a NEW Worksheet within the same Workbook and then move that Worksheet out of the Workbook.

Does that work?
 
Upvote 0
OK.

I've got another idea, a workaround:

You could copy just the last ROW of your old Worksheet to a NEW Worksheet within the same Workbook and then move that Worksheet out of the Workbook.

Does that work?

No, doing that no longer retains all the counts of the previous worksheet. The count for that copied row in the new worksheet in column Q is 1, whereas on the original worksheet, that address has appeared 12 times. I don't think just copying the formulas to a new sheet/workbook is going to work. I need something to link all the data in the old workbook and keep counting new data in the new worksbook.
 
Upvote 0
OK.
Unfortunately I don't know any way to "link" data from another workbook.

You could import data from the Data ribbon in Excel, but I think this would just add the same data as in the original workbook and therefore make the file big as well.

Another option that just popped up in my mind is the equal sign/function.

For example, if you have a value in cell A1 of Worksheet1 in a Workbook you would add the following formula in your new worksheet:
Excel Formula:
A1 = [Workbook.xlsx]Worksheet1!$A$1

Well, actually that's stupid, but it's all I got.

Maybe someone else has an idea
 
Upvote 0
Once you have the counts from the previous workbook (as appeared in post#3) couldn't you just continue the countifs from that point? Such as:

=[NAME_OF_YOUR_OLD_WORKBOOK.xlsx][TOTALS]+COUNTIFS($F:$F,@$F:$F,$G:$G,@$G:$G)
 
Upvote 0
Once you have the counts from the previous workbook (as appeared in post#3) couldn't you just continue the countifs from that point? Such as:

=[NAME_OF_YOUR_OLD_WORKBOOK.xlsx][TOTALS]+COUNTIFS($F:$F,@$F:$F,$G:$G,@$G:$G)

I think you might have nailed it! Still doing some testing, but so far everything is working. In place of [Totals] I have the range of my data in column Q. Thank you!
 
Upvote 0
Glad to help, and thanks for the feedback.

Actually this is not working. Just coincidence that several of the values i checked happened to line up, but it is not bringing to true values and the running total forward. I really thought you had it.
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,117
Members
453,021
Latest member
Justyna P

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