Check for text in next cell, if none, add "and" to result

babs43

New Member
Joined
Feb 16, 2018
Messages
5
Happy Friday, all -

I have several columns which may contain text and I would like to add "and" before the last item.

Currently, I have
This
That
The other thing

This, That, The Other Thing
Tweedle Dum
Tweedle Dee


Tweedle Dum, Tweedle Dee

<tbody>
</tbody>

using the TextJoin join function. I would like to add "and" to the last item:

This
That
The other thing

This, That, and The Other Thing
Tweedle Dum
Tweedle Dee


Tweedle Dum and Tweedle Dee

<tbody>
</tbody>

Yes, I use the Oxford Comma :) I've tried nesting if statements, but I get stuck with "is blank" and so forth. Ideas?
 
Brilliant! Thank you! Yes, I suppose I can survive without the comma..... somehow I will manage. :)
b
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,224,847
Messages
6,181,331
Members
453,032
Latest member
Pauh

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