Hello all,
Cell B4 has the formula ($B$2*B5)
B5 to B455 are going to be filled with data usually daily but sometimes more
than once a day.
How can I make the formula in B4 say multiply B2 by whichever cell is the
last one with data... and as i add data in the next cell, the formula
calculates based on new cell??
I hope I asked this question clearly.
Thank you,
Shhhh
Billy Liddel - 20 Jun 2007 13:26 GMT
Shhhh
Try this
=INDIRECT(ADDRESS(MATCH(MAX($B$5:$B$6553),$B$5:$B$65536)+4,COLUMN()))*B2
Regards
Peter
> Hello all,
>
[quoted text clipped - 10 lines]
> Thank you,
> Shhhh
Billy Liddel - 20 Jun 2007 16:49 GMT
Or maybe I misunderstood. Do you need a Worksheet change event?
I gave the Range B5 to B455 the name InputRange (Insert, Name, Define)
specify name and range
B2 I name Rate
Then right_click the Sheet Name tab and select View Code copy the following
code into the worksheet code sheet.
Sub worksheet_Change(ByVal target As Excel.Range)
Dim VRange As Range, cell As Range
Set VRange = Range("InputRange"): Set r = Range("Rate")
For Each cell In target
If Union(cell, VRange).Address = VRange.Address Then
Range("B4") = WorksheetFunction.Round(cell * r, 2)
Exit Sub
End If
Next cell
End Sub
=========
Regards
Peter
> Shhhh
>
[quoted text clipped - 18 lines]
> > Thank you,
> > Shhhh
Gary''s Student - 20 Jun 2007 13:28 GMT
You already posted the correct formula. In B4 enter:
=$B$2*B5
As you add data to the column, always add it at the top, pushing the older
data down. That way the newest data will always be in B5

Signature
Gary''s Student - gsnu200731
> Hello all,
>
[quoted text clipped - 10 lines]
> Thank you,
> Shhhh