TEXTJOIN IF- not listing all items (products)

impressive

New Member
Joined
Oct 3, 2022
Messages
12
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
Hello everyone,
this is my first thread here in this forum. For quite some I am using excel now with great fun and passion. Thanks to this forum I was able to solve many obstacles when I got stucked.

However, today I really need to ask for help as I am stucked for a few days already.

So here is my problem:

My goal is to list all products with a particular Item number (for example 1001) in a cell- separated with a comma.
In my excel sheet are many products listed.
So for example:
1001 Zylinder
1001 Gasket
2001 Maintenance Cost
1001 project costs
2001 Hotel and allowance

I tried the following formula:
=TEXTJOIN(",";TRUE;(IF('sheet1'!$A$14:$A$600=1001;'sheet'!$E$14:$E$600;"")))

This also works almost perfectly fine- however, in the cell where excel should list the products, only the first item is listed.
Example of what I want: Zylinder, Gasket, project costs
Example of what I get: Zylinder

It seems to me that excel is listing the first item and stops after, but the question is why?

I tried it also with the very basic example where I put all words and formula on one sheet and it works perfectly fine. for example:
1​
HelloI , am, now, at, home, HELLOHere is the formula that i wrote into C1:

=TEXTJOIN(", ";TRUE;(IF($A$1:$A$10=5;$B$1:$B$10;"")))
5​
I
5​
am
5​
now
5​
at
5​
home
3​
right
3​
now
5​
HELLO


Can anyone help me please?
 
The best option is to make sure that the values you are pulling are formated correctly to bing with.
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Apparently there were some issues with the Sheet1 where the numbers and texts from sheets x, y and z were linked to. I deleted manual just a few and dragged back the formulas and it worked.

Thank you very much!!!
 
Upvote 0
Glad you sorted it & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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