LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jay Jay is offline
external usenet poster
 
Posts: 671
Default Dynamic formula creation and p;acement

Hi Prasad -

See my reply to your previous post on this subject. It looks like some of
your parameters have changed a bit since your original post, but the code
posted there should still apply with slight modifications.

Jay


"EE" wrote:

Hi

I need some macro help. There are two components to my problem.

1. Match Cells to Identify Target Column

In Sheet "Menu", I enter a date in cell "C3". Lets call it DATE.

In Sheet "Metrics", I have a Table Similar to the one below

Date1 Date 2 Date 3 ........
A
B
C
D
E

I am currently using a MATCH function to identify the column in
Metrics where DATE = Date "n". Lets call this "TargetColumn"

2. Creating a Dynamic Formula

The second part of the job is to create a dynamic formula. In rows
2,3,4 in the "TargetColumn" identified above, I need to insert a
VLOOKUP formula.

The look-up value is a concatenation of "Column A and Row
number(2,3,and 4)" & "Row 1 of Target Column". Lets call this
"LookupValue" (and the first part of lookupvalue will be different by
Row). As an example if TargetColumn is Column R, Lookupvalue for Row 2
will be A2&" "&R1.

The formula is = Vlookup(LookupValue, NamedRange(Pre-defined),2,FALSE)
and the formula needs to be pasted in row 2, 3 and 4 of target
column..

If any part of this is not understood, please reach out to me. I
actually did it for one row by hardcoding the Target Column, but I
need to make this dyanmic.

Best
Prasad


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic creation, or something different needed? Nehvun Excel Worksheet Functions 0 July 31st 07 06:12 AM
Dynamic Formula Creation?? [email protected] Excel Discussion (Misc queries) 2 October 27th 06 09:14 AM
Dynamic button creation mazzarin Excel Programming 6 July 24th 06 08:33 PM
Dynamic Control Creation in VBA Asif[_3_] Excel Programming 2 December 9th 03 07:35 PM
Dynamic Creation of borders Tyrusst Excel Programming 1 October 15th 03 12:47 PM


All times are GMT +1. The time now is 06:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"