Using TEXTSPLIT to spill down a list

kitty_el

New Member
Joined
Feb 22, 2023
Messages
5
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
I’m really struggling with this problem, I have a list of data in one column. The data is organised as words in each cell for example cat,dog,horse,fish - I need to be able to reference the whole column as the criteria in a SUMIFS. I’ve tried =TEXTSPLIT(D3:D66, “,”) but this just returns an error. I tried incorporating TEXTJOIN but this still didn’t work.
Does anyone have any ideas?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I’m really struggling with this problem, I have a list of data in one column. The data is organised as words in each cell for example cat,dog,horse,fish - I need to be able to reference the whole column as the criteria in a SUMIFS. I’ve tried =TEXTSPLIT(D3:D66, “,”) but this just returns an error. I tried incorporating TEXTJOIN but this still didn’t work.
Does anyone have any ideas?
Try this where A2:A47 contains the animal names and B2:B47 contains the values to sum.

Excel Formula:
=SUMIF(A2:A47,"Cat",B2:B47)

If you have criteria in two columns do this where C4:C49 contains the values to sum, A4:A49 contains the animal names, "Cat" is the criteria for that column and
B4:B49 contains the second column with a criteria and 1 is the criteria.

Excel Formula:
=SUMIFS(C4:C49,A4:A49,"Cat",B4:B49,1)

Are you using SUMIFS and only have one criteria?
 
Upvote 0
Each cell in the column D3:D66 contains multiple words for example, cat, dog - all separated by a comma. I need to use each of these words as the criteria, that is why I was trying to use TEXTSPLIT, which works fine on one cell but when I try and reference the whole column I get a #VALUE
 
Upvote 0
Please post a sample of your data and what you're trying to accomplish.
 
Upvote 0
It’s just a column D3:D66, each cell so D3 contains words like cat,dog,fish
I just need to know how to use TEXTSPLIT to reference the whole column so this doesn’t work - =TEXTSPLIT(D3:D66, “,”) and just return an error.
 
Upvote 0
Without seeing your expected output we can only guess. Maybe this?
Book1
DE
1
2cat,dog,fishcat
3apple,banannadog
4cake,juicefish
5apple
6bananna
7cake
8juice
Sheet5
Cell Formulas
RangeFormula
E2:E8E2=DROP(REDUCE("",D2:D4,LAMBDA(a,b,VSTACK(a,TEXTSPLIT(b,,",")))),1)
Dynamic array formulas.
 
Upvote 0
Another way:

Book1
DE
1
2cat,dog,fishcat
3apple,banannadog
4a,123fish
5apple
6bananna
7a
8123
Sheet1
Cell Formulas
RangeFormula
E2:E8E2=TOCOL(TEXTSPLIT(TEXTJOIN(",",1,D2:D4),","))
Dynamic array formulas.
 
Upvote 0
.. or

24 11 11.xlsm
DE
1
2cat,dog,fishcat
3apple,banannadog
4a,123fish
5apple
6bananna
7a
8123
9
Split
Cell Formulas
RangeFormula
E2:E8E2=TEXTSPLIT(TEXTJOIN(",",1,D2:D4),,",")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,189
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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