Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE JE is offline
external usenet poster
 
Posts: 26
Default vlook up and return formula

Is it possible to use vlookup to return a formula? Here is my scenario:

Spreadsheet 1

Column A Column B Column C
Equity C ABC123
Muni 912822xd
Moneymkt 8145332x
Option jpm-42

Spreadsheet 2

Column A Column B Column C Column D
Equity concatenate(B2,"
","EQUITY")
Muni concatenate(C2,"
","GOVT")
Moneymkt concatenate(C2,"
","GOVT")
Option concatenate(B2,"
","OPT")

My goal is to vlookup in spreadsheet 1 on column a and return from
spreadsheet 2 the formula in column D.

Many thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default vlook up and return formula

I don't know why you need to do it that way - put this in D1 of
Sheet1:

=IF(A1="Equity",B2&" EQUITY",IF(OR(A1="Muni",A1="Moneymkt"),C2&"
GOVT"),IF(A1="Option",B2&" OPT","")))

then copy it down as required.

Hope this helps.

Pete

On Feb 8, 8:57*pm, JE wrote:
Is it possible to use vlookup to return a formula? *Here is my scenario:

Spreadsheet 1

Column A * * * Column B * * *Column C * * *
Equity * * * * * * * *C * * * * * * ABC123 * * * * *
Muni * * * * * * * * * * * * * * * * 912822xd * * *
Moneymkt * * * * * * * * * * * * 8145332x * * *
Option * * * * * * * jpm-42 * * * * * * * * * * * * *

Spreadsheet 2

Column A * * * Column B * * *Column C * * *Column D
Equity * * * * * * * * * * * * * * * * * * * * * * * * * *concatenate(B2,"
","EQUITY")
Muni * * * * * * * * * * * * * * * * * * * * * * * * * * *concatenate(C2,"
","GOVT")
Moneymkt * * * * * * * * * * * * * * * * * * * * * * *concatenate(C2,"
","GOVT")
Option * * * * * * * * * * * * * * * * * * * * * * * * * concatenate(B2,"
","OPT")

My goal is to vlookup in spreadsheet 1 on column a and return from
spreadsheet 2 the formula in column D. *

Many thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default vlook up and return formula

Pete, I believe your formula has an erroneous parenthesis after C2&"GOVT". I
think you meant this:
=IF(A1="Equity",B2&"
EQUITY",IF(OR(A1="Muni",A1="Moneymkt"),C2&"GOVT",I F(A1="Option",B2&"
OPT","")))

Cheers,
Greg


"Pete_UK" wrote:

I don't know why you need to do it that way - put this in D1 of
Sheet1:

=IF(A1="Equity",B2&" EQUITY",IF(OR(A1="Muni",A1="Moneymkt"),C2&"
GOVT"),IF(A1="Option",B2&" OPT","")))

then copy it down as required.

Hope this helps.

Pete

On Feb 8, 8:57 pm, JE wrote:
Is it possible to use vlookup to return a formula? Here is my scenario:

Spreadsheet 1

Column A Column B Column C
Equity C ABC123
Muni 912822xd
Moneymkt 8145332x
Option jpm-42

Spreadsheet 2

Column A Column B Column C Column D
Equity concatenate(B2,"
","EQUITY")
Muni concatenate(C2,"
","GOVT")
Moneymkt concatenate(C2,"
","GOVT")
Option concatenate(B2,"
","OPT")

My goal is to vlookup in spreadsheet 1 on column a and return from
spreadsheet 2 the formula in column D.

Many thanks



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default vlook up and return formula

Yes, thanks for pointing that out, Greg.

Pete

On Feb 8, 10:16*pm, Greg Wilson
wrote:
Pete, I believe your formula has an erroneous parenthesis after C2&"GOVT".. I
think you meant this:
=IF(A1="Equity",B2&"
EQUITY",IF(OR(A1="Muni",A1="Moneymkt"),C2&"GOVT",I F(A1="Option",B2&"
OPT","")))

Cheers,
Greg



"Pete_UK" wrote:
I don't know why you need to do it that way - put this in D1 of
Sheet1:


=IF(A1="Equity",B2&" EQUITY",IF(OR(A1="Muni",A1="Moneymkt"),C2&"
GOVT"),IF(A1="Option",B2&" OPT","")))


then copy it down as required.


Hope this helps.


Pete


On Feb 8, 8:57 pm, JE wrote:
Is it possible to use vlookup to return a formula? *Here is my scenario:


Spreadsheet 1


Column A * * * Column B * * *Column C * * *
Equity * * * * * * * *C * * * * * * ABC123 * * * * *
Muni * * * * * * * * * * * * * * * * 912822xd * * *
Moneymkt * * * * * * * * * * * * 8145332x * * *
Option * * * * * * * jpm-42 * * * * * * * * * * * * *


Spreadsheet 2


Column A * * * Column B * * *Column C * * *Column D
Equity * * * * * * * * * * * * * * * * * * * * * * * * * *concatenate(B2,"
","EQUITY")
Muni * * * * * * * * * * * * * * * * * * * * * * * * * * *concatenate(C2,"
","GOVT")
Moneymkt * * * * * * * * * * * * * * * * * * * * * * *concatenate(C2,"
","GOVT")
Option * * * * * * * * * * * * * * * * * * * * * * * * * concatenate(B2,"
","OPT")


My goal is to vlookup in spreadsheet 1 on column a and return from
spreadsheet 2 the formula in column D. *


Many thanks- Hide quoted text -


- Show quoted text -


Reply
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
Vlook-up Formula Kshitij Excel Worksheet Functions 1 December 29th 08 10:46 AM
VLOOK-pivot table expanding want to update vlook automatically CrimsonPlague29 Excel Worksheet Functions 0 August 8th 07 09:44 PM
VLOOK-pivot table expanding want to update vlook automatically CrimsonPlague29 Excel Worksheet Functions 0 August 8th 07 09:44 PM
VLook Up Formula potsie via OfficeKB.com Excel Discussion (Misc queries) 0 April 26th 06 01:58 AM
vlook up and if formula Stuart Excel Worksheet Functions 5 June 6th 05 07:29 PM


All times are GMT +1. The time now is 07:32 AM.

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

About Us

"It's about Microsoft Excel"