Using cell text in formula - array

Formula11

Active Member
Joined
Mar 1, 2005
Messages
461
Office Version
  1. 365
Platform
  1. Windows
How can I use text in cell for formula with array.

For example in row 2, the formula includes an array.
In row 3 I want to use the contents of cell R3 to indicate the array. But this doesn't work. I tried INDIRECT.



1673317756310.png
 
Yes I did think of this but it made no difference.
Also copied and pasted from your add-in output but still get "0".
I also double checked Excel version and it is 365.

Is there something along the lines of DateAmore's solution as this worked for one set of criteria. I was trying to use AND with IF for 2 criteria but this didn't work.
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
If you type =tex into a cell does the autocomplete offer textbefore & textafter?
 
Upvote 0
Ok, you obviously don't have the new functions quite yet.
How about
=SUM(SUMIFS(D:D,B:B,FILTERXML("<k><m>"&SUBSTITUTE(K3,",","</m><m>")&"</m></k>","//m"),A:A,K2))
 
Upvote 0
Solution
Thanks for persisting with this. It now works!

This is the first time I've come across this type of formula, and I presume it will only work with current versions of Excel.

At the same time I looked at DanteAmores solution again and got something to work, see below. This may work on older versions, I don't know. The only issue is that with large sets of data (4000+ rows in my case), my computer struggled and froze on every cell it was calculating, probably because SEARCH is used.

1673365547555.png
 
Upvote 0
The formula in post#14 should work for 2013 & newer, although it may need the SUM changing to SUMPRODUCT.
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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