Hello,
I’m just trying something here. Is there a way to add a NULL value to a cell (not “”) via a formula? The reason I ask about this is I believe the NULL option reacts differently than a blank “” entry.
I placed a formula =If(A1<=0,NULL,100) in range B1 and copied down thru B10.
B2 is =If(A2<=0,NULL,100), B3 is =If(A3<=0,NULL,100), . . . B10 is =If(103<=0,NULL,100).
As example only –
Range A1:A5 contains zeros (or some text) and range A6:A10 have values in them. I want to set a range only for the area that has values (i.e., B6:B10).
If I code something like:
With a formula using a blank “” option (i.e., If(A1<=0,””,100) the range will be B1:B10. Since B1:B5 appear to be blank but do contain “”. I was hoping if I could insert a NULL into B1:B5 then when I run the Selection.End.(xlUp) process it would only select B10:B6.
Thanks for viewing,
Steve
I’m just trying something here. Is there a way to add a NULL value to a cell (not “”) via a formula? The reason I ask about this is I believe the NULL option reacts differently than a blank “” entry.
I placed a formula =If(A1<=0,NULL,100) in range B1 and copied down thru B10.
B2 is =If(A2<=0,NULL,100), B3 is =If(A3<=0,NULL,100), . . . B10 is =If(103<=0,NULL,100).
As example only –
Range A1:A5 contains zeros (or some text) and range A6:A10 have values in them. I want to set a range only for the area that has values (i.e., B6:B10).
If I code something like:
VBA Code:
Range(“B10”).Select
Range(Selection, Selection.End(xlUp)).Select
With a formula using a blank “” option (i.e., If(A1<=0,””,100) the range will be B1:B10. Since B1:B5 appear to be blank but do contain “”. I was hoping if I could insert a NULL into B1:B5 then when I run the Selection.End.(xlUp) process it would only select B10:B6.
Thanks for viewing,
Steve