简体   繁体   中英

Check if cells in row are empty, if false print other cells

I want to check in a row, if there is anything in the cells and for all cells that have any value, I want to print the cell two rows above. The formula also should print a comma between the printed cell values. Let me try to show in a table:

http://i.stack.imgur.com/kPQcR.png

I need a formula to check in row 2 from AE whether the cells are empty or not and if not, I need to print the words above in row 1. In my example the formula should print: "butter, sirup and water".

Could you not simply use =() referencing the cell below? I'd need a bit more context as to what you're doing/ what you're after to work out what sort of function you'd need

Following your example I will do this: In cell A3(for example) the following formula:

   =+IF(A2<>"";A1&A2&",";"")

And extend it through the row. Then in cell A4 the concatenation:

   =A3&B3&C3&D3&E3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM