TextJoin + If Statement

AECJohn

New Member
Joined
Jun 23, 2022
Messages
6
Office Version
  1. 2021
Platform
  1. Windows
Hi,

I am trying to work with the below formula:
=IF(TEXTJOIN("",1,AE3:AO3)>0,IF(ISNUMBER(SEARCH(CI1,A1)),TEXTJOIN("",1,AE3:AO3),"No"),"No Bank")
The range of AE3:AO3 should return the name of only one bank; this is a report that was exported to Excel from PDF and it did not put them all in the same column. If there is a bank in the range, it works, but the "No Bank" is where I am running in to problems.

I want to identify which cells do not have a bank name with the "No Bank". The "No" is a filler for rows that the formula does not apply to (there are six rows between each line where the formula applies).

I have tried <>0,=0,<0 and ISBLANK. None of them work.

Any insight would be appreciated!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Check what's in the cells - they are probably not blank. Do not compare with 0 ( a number) , but with a string, like "".
Try:
TRIM(TEXTJOIN("",1,AE3:AO3))<>""
Depending on what symbol you have in the seemingly blank cells, this may not work.
So examine these cells with LEN() and CODE() to establish what's inside.
It is also a good idea to examine the result from the TEXTJOIN() to come up with a working comparison.
 
Upvote 0
Can you post some sample data, so that we can see what you are dealing with.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0

Forum statistics

Threads
1,215,332
Messages
6,124,313
Members
449,152
Latest member
PressEscape

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