Hi,
I have an excel file with 2 sheets, being sheet A and B. On a cell in sheet B I wish to have a multiple If-Then-Else routine of more than 7, which I know Excel only supports up to 7 or 8. The current statement I have is:
=IF('A'!H4="",'A'!K4,IF('A'!H5="",'A'!K5,IF('A'!H6="",'A'!K6,IF('A'!H7="",'A'!K7,IF('A'!H8="",'A'!K8,IF('A'!H9="",'A'!K9,IF('A'!H10="",'A'!K10,IF('A'!H11="",'A'!K11))))))))
As statements takes value from Sheet A into a cell in sheet B, I wish to put this in a Function routine. As I am not a VBA guru, for those of you out there who are, are you able to advise me how best to write this as a function.
I have an excel file with 2 sheets, being sheet A and B. On a cell in sheet B I wish to have a multiple If-Then-Else routine of more than 7, which I know Excel only supports up to 7 or 8. The current statement I have is:
=IF('A'!H4="",'A'!K4,IF('A'!H5="",'A'!K5,IF('A'!H6="",'A'!K6,IF('A'!H7="",'A'!K7,IF('A'!H8="",'A'!K8,IF('A'!H9="",'A'!K9,IF('A'!H10="",'A'!K10,IF('A'!H11="",'A'!K11))))))))
As statements takes value from Sheet A into a cell in sheet B, I wish to put this in a Function routine. As I am not a VBA guru, for those of you out there who are, are you able to advise me how best to write this as a function.