简体   繁体   中英

Insert a formula from another sheet based on same cell values

I have a master workbook with two columns: names and formulas, which are specific for certain names. Generally, there are some 300 different names and 10 different formulas. What I need is to insert that formula in another sheet when some of this names appear - some kind of vlookup formula which won't give me value but formula.

And second part of a problem is how to make this formula (if it can be somehow inserted) dynamic and use relative values for calculation from same row in calculation sheet....

Goran, please see my simulation below. My formula is F3 (ignored = sign) and its name is Name1 . For test purpose I typed 7 into cell F3 and 8 into cell F4

在此处输入图片说明

With the formula below I typed in sheet2, I am able to call the formula of =F3 and change the reference given to cell F3 to F4 and reach to result of 8 in master sheet.

=INDIRECT("Master!"&SUBSTITUTE(VLOOKUP("Name1",Master!$I$3:$J$10,2,FALSE),"3","4"))

Maybe you can solve your puzzle by using functions I used in above simulation ( INDIRECT and SUBSTITUTE ).

thanks for helping me out... What I want is that:

My master table look like this enter image description here

And in my calculation sheet I want to get something like this: enter image description here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM