Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / November 2007

Tip: Looking for answers? Try searching our database.

Dynamic formula creation and p;acement

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
EE - 10 Nov 2007 06:08 GMT
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
Jay - 10 Nov 2007 11:24 GMT
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

> Hi
>
[quoted text clipped - 38 lines]
> Best
> Prasad
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.