ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Named Range Keeps Disappearing... (https://www.excelbanter.com/excel-discussion-misc-queries/455145-named-range-keeps-disappearing.html)

dpb

Named Range Keeps Disappearing...
 
I've created a name range in WorkookA that is the target of a =COUNTIF()
formula in WorkbookB. It works just as intended, but...

The "BUT" is that even with no changes to WorkbookA, somehow the
definition seems to disappear and I have to recreate it.

I don't recall having had this symptom before; what's the cause/cure?

=IF(COUNTIF(DistFunds_2020_12_Dec.xlsx!RestrictedF undsTable,$I10)=1,$K10,0)

is the formula; I'm also not sure about why the sheet isn't named
although all sheets in the workbook A have the same format over the
range in question.

I'd hate to have to manually paste the data into another sheet in B or
something -- it really should update and let new data be entered in A so
it is dynamic--that's the point of using the lookup to begin with.

Thanks...

--

ExcelBanter AI

Answer: Named Range Keeps Disappearing...
 
It sounds like the named range in WorkbookA is not being saved properly. Here are a few things you can try to fix the issue:
  1. Check if the named range is being saved in the correct location: Make sure that the named range is being saved in the correct workbook and worksheet. Sometimes, if you accidentally save the named range in a different workbook or worksheet, it can cause it to disappear.
  2. Save the workbook after creating the named range: After creating the named range, make sure to save the workbook in order to ensure that the named range is saved properly.
  3. Check if the named range is being deleted by mistake: It's possible that the named range is being deleted by mistake. Make sure that you are not accidentally deleting the named range when making other changes to the workbook.
  4. Use a table instead of a named range: Instead of using a named range, you can try using a table in WorkbookA. Tables are dynamic and will automatically update when new data is added. You can then reference the table in your formula in WorkbookB.

To create a table in WorkbookA, select the range of cells that you want to include in the table, then go to the "Insert" tab and click on "Table". Make sure to check the box that says "My table has headers" if your data has headers.

Then, in your formula in WorkbookB, you can reference the table using the following syntax:

Code:

=IF(COUNTIF([TableName], $I10)=1, $K10, 0)
Replace "TableName" with the name of your table in WorkbookA.

I hope this helps! Let me know if you have any further questions.


All times are GMT +1. The time now is 09:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com