#VALUE error in array formula

silkfire

Active Member
Joined
Apr 6, 2009
Messages
441
I got an array formula (CSE) that works perfectly. It uses a cell reference as its source. Now I want to make my sheet clean by decreasing the amount of cells I use for my formulas by embedding all into one, but I'm getting an error instead. Help me out?

Formula that works:

{=IF(ISERROR(FIND(",";REPLACE(A2;1;LEN(LEFT(SUBSTITUTE(A2;",";", ");SMALL(FIND(CHAR(ROW(INDIRECT("65:90")));SUBSTITUTE(A2;",";", ")&"ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ");2)-1))-1;"")));LEFT(A2;FIND(",";A2)-1)&", "&REPLACE(A2;1;LEN(LEFT(SUBSTITUTE(A2;",";", ");SMALL(FIND(CHAR(ROW(INDIRECT("65:90")));SUBSTITUTE(A2;",";", ")&"ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ");2)-1))-1;"");LEFT(SUBSTITUTE(A2;",";", ");SMALL(FIND(CHAR(ROW(INDIRECT("65:90")));SUBSTITUTE(A2;",";", ")&"ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ");2)-1)&" "&MID(REPLACE(A2;1;LEN(LEFT(SUBSTITUTE(A2;",";", ");SMALL(FIND(CHAR(ROW(INDIRECT("65:90")));SUBSTITUTE(A2;",";", ")&"ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ");2)-1))-1;"");2;FIND(",";REPLACE(A2;1;LEN(LEFT(SUBSTITUTE(A2;",";", ");SMALL(FIND(CHAR(ROW(INDIRECT("65:90")));SUBSTITUTE(A2;",";", ")&"ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ");2)-1))-1;""))-2)&", "&MID(SUBSTITUTE(A2;",";", ");FIND(",";SUBSTITUTE(A2;",";", "))+2;LEN(SUBSTITUTE(A2;",";", "))-FIND(",";SUBSTITUTE(A2;",";", "))))}


I'm now replacing all occurences of "A2" with this formula:

OFFSET(INDIRECT("'Input'!"&INDIRECT("'Background'!D"&ROW()-5));0;-1)

And formula results in an error, why?

I checked Formula Evaluator and it starts giving me the #VALUE at INDIRECT("'Background'!D"&ROW()-5) (becomes Background!D1 = #VALUE), but i know its a real, existing cell because I use that formula in another cell.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
The value of A2 is "Fredriksson,Tommy" (without quotes).

Result of formula would be "Fredriksson, Tommy" (it separates them based on the comma, but also handles names like "JessicaParker,Sarah" to separate the different surnames).
 
Upvote 0

Forum statistics

Threads
1,215,540
Messages
6,125,409
Members
449,223
Latest member
Narrian

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