G
G Miller
Hi all,
I am thinking that a long nested IF statement will accomplish my goal, but
I'm not sure how to lay it out. I have a blank column (M) that I want to fill
with a value from either column N, O, P, Q, or leave blank. Columns N, O, P,
and Q may be blank or contain a number (which may be zero). I want to go in
order, so that if the value in column N is not null and not zero, use that
value to fill column M; otherwise skip to column O and apply the same test,
and so on. If I get all the way to column Q and all the columns N-Q are blank
or zero, then I want to leave column M blank. I'll try and write it out:
If N2 is not null and N2>0, then M2=N2, else M2=O2
If O2 is not null and O2>0, then M2=O2, else M2=P2
If P2 is not null and P2>0, then M2=P2, else M2=Q2
If Q2 is not null and Q2>0, the M2=Q2, else M2=""
Any suggestions? My thanks in advance.
Gretta
I am thinking that a long nested IF statement will accomplish my goal, but
I'm not sure how to lay it out. I have a blank column (M) that I want to fill
with a value from either column N, O, P, Q, or leave blank. Columns N, O, P,
and Q may be blank or contain a number (which may be zero). I want to go in
order, so that if the value in column N is not null and not zero, use that
value to fill column M; otherwise skip to column O and apply the same test,
and so on. If I get all the way to column Q and all the columns N-Q are blank
or zero, then I want to leave column M blank. I'll try and write it out:
If N2 is not null and N2>0, then M2=N2, else M2=O2
If O2 is not null and O2>0, then M2=O2, else M2=P2
If P2 is not null and P2>0, then M2=P2, else M2=Q2
If Q2 is not null and Q2>0, the M2=Q2, else M2=""
Any suggestions? My thanks in advance.
Gretta