Write in next column's cell if previous column has empty rows

I have this file. I have to check in the “organisation” column if it is empty or not.If the cell in this column is empty, i have to write “software engineer” in “Occupation” column just beside the empty cell in organisation column. how to do?
testFile.xlsx (6.0 KB)

I am also attaching how it should be written if i am unable to express well then.
testFile.xlsx (9.5 KB)

Try this BOT file, let me know what you think.
Read and Write in Excel.zip (4.3 KB)

1 Like

Thankss.But is there any shorter way.mit is too much confusing

Hi @ydash999

You can try this simpler approach

WriteInNextColumnCell.xaml (6.6 KB)

1 Like

Thanks! How to make it dynamic if in some place I have to write software engineer and in some place I have to write compliance engineer.

@ydash999

Make a string variable

Assign it accordingly

and use this variable to assign Row(“Occupation”)

Refer the xaml

WriteInNextColumnCell.xaml (7.0 KB)

Note: you can also convert this variable to argument so that whenever this file is invoked you can pass the required string.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.