How to add the first non-empty cell (text) in a row

I have a table of several lines of contact details (phone, cell phone, fax and email) of people. I'm using these data to a data merge using an exported csv file and must include only the text (phone numbers and/or email) that is not empty.

Column A - phone

Column B - cell phone

Column C - Fax

Column D - Email

Column E - first non-empty cell (between A1:D:1, A2:D:2, A3:D3, etc.)

Column F - second non-empty cell (between A1:D:1, A2:D:2, A3:D3, etc.)

Column G - third non-empty cell (between A1:D:1, A2:D:2, A3:D3, etc.)

I tried to use some varieties of INDEX MATCH, but I don't do it just because its does not work properly.

Any help would be appreciated. Thank you!

You can try something like this:

E2 = IF (ISBLANK (A2), "", MAX($D2:D2) + 1).

This is a shortcut for, select cell E2, and type (or copy and paste it here) the formula:

= IF (ISBLANK (A2), "", MAX($D2:D2) + 1).

Select cell E2, copy

Select cells E2 through H2, dough

I2 = SIERREUR (OFFSET ($A2, 0, IFERROR (MATCH (COLUMN (−8), $E2: $H2, 0), ' ') −1), ' ')

Select the cell I2, copy

Select cells I2 thru K2, dough

Select cells E2 K2 thru copy

Select cells E2 at the end of the K column, paste

You can hide the columns e to H what you like

Tags: iWork

Similar Questions

Maybe you are looking for