And function inside Textjoin

snjpverma

Well-known Member
Joined
Oct 2, 2008
Messages
1,584
Office Version
  1. 365
Platform
  1. Windows
I am trying to use Textjoin to concatenate all the names in Column B where column C says "Correct" and where Column D is not blank.
However, I am unable to use figure out the mistake in my AND function.

I am using this logical in the text argument of TextJoin =AND(D2:D8<>"",C2:C8="CORRECT")

However, the result of the above given formula is not a series of TRUE and False, it is just a single False.
I also Typed the above formula in bold and pressed F9 and I see only a Single False.

Whereas if I just type
Excel Formula:
=D2:D8<>""
and Press F9, I can see the series of TRUE and False
Like this: FALSE;TRUE;TRUE;FALSE;TRUE;TRUE;FALSE

Book1
BCD
2John
3Maddy45
4AlishaCORRECT68
5James
6TinuCORRECT84
7Samuel72
8Figalar
Sheet1


Someone please tell me where I am going wrong
 
Last edited:

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
AND() here returns TRUE if all rows meet the conditions of being "correct" and not blank, otherwise FALSE.
FILTER() or IF((D2:D8<>"")*(C2:C8="CORRECT"),B2:B8,"") would work here as condition.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,798
Messages
6,121,630
Members
449,041
Latest member
Postman24

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