Ignore Blank values not working correctly using TEXTJOIN function

Bombdiggity

New Member
Joined
Aug 30, 2022
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I am using a TEXTJOIN formula to pull data from a table. I basically use the same formula across the board and just change the column coordinate. My issue is that in one instance the formula yields the calculated values perfectly, while in another instance the same formula yields the values, PLUS a series of zeroes for any cells in the table that are blank.

I would like for the zeros to not show as they are not relevant. I've tried many different alternatives including TRIM(), and ISBLANK() but still getting the same result. My table columns are all in the number format, except for any text. Below is a list of the formulas and the result. Notice the difference between rows 4 and 5 in the table below, one shows the zeroes and the other doesn't although the data comes from the same table, with the same formula and under the same number format. What am I missing? I've also attached an image of what the formulas are referencing. Thank you in advance for your help with this!

Result of Formulas
Organic Goat Cheese>Parsley, FreshTEXTJOIN(CHAR(62),TRUE,C$26:C$500)
4>0.25TEXTJOIN(CHAR(62),TRUE,M$26:M$500)
oz>ozTEXTJOIN(CHAR(62),TRUE,O$26:O$500)
3.04>0.02TEXTJOIN(CHAR(62),TRUE,Q$26:Q$500)
12.16>1.57>0.00>0.00>0.00>0.00>0.00TEXTJOIN(CHAR(62),TRUE,J$26:J$500)
oz>ozTEXTJOIN(CHAR(62),TRUE,O$26:O$500)
 

Attachments

  • Screenshot 2024-09-11 144612.png
    Screenshot 2024-09-11 144612.png
    81.1 KB · Views: 8

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
A zero is not a blank it is a value. See the thread in the link below (obviously you won't need to enter the formula using CSE)

 
Upvote 0
Solution
Do you have zeros that are formatted not to show?

=TEXTJOIN(">",,FILTER(J26:J500,J26:J500>0))
 
Upvote 0
Do you have zeros that are formatted not to show?

=TEXTJOIN(">",,FILTER(J26:J500,J26:J500>0))
Yes, that's exactly what happened. An iferror formula made them not show and I foolishly forgot that an invisible zero is actually a value.
'Valuable' lesson learned. Thank you so much for your help.
 
Upvote 0
A zero is not a blank it is a value. See the thread in the link below (obviously you won't need to enter the formula using CSE)

ahh I missed that. Invisible zeros are values. thank you very much for your help! that solved it
 
Upvote 0

Forum statistics

Threads
1,221,417
Messages
6,159,789
Members
451,589
Latest member
Harold14

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