Cannot modify or delete arrays in shared workbook

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Given that you have 365, why do you need an array formula at all?
 
Upvote 0
Hi Rory,

In a lookup sheet I have a list of works in one column with their costs in the next (and have named the whole section, "Works").

In my main sheet, I have a multi-select data validation in one column and a formula to add up all the costs of the works selected in another. This formula should allow an overtype for additional works not listed, or if they are different to the suggested cost. It works great before I share it, but get the title error upon sharing. My formula is (I can replicate the whole scenario if needed):

Excel Formula:
=IF($A1="","",SUM(IF(ISNUMBER(FIND(Works,$A1)),Works,0)))

If there is an easier way...?
 
Upvote 0
If Works is two columns, why are you using all of it in FIND? Can you share an example of the results of the multiselect validation? It may be that you can just use SUMIF with a textsplit to break out all the relevant criteria, if I've understood the layout correctly.
 
Upvote 0
Sorry, Rory - incorrectly typed the formula in my previous post (last named range should have been "Costs"). Here's an example table that works fine all the time the workbook isn't shared:
¦ MrExcel Queries.xlsm
ABCDEFGHIJK
1WorksCosts (ability to overwrite in a shared workbook)WorksCosts
2Air source heat pump Bathroom£ 12,000.00Air source heat pump£ 8,000.00
3Kitchen Bathroom£ 10,500.00Bathroom£ 4,000.00
4Rewire£ 2,000.00Kitchen£ 6,500.00
5External doors£ 500.00Level access shower Install costs
6Air source heat pump Level access shower£ 10,000.00Radiators£ 2,500.00
7 Rewire£ 2,000.00
8 Solar panel£ 8,500.00
Shared Wbk Array
Cell Formulas
RangeFormula
B2:B4,B7:B8B2=IF(A2="","",SUM(IF(ISNUMBER(FIND(Works,A2)),Costs,0)))
Named Ranges
NameRefers ToCells
Costs='Shared Wbk Array'!$K$2:$K$8B2:B4, B7:B8
Works='Shared Wbk Array'!$J$2:$J$8B7:B8, B2:B4
Cells with Data Validation
CellAllowCriteria
A2:A8List=Works
 
Upvote 0
It looks like you are using line feeds to split items in the DV list? In that case, something like this should work:

Excel Formula:
=IF($A1="","",SUM(SUMIF(Works,TEXTSPLIT($A1,CHAR(10)),Costs)))
 
Upvote 0
Thank you, Rory. However, your formula does not correctly calculate for me (and it also doesn't allow overtype when workbook is shared).
¦ MrExcel Queries.xlsm
ABCDEFGH
1WorksCosts (ability to overwrite in a shared workbook)RoryA alternative formulaWorksCosts
2Air source heat pump Bathroom£ 12,000.00£ 4,000.00Air source heat pump£ 8,000.00
3Kitchen Bathroom£ 10,500.00£ 4,000.00Bathroom£ 4,000.00
4Rewire£ 2,000.00£ 2,000.00Kitchen£ 6,500.00
5External doors£ 500.00£ -Level access shower Install costs
6Internal doors Radiators£ 3,500.00£ 2,500.00Radiators£ 2,500.00
7Level access shower£ 1,200.00£ -Rewire£ 2,000.00
8Air source heat pump Solar panel£ 16,500.00£ 8,500.00Solar panel£ 8,500.00
Shared Wbk Array
Cell Formulas
RangeFormula
B2:B4,B8B2=IF(A2="","",SUM(IF(ISNUMBER(FIND(Works,A2)),Costs,0)))
C2:C8C2=IF($A2="","",SUM(SUMIF(Works,TEXTSPLIT($A2,CHAR(10)),Costs)))
Named Ranges
NameRefers ToCells
Costs='Shared Wbk Array'!$H$2:$H$8B2:B4, C2:C8, B8
Works='Shared Wbk Array'!$G$2:$G$8B2:B4, B8:C8, C2:C7
Cells with Data Validation
CellAllowCriteria
A2:A8List=Works
 
Upvote 0
I just copied that to a workbook and my formula returns the same values as yours, not the values you show.

But it seems that the old shared workbook feature converts those into array formulas automatically anyway. Why do you need to use that rather than co-authoring?
 
Upvote 0
Very strange it's not working for me 🤔

There was some issues co-authoring where some links weren't working as well as there being some viewing/save problems. I need to investigate further before putting the (very large!) workbook back into OneDrive. Just to confirm, you don't need to password protect the workbook when it's shared in this way, do you (because you are setting the permissions when sharing the link)?
 
Upvote 0
Correct.

How large is "very large"?
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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