Multiple if functions

Posted by user2948699 on Super User See other posts from Super User or by user2948699
Published on 2013-11-02T22:06:35Z Indexed on 2013/11/03 22:02 UTC
Read the original article Hit count: 127

Filed under:

I have problem I'm hoping someone could help me with.

I have five different text values in 5 cells. I am trying to combine these values into one cell with a comma in between each. However the trick is that if there is no value in (H6) then it must place the word "and" between the cell (F6) and (G6). If there is a value in (H6) then place the word "and" between (G6) and (H6). In the same statement I must also include If there is not value in (G6) then it must place the word "and" between the cell E6 and F6.

Please see image attached. I am trying to get the highlighted statements into one cell. So multiple IF statements into one cell. Anyone?

enter image description here

=IF(G8=0,(D8)&", "&(E8)&" and "&(F8),(D8)&", "&(E8)&", "&(F8)&" and "&(G8)=IF(H8=0,(D8)&", "&(E8)&", "&(F8)&" and "&(G8),(D8)&", "&(E8)&", "&(F8)&", "&(G8)&" and "&(H8)))

I cant figure out the code.

Many thanks. Alex

Edit: The original image can be found here if size of the inlined is too small.

© Super User or respective owner

Related posts about microsoft-excel