Re: Insert value of formula into cell
- From: "Bill" <Bill@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Jul 2005 11:40:06 -0700
Steve
I thought I might ask you for a little more assistance. You last help was
superb and the code was so clean and worked flawlessly. This is very
difficult and may require much time so I understand if you want to pass. I
am working on it. Here is a what needs to occur if you decide to help with
this difficult WorksheetFunction.VLookup function. I can send you my
worksheet if you want to look at it.
I have the target date in range(“$A$4). Row B3 starts off with 1 (first day
of month) and continues for three months (B3 = 1, C3 = 2, D3 =3, E3 = $ and
so on).
I need the following to occur. When the date in A4 changes I need code that
will scan the range from B3 to the column’s end. Example endCol = Cells(3,
Columns.Count).End (xlToLeft) .Column ‘tells me the number of days
Then for each row add the date in A4 plus the number in row 3 of column
minus one. Example Datef = $A$4 + G$3 – 1 ‘gives me the actual date for
this row. Then I need it to lookup that date in the range(j1:k20) on another
sheet("data").
Range("Row = 10, ??-Depends on column") = WorksheetFunction.VLookup(Datef,
rng, 2, False)
I need the result for column k enter into an array and placed in that column
starting in row 10.
Example if the results from column k is retire then row 10 = “r”, row 11 =
“e”, row 12 = “t”, row 13 = “I”, row 15 = “r”, row 16 = “e”.
As an overall example
If….
A4 = 1 Jun 05 then the value in K3 would be ten
K3 = 10 Jun 05 ‘ determined using $A$4 + K$3 – 1
Then on Sheet(“Data”)
The vlookup matches value from K3 to J7, H7 value equals “G3 Retire”.
The resulting value is as follows
K10= G
K11= 3
K12=
K13= R
K14= e
K15= t
K16= i
K17= r
K18 = e
Thanks either way for all your help.
Bill
.
- References:
- Insert value of formula into cell
- From: Bill
- Re: Insert value of formula into cell
- From: STEVE BELL
- Re: Insert value of formula into cell
- From: Bill
- Re: Insert value of formula into cell
- From: STEVE BELL
- Re: Insert value of formula into cell
- From: Bill
- Re: Insert value of formula into cell
- From: STEVE BELL
- Re: Insert value of formula into cell
- From: Bill
- Re: Insert value of formula into cell
- From: STEVE BELL
- Insert value of formula into cell
- Prev by Date: Re: Nested loop order?
- Next by Date: Re: shared workbook runtime error 1004
- Previous by thread: Re: Insert value of formula into cell
- Next by thread: I have a smorgesborg of vba/excel questions
- Index(es):
Relevant Pages
|