# Shortening an equation Help

##### New Member
Hi i was wondering if its possible turn this equation into an array or some kind of simpler form.

t = Time()

If [F92,E93] = "" Then
[F92,E93] = Str(t)
ElseIf [F93] = "" Then
[G92,F93] = Str(t)
ElseIf [G93] = "" Then
[H92,G93] = Str(t)
ElseIf [H93] = "" Then
[I92,H93] = Str(t)
ElseIf [I93] = "" Then
[J92,I93] = Str(t)
ElseIf [J93] = "" Then
[J93] = Str(t)

### Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

#### Andrew Poulsom

##### New Member
Sorry about that i wont do it again.

yeah "" is testing for null

and your rite i only need

if [E93] = "" then

for the first line , but is there a way i can make the letters incline in 3 particular ranges.

#### Andrew Poulsom

##### MrExcel MVP
You can use the Cells property in a loop like this:

Code:
``````For c = 5 to 10
With Cells(93, c)
If .Value = "" Then .Value = Str(t)
Exit For
End With
Next c``````

That fills the first blank cell and stops.

##### New Member
Thanks i figured it out

Replies
5
Views
123
Replies
4
Views
306
Replies
10
Views
447
Replies
2
Views
683
Replies
0
Views
626

1,191,482
Messages
5,986,838
Members
440,052
Latest member
silverandcoldmc

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back