text in a range of values and text

AmandaSS

Board Regular
Hi,

I have a row with 3 cells. 1 contains a text the other 2 contain 0.
In A4 I would like to have a formula that gives me the text as a result.

 A1 A2 A3 A4 0 0 oil oil 0 0 0 0 0 gas 0 gas ccgt 0 0 ccgt

<tbody>
</tbody>

Thanks
Amanda

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,)
D1 (not A4), copied down:

=IFERROR(LOOKUP(REPT("z",255),\$A1:\$C1),0)

This works also for the other post I added previously

This works also for the other post I added previously

You are welcome. Thanks for providing feedback.

Give this formula a try too (enter in D1):

=SUBSTITUTE(A1&B1&C1,0,"")

Replies
5
Views
388
Replies
2
Views
130
Replies
7
Views
266
Replies
8
Views
261
Replies
1
Views
178

1,203,236
Messages
6,054,300
Members
444,715
Latest member
GlitchHawk

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.

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

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