Hello guys,
I have a cell in main Sheet in which I want a value from another cell from different Sheet. Because I can't use more than 7 IF in formula, I'm lost how to solve this issue.
If cell T22 from Sheet2 contains some value, use this value, but if is empty, use value of T21 from Sheet2,
if cell T21 from Sheet2 contains some value, use this value, but if is empty, use value of T20 from Sheet2,
if cell T20 from Sheet2 contains some value, use this value, but if is empty, use value of T19 from Sheet2,
etc. up to T1.
But it goes on, so if cell T1 from Sheet2 contains some value, use this value, but if is empty, use value of cell T20 from Sheet1.
To give you an idea of exactly what I mean, this is what the formula might look like if there could be more than 7 IF arguments.
Thank you in advance for your help.
I have a cell in main Sheet in which I want a value from another cell from different Sheet. Because I can't use more than 7 IF in formula, I'm lost how to solve this issue.
If cell T22 from Sheet2 contains some value, use this value, but if is empty, use value of T21 from Sheet2,
if cell T21 from Sheet2 contains some value, use this value, but if is empty, use value of T20 from Sheet2,
if cell T20 from Sheet2 contains some value, use this value, but if is empty, use value of T19 from Sheet2,
etc. up to T1.
But it goes on, so if cell T1 from Sheet2 contains some value, use this value, but if is empty, use value of cell T20 from Sheet1.
To give you an idea of exactly what I mean, this is what the formula might look like if there could be more than 7 IF arguments.
Thank you in advance for your help.
=
IF(Sheet2!T22="",Sheet2!T21,Sheet2!T22),
IF(Sheet2!T21="",Sheet2!T20,Sheet2!T21),
IF(Sheet2!T20="",Sheet2!T19,Sheet2!T20),
IF(Sheet2!T19="",Sheet2!T18,Sheet2!T19),
IF(Sheet2!T18="",Sheet2!T17,Sheet2!T18),
IF(Sheet2!T17="",Sheet2!T16,Sheet2!T17),
IF(Sheet2!T16="",Sheet2!T15,Sheet2!T16),
IF(Sheet2!T15="",Sheet2!T14,Sheet2!T15),
IF(Sheet2!T14="",Sheet2!T13,Sheet2!T14),
IF(Sheet2!T13="",Sheet2!T12,Sheet2!T13),
IF(Sheet2!T12="",Sheet2!T11,Sheet2!T12),
IF(Sheet2!T11="",Sheet2!T10,Sheet2!T11),
IF(Sheet2!T10="",Sheet2!T9,Sheet2!T10),
IF(Sheet2!T9="",Sheet2!T8,Sheet2!T9),
IF(Sheet2!T8="",Sheet2!T7,Sheet2!T8),
IF(Sheet2!T7="",Sheet2!T6,Sheet2!T7),
IF(Sheet2!T6="",Sheet2!T5,Sheet2!T6),
IF(Sheet2!T5="",Sheet2!T4,Sheet2!T5,
IF(Sheet2!T4="",Sheet2!T3,Sheet2!T4),
IF(Sheet2!T3="",Sheet2!T2,Sheet2!T3),
IF(Sheet2!T2="",Sheet2!T1,Sheet2!T2),
IF(Sheet2!T1="",Sheet1!T20,Sheet2!T1))))))))))))))))))))))